Need to delay instance state events
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-powervm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The libvirt code understands that multiple events can be sent for a VM when it is transitioning through its lifecycle (and that these events can affect tasks). For instance, a reboot will go through a power off and a power on quickly. Two events get emitted from the hypervisor.
This can affect the VM lifecycle code and can generally upset a couple operations.
To deal with this, libvirt has introduced a 'delayed emit event' concept.
https:/
It only delays the stopped events (or in PowerVM the 'not activated' event).
We need to introduce a similar counter in the PowerVM driver. Certain tests in tempest seem to be affected by the lack of this, and certain timing issues can arise in the CI due to us not having it. For instance the error here:
I think the PowerVM driver needs to utilize similar logic to delay the stopped events.
Fix proposed to branch: stable/newton /review. openstack. org/391581
Review: https:/