
When trying to recreate hundreds of instance action events for scale testing with the FakeDriver, a nice simple way to do that is by stopping those instances and starting them again. However, since power_off/on aren't implemented, once you "stop" them the sync_instance_power_state periodic task in the compute manager thinks they are still running on the "hypervisor" and will stop them again via the API, which records yet another instance action and set of events. This just toggles the power state bit on the fake instance in the FakeDriver to make the periodic task do the right thing. As a result, we also have more realistic API and notification samples. Change-Id: Ie621686053ad774c4ae4f22bb2a455f98900b611
OpenStack Nova Documentation README
Both contributor developer documentation and REST API documentation are sourced here.
Contributor developer docs are built to: https://docs.openstack.org/nova/latest/
API guide docs are built to: https://developer.openstack.org/api-guide/compute/
For more details, see the "Building the Documentation" section of doc/source/contributor/development.environment.rst.