Thanks for the heads up. I have verified and it seems correct that neutron openvswitch agent reports the port correctly as "down:
2022-12-13 18:52:49.053 2955524 INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-149353dc-53f3-48ca-97e1-ec4f47dc56e5 - - - - -] Port 6c167efe-3a55-46d1-baf1-4962b3bc387f is being migrated to host computeXXX.
This leads me to think that there is a problem in nova that does not correctly handle the "admin port down" case when doing live migrations. Therefore i have added nova as affected project to this bug report. It would be great to have somebody from nova verify this.
Hi Rodolfo
Thanks for the heads up. I have verified and it seems correct that neutron openvswitch agent reports the port correctly as "down:
2022-12-13 18:52:49.053 2955524 INFO neutron. plugins. ml2.drivers. openvswitch. agent.ovs_ neutron_ agent [req-149353dc- 53f3-48ca- 97e1-ec4f47dc56 e5 - - - - -] Port 6c167efe- 3a55-46d1- baf1-4962b3bc38 7f is being migrated to host computeXXX.
2022-12-13 18:52:49.053 2955524 INFO neutron. plugins. ml2.drivers. openvswitch. agent.ovs_ neutron_ agent [req-149353dc- 53f3-48ca- 97e1-ec4f47dc56 e5 - - - - -] Port 6c167efe- 3a55-46d1- baf1-4962b3bc38 7f updated. Details: {'device': '6c167efe- 3a55-46d1- baf1-4962b3bc38 7f', 'device_id': '5d270ee8- 76aa-46d8- 9ebc-09f51de1b5 d9', 'network_id': '4ea4469f- 4791-4483- 9b10-6b01a08579 89', 'port_id': '6c167efe- 3a55-46d1- baf1-4962b3bc38 7f', 'mac_address': 'fa:16: 3e:8c:5c: b8', 'admin_state_up': False, 'status': 'DOWN', 'network_type': 'vlan', 'segmentation_id': 102, 'physical_network': 'provider', 'fixed_ips': [{'subnet_id': 'a2831e83- 8a5a-4f02- ae09-2eb6740890 26', 'ip_address': '185.XXX.XX.X'}], 'device_owner': 'compute:XXXXX', 'allowed_ address_ pairs': [], 'port_security_ enabled' : True, 'qos_policy_id': None, 'network_ qos_policy_ id': None, 'profile': {'os_vif_ delegation' : True, 'migrating_to': 'computeXXX'}, 'vif_type': 'ovs', 'vnic_type': 'normal', 'security_groups': ['4096f1f0- 094a-4f7d- b539-8cb387f707 63'], 'migrating_to': 'computeXXX'}
This leads me to think that there is a problem in nova that does not correctly handle the "admin port down" case when doing live migrations. Therefore i have added nova as affected project to this bug report. It would be great to have somebody from nova verify this.