Activity log for bug #1752104

Date Who What changed Old value New value Message
2018-02-27 14:10:53 Pawel Suder bug added bug
2018-02-27 14:12:34 Pawel Suder summary Neutron port consistency on compute host reboot Neutron port consistency after compute host reboot
2018-02-27 14:27:43 Pawel Suder description When compute host reboots then ports in Neutron DB and Nova network cache info stays in state 'ACTIVE'. But neutron agent still hasn't reconfigure all ports yet. This Neutron DB information is source of data for Nova events how to handle VM boot process. When port state is 'ACTIVE' it's an information for Nova that there is no need for waiting for port configuration so VM can boots without properly configured port. (mriedem): The _heal_instance_info_cache will rebuild the instance network info_cache: https://github.com/openstack/nova/blob/ef4000a0d326deb004843ee51d18030224c5630f/nova/compute/manager.py#L6525 - eventually calls this code to rebuild the info cache based on latest neutron info for the VM: https://github.com/openstack/nova/blob/ef4000a0d326deb004843ee51d18030224c5630f/nova/network/neutronv2/api.py#L2356 As for the hard reboot VM issue, I wonder if https://review.openstack.org/#/c/400384/ and https://review.openstack.org/#/c/400384/ help? (mjozefcz): I think the problem still exists - when 'cron' action is being executed it uses local-cache while reading ports to build_info_cache. Please look on this: _heal_instance_info_cache -> _build_network_info_model (port_ids=None, networks=None) -> _gather_port_ids_and_networks() https://github.com/openstack/nova/blob/ef4000a0d326deb004843ee51d18030224c5630f/nova/network/neutronv2/api.py#L1392 I'll create a bug describing the whole problem with how-to reproduce it on devstack. (mjozefcz): This bug still exists, description: https://bugs.launchpad.net/nova/+bug/1751923 When compute host reboots then ports in Neutron DB and Nova network cache info stays in state 'ACTIVE'. But neutron agent still hasn't reconfigure all ports yet. This Neutron DB information is source of data for Nova events how to handle VM boot process. When port state is 'ACTIVE' it's an information for Nova that there is no need for waiting for port configuration so VM can boots without properly configured port. (mriedem): The _heal_instance_info_cache will rebuild the instance network info_cache: https://github.com/openstack/nova/blob/ef4000a0d326deb004843ee51d18030224c5630f/nova/compute/manager.py#L6525 eventually calls this code to rebuild the info cache based on latest neutron info for the VM: https://github.com/openstack/nova/blob/ef4000a0d326deb004843ee51d18030224c5630f/nova/network/neutronv2/api.py#L2356 As for the hard reboot VM issue, I wonder if https://review.openstack.org/#/c/400384/ https://review.openstack.org/#/c/400384/ help? (mjozefcz): I think the problem still exists - when 'cron' action is being executed it uses local-cache while reading ports to build_info_cache. Please look on this: _heal_instance_info_cache -> _build_network_info_model (port_ids=None, networks=None) -> _gather_port_ids_and_networks() https://github.com/openstack/nova/blob/ef4000a0d326deb004843ee51d18030224c5630f/nova/network/neutronv2/api.py#L1392 I'll create a bug describing the whole problem with how-to reproduce it on devstack. This bug still exists, description: https://bugs.launchpad.net/nova/+bug/1751923
2018-08-17 06:00:29 Matt Riedemann marked as duplicate 1751923