Hi
I have the same issue. The only way to fix I found is run openstack port delete and then attach new port and update fixed ip for it (detaching interface is not working, because conmpute node throws error that port is not attached).
No info_cache in database:
mysql> select network_info from instance_info_caches where instance_uuid='248d1672-88e2-43c2-93f3-379884109f23';
+--------------+
| network_info |
+--------------+
| [] |
+--------------+
1 row in set (0.00 sec)
Instance starts without network ports.
The compute node is not refreshing info cache, because it is already broken:
Hi
I have the same issue. The only way to fix I found is run openstack port delete and then attach new port and update fixed ip for it (detaching interface is not working, because conmpute node throws error that port is not attached).
Example of broken network on instance. 88e2-43c2- 93f3-379884109f 23 ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------+ ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------+ AZ:availability _zone | ----- | SRV-ATTR: host | lab-cn-h115 | SRV-ATTR: hypervisor_ hostname | lab-cn-h115 | SRV-ATTR: instance_ name | instance-0000f3c7 | STS:power_ state | Running | STS:task_ state | None | USG:launched_ at | 2017-08- 30T13:55: 34.000000 | USG:terminated_ at | None | 30T13:54: 47Z | 228b7415339917b 2b9d5673e43f25a 5a7b205523b | 88e2-43c2- 93f3-379884109f 23 | d82d6a72f310535 64 | 30T13:55: 35Z | fba6abfb9f63a3f 61 | 673c-4397- b1e3-b16ebf2eea 15' | ------- ------- ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------+
# openstack server show 248d1672-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | |
| config_drive | |
| created | 2017-08-
| flavor | s.16VCPU_32GB (s16-32) |
| hostId | 5915f20ff98db4c
| id | 248d1672-
| image | |
| key_name | ... |
| name | instancename |
| progress | 0 |
| project_id | 8cb1b772ccbf4d3
| properties | |
| security_groups | name='ssh' |
| | name='default' |
| status | ACTIVE |
| updated | 2017-08-
| user_id | 09ea15ab0c2e406
| volumes_attached | id='de54a17a-
+------
# openstack port show 773ea191- 642b-479a- aa78-0cb0dc29e0 e7 ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- + ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- + address_ pairs | | plug='True' , port_filter='True' | 30T13:54: 50Z | 88e2-43c2- 93f3-379884109f 23 | ame.blabla' , hostname= 'instancename' , ip_address= '192.168. 0.12' | '192.168. 0.12', subnet_ id='8a6ef96a- fdb2-4396- 86c8-a52afdf3eb d0' | 642b-479a- aa78-0cb0dc29e0 e7 | a9b6-441e- a425-881a6f8a98 02 | enabled | False | d82d6a72f310535 64 | 1dde-4982- a710-53c987deee 9e, c86ac4c1- 7ffc-4ce7- 9064-ed9bc6e1ad 55 | 20T13:18: 46Z | ------- ------- ---+--- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- +
+------
| Field | Value |
+------
| admin_state_up | UP |
| allowed_
| binding_host_id | lab-cn-h115 |
| binding_profile | |
| binding_vif_details | ovs_hybrid_
| binding_vif_type | ovs |
| binding_vnic_type | normal |
| created_at | 2017-08-
| description | |
| device_id | 248d1672-
| device_owner | compute:- |
| dns_assignment | fqdn='instancen
| dns_name | instancename |
| extra_dhcp_opts | |
| fixed_ips | ip_address=
| id | 773ea191-
| ip_address | None |
| mac_address | fa:16:3e:6c:9a:23 |
| name | |
| network_id | 49194a0d-
| option_name | None |
| option_value | None |
| port_security_
| project_id | 8cb1b772ccbf4d3
| qos_policy_id | None |
| revision_number | 460 |
| security_groups | c3ca1eec-
| status | ACTIVE |
| subnet_id | None |
| updated_at | 2017-12-
+------
No info_cache in database: info_caches where instance_ uuid='248d1672- 88e2-43c2- 93f3-379884109f 23';
mysql> select network_info from instance_
+--------------+
| network_info |
+--------------+
| [] |
+--------------+
1 row in set (0.00 sec)
Instance starts without network ports.
The compute node is not refreshing info cache, because it is already broken:
2018-03-22 11:25:01.300 54731 DEBUG nova.network. base_api [req-c4fafbdd- 7ab8-4327- 8fa9-2ac8875990 66 6e603c5e51d64db 1afb0b36ce597a6 f3 8cb1b772ccbf4d3 d82d6a72f310535 64 - - -] [instance: 248d1672- 88e2-43c2- 93f3-379884109f 23] Updating instance_info_cache with network_info: instance_ cache_with_ nw_info /usr/lib/ python2. 7/dist- packages/ nova/network/ base_api. py:48
[] update_
I can't reproduce the problem as Gleb Zimin, but I experienced it from time to time on several instances. The bug is critical for me.