cloud os 5.0(E5103)
纳管cas 虚拟机
纳管cas虚拟机提示ip地址占用
1、os侧看网卡为c1:9c
2、cas侧看到网卡信息为68:4d
3、怀疑网卡信息残留导致纳管失败
可以通过进入neutronserver容器,neutron port-list查询是否有对应的网卡信息,如果有,找到对应的id,使用 neutron port-delete <对应的id>清除
[root@cloudos241 ~]# source /opt/bin/common/tool.sh
[root@cloudos241 ~]# pod | grep neutron
default neutronagentrc-xj934 1/1 Running 0 11d 10.101.37.22 172.31.6.241
default neutronserverrc-j5gc6 1/1 Running 0 11d 10.101.37.35 172.31.6.241
[root@cloudos241 ~]# kubectl exec -it neutronserverrc-j5gc6 bash
[root@neutron-service /]# source /root/admin-openrc.sh
[root@neutron-service /]# neutron port-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+-----------------+----------------------------------+-------------------+----------------------------------------------------------------------------------------+
| id | name | tenant_id | mac_address | fixed_ips |
+--------------------------------------+-----------------+----------------------------------+-------------------+----------------------------------------------------------------------------------------+
| 447ac1da-dfa5-4524-b7dc-6980e9bf7f32 | | 9052ae85792143ff955c35c52e8e41bd | fa:16:3e:f9:2b:b0 | {"subnet_id": "ad920e04-0193-42d8-8d68-61637bfe66f1", "ip_address": "192.168.201.3"} |
| 4dcdb9e4-d0ba-48cd-805e-954505f1b23f | | 9052ae85792143ff955c35c52e8e41bd | fa:16:3e:d2:d2:68 | {"subnet_id": "ad920e04-0193-42d8-8d68-61637bfe66f1", "ip_address": "192.168.201.109"} |
| 651aae78-3cd7-42d7-9304-0e5034f4ce91 | | 9052ae85792143ff955c35c52e8e41bd | fa:16:3e:e0:55:7c | {"subnet_id": "ad920e04-0193-42d8-8d68-61637bfe66f1", "ip_address": "192.168.201.6"} |
[root@os-neutron-bbc579748-rlxp7 /]# neutron port-list|grep 172.21.33.12
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
| 867a5ac1-6b8f-4c7a-b250-44f034ad3361 | casvm-port-xtpi | 9052ae85792143ff955c35c52e8e41bd | 0c:da:41:1d:c1:9c | {"subnet_id": "66670ca5-7d4f-4d4a-a320-7946f2af178e", "ip_address": "172.21.33.12"} |
[root@os-neutron-bbc579748-rlxp7 /]# neutron port-delete 867a5ac1-6b8f-4c7a-b250-44f034ad3361
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Deleted port(s): 867a5ac1-6b8f-4c7a-b250-44f034ad3361
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作