nova/doc/api_samples/os-rescue
Matt Riedemann 211e9b1961 Implement power_off/power_on for the FakeDriver
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
2017-11-02 11:34:42 -04:00
..
server-get-resp-rescue.json Implement power_off/power_on for the FakeDriver 2017-11-02 11:34:42 -04:00
server-get-resp-unrescue.json Implement power_off/power_on for the FakeDriver 2017-11-02 11:34:42 -04:00
server-rescue-req-with-image-ref.json Move the v2 api_sample functional tests 2015-08-18 15:25:41 +08:00
server-rescue-req.json Move the v2 api_sample functional tests 2015-08-18 15:25:41 +08:00
server-rescue.json Move the v2 api_sample functional tests 2015-08-18 15:25:41 +08:00
server-unrescue-req.json Move the v2 api_sample functional tests 2015-08-18 15:25:41 +08:00