instance action events are b0rked AF
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_
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:/
But we dont use them for volume detach for example https:/
Code to complete the event…
Changed in nova: | |
assignee: | nobody → Rajesh Tailor (ratailor) |