Last chance call to neutron if VIF plugin notification is lost

Bug #1627044 reported by Adam Kijak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

While spawning a new VM, Nova waits for event from Neutron that its port is configured. In some cases Neutron event is lost (e.g. RabbitMQ issue) and if vif_plugging_is_fatal=True (it is by default) the instance is set to ERROR state. It happens even if in fact port is ACTIVE on Neutron side and all should work fine.

This workflow could be improved by calling Neutron before failing.
Nova could check real state of each port in Neutron just before setting the instance in ERROR (if at least one port is not ACTIVE).

Adam Kijak (adam-kijak)
description: updated
Adam Kijak (adam-kijak)
description: updated
Revision history for this message
Matt Riedemann (mriedem) wrote :

Seems like a decent idea worth pushing a patch to see how this looks, but it could get complicated based on how this code is plumbed. It's really the spawn method in the virt driver that's waiting for the event, not the compute manager, and the virt driver doesn't have a handle to the network API to make the port GET call to neutron to check this. I'm sure something could be worked into the wait code for a final callback method to use if provided and a timeout is reached.

Changed in nova:
importance: Undecided → Wishlist
status: New → Opinion
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/378278

Changed in nova:
assignee: nobody → Adam Kijak (adam-kijak)
status: Opinion → In Progress
no longer affects: neutron
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https://review.openstack.org/378278

Revision history for this message
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing the status back to the previous state and unassigning. If there are active reviews related to this bug, please include links in comments.

Changed in nova:
status: In Progress → Opinion
assignee: Adam Kijak (adam-kijak) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.