instance action events are b0rked AF

Bug #2058928 reported by sean mooney
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Rajesh Tailor

Bug Description

Long version instance actions are ment to have a start and ending

ideally one of Success or failure with the option to have intermediate events for complex operation like resize.

For at least interface attach and detach that does not happen Possible all instance actions that are casts…

We are sending notificaitons for atttach/detach start, end and failure referencing the instance action type in the notification. i.e. interface_attach.start interface_attach.end
But we are not recording any finish events which means today there is no non-racy way to poll the detach action for its without resorting to instance show and partsing the address field to see the ip go away…
note that that is also cached so that wont happen until the network info cache for the instance is updated and that only works for event that have visible sideffect observable on the instance object.

We shoudl fix this for all instance actions and add functional test coverage and assert when they complete, with error or success, that we have actually updated the db with the event completion.

Today in the functional tests we use the notifications or filed on the server object to know if it is complete but never check the instance action events in the db.

We have test helper already to poll for the completion fo instance action events (IAEs) https://github.com/openstack/nova/blob/master/nova/tests/functional/integrated_helpers.py#L173-L206

But we dont use them for volume detach for example https://github.com/openstack/nova/blob/master/nova/tests/functional/integrated_helpers.py#L223-L238 because we dont complete the action by sending the event. We have test helpers for most of the instance actions in this file https://github.com/openstack/nova/blob/master/nova/tests/functional/integrated_helpers.py#L223-L238 and they all either wait for state changes on the server or notificaiotns to know when the action has completed because we are missing the
Code to complete the event…

Tags: api compute
Rajesh Tailor (ratailor)
Changed in nova:
assignee: nobody → Rajesh Tailor (ratailor)
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.