Matt Riedemann 3437baedf6 Fix being able to hard reboot a pausing instance
The allowed task states for a hard reboot include 'pausing'
but the instance.save(expected_task_states) doesn't include
'pausing', so if you try to hard reboot a pausing instance
it will fail with UnexpectedTaskStateError.

This makes the expected_task_states passed to Instance.save
use the same list of allowed task states that we use in the
check_instance_state decorator, and re-writes the unit test
to use an actual database to verify the Instance.save()
behavior and task state check in the DB API.

While we're at it, the API reference is updated to indicate
the allowed states for each type of reboot.

Change-Id: I5a21350e48a637e581d269fb567bb96c1899e174
Closes-Bug: #1768927
2018-05-03 16:30:46 -04:00
..
2018-01-18 10:39:24 +00:00
2016-11-11 14:01:51 -05:00
2017-03-31 06:19:01 +00:00
2017-09-07 15:42:31 +02:00
2017-04-27 22:28:01 -04:00
2017-05-04 16:13:45 +08:00
2017-03-29 01:37:56 +08:00
2017-11-28 11:07:36 +08:00
2017-09-07 15:42:31 +02:00
2017-07-13 11:40:43 +08:00
2017-09-07 15:42:31 +02:00