-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[求助/Help] 遗留网络问题导致升级到10.11.5后vm无法dhcp获得ip地址 #21015
Comments
以下是 yunion 的配置: cat /etc/yunion/host.conf | grep 13
- em1/br0/10.13.1.2
|
climc host-list
[root@cloud-stack ~]# climc host-network-list
+--------------------------------------+--------------------------------------+------------+-------------------+
| Baremetal_ID | Network_ID | IP_addr | Mac_addr |
+--------------------------------------+--------------------------------------+------------+-------------------+
| 11673fb2-8208-4900-8949-ef51c7475a51 | 55a0a8dd-d39e-4f3d-82f7-bc93bd511e4d | 10.13.1.48 | 0c:c4:7a:15:de:67 |
| 3a63610b-acf6-48eb-8b35-99d682e73024 | ff45d55e-a921-4d4e-855b-f6ed25312ee6 | 10.13.1.41 | 0c:c4:7a:15:d8:21 |
| f41c02b6-c26f-4195-87d9-fe795fcdb647 | 5c992e96-3472-4109-88f6-6c0b84ed9bdf | 10.13.1.43 | 0c:c4:7a:15:de:6b |
| 674eccc0-73cb-44d9-8f72-7ad683bb53be | 032c9093-db2c-42c2-82d0-3bae3393aba1 | 10.13.1.46 | 0c:c4:7a:15:d6:d3 |
| f72dae90-f1e5-4c7d-850b-60543af4eb56 | 77959d3c-2f94-40b9-884c-6eeb17a6c533 | 10.13.1.47 | 0c:c4:7a:15:de:5f |
| 125b4f68-cc32-4727-8183-b57957f51cbb | 1d1d595c-b9b7-448a-83c7-d0b58b7163ba | 10.13.1.42 | 0c:c4:7a:15:de:61 |
| 0a3bd92c-4179-46ff-8d72-258230d6ae32 | 2918c3a8-ba07-489c-8543-8ccfda799bcd | 10.13.1.44 | 0c:c4:7a:15:d7:95 |
| c91af114-da81-4f7e-872b-cea3343b64a1 | 20a11415-dfd9-404f-8d88-ba9b209acefb | 10.1.1.251 | 18:66:da:eb:06:b0 |
+--------------------------------------+--------------------------------------+------------+-------------------+
*** Total: 8 Pages: 1 Limit: 20 Offset: 0 Page: 1 ***
|
@saltfishh 麻烦提供下 default-vpcagent-xxxx 这个 pod 的日志 |
@zexi 感谢回复 kubectl logs -n onecloud default-vpcagent-86596df55b-fg6k5 --tail 30 -f
同时, vm 使用 dhclient 尝试发送 dhcp 请求, 以下是 default-vpc-agent 的日志
直至 vm 以下是过滤 err关键字获得到的日志 kubectl logs -n onecloud default-vpcagent-86596df55b-fg6k5 | grep -C10 -Ei 'err'
|
重启下 vpcagent 后,再到虚拟机里面重新获取下 ip 试试? |
当天貌似就试过了. 我再试试. |
未果, vm dhclicent 期间, vpcagent pod 日志与上面的日志无异, 没有特殊的地方. / # cat /etc/yunion/vpcagent.conf
address: 0.0.0.0
admin_domain: Default
admin_password: MY_PASS
admin_project: system
admin_project_domain: Default
admin_user: vpcagentadmin
api_list_batch_size: 1024
api_sync_interval: 10
application_id: vpcagent
auth_token_cache_size: 2048
auth_url: https://default-keystone:30357/v3
calculate_quota_usage_interval_seconds: 900
config_sync_period_seconds: 1800
cron_job_worker_count: 4
debug_client: false
default_quota_value: default
domainized_namespace: false
enable_quota_check: false
enable_ssl: false
help: false
ignore_nonrunning_guests: true
is_slave_node: false
log_level: info
log_verbose_level: 0
non_default_domain_projects: false
notify_admin_users:
- sysadmin
ovn_north_database: tcp:default-ovn-north:32241
ovn_underlay_mtu: 1500
ovn_worker_check_interval: 180
platform_name: Cloudpods
port: 0
rbac_debug: false
rbac_policy_refresh_interval_seconds: 30
region: region0
request_worker_count: 8
temp_path: /opt/yunion/tmp
tenant_cache_expire_seconds: 900
time_zone: Asia/Shanghai
version: false
vpc_provider: ovn |
回滚是否可以解决? |
感觉不是版本的问题,试试把那个宿主机的 ip 改正确后再试试? 对应命令是: climc host-remove-netif $host_id $mac
climc host-add-netif --ip-addr a.b.c.d --type admin $host_id $wire_id $mac 0 |
这个会影响业务不? |
$wire_id 是哪个? |
climc wire-list 看下,在前端对应的是二层网络 |
还是不行, 当前宿主机的ip已被修正:
|
尝试重启了宿主机, 还是不行. 更新 3.11.5 之前创建的vm, 部分可以 dhcp 获取ip, 部分不行. |
arp -an
? (10.11.1.143) at 00:22:ee:73:e2:92 [ether] on eth0
? (10.11.1.169) at <incomplete> on eth0
? (10.11.1.172) at 00:22:ca:89:89:28 [ether] on eth0 其中, 172 是无法dhcp获取ip的vm, 奇怪的是, 同网段的主机居然可以通过arp拿到正确的MAC... |
该问题已经处理
显示DHCPV4 option中, ntp_server 需要数字类型, 而之前该vpc子网中配置的 ntp 服务器是域名. default-host 中关于 ovn-controller 容器的定义: ovn-controller:
Image: registry.cn-beijing.aliyuncs.com/yunion/openvswitch:2.12.4-2
Port: <none>
Host Port: <none>
Command:
/start.sh
controller
Environment: <none>
Mounts:
/var/log/openvswitch from var-log-openvswitch (rw)
/var/run/openvswitch from var-run-openvswitch (rw) 是不是新版本做了变动? |
版本:
3.11.5
问题
从 3.10.x升级到 3.11.5后, 新开的主机无法通过dhcp获取ip地址, 手动指定vm的ip地址后, 网络正常.
之前开通的机器 dns 变成了
10.1.1.251
, 而10.1.1.251
是很久之前, 宿主机的ip, 该ip已经更换掉了.以下是管理界面宿主机的截图:
该宿主机的 管理ip 实际为
10.13.1.2
, 之前有换过ip, 但是该界面没同步过来, 不影响使用, 所以没有处理他.以下是ip子网下的截图:
麻烦问下, 这种情况应该如何处理?
感谢
The text was updated successfully, but these errors were encountered: