Merge lp://staging/~julian-edwards/maas/vm-pause-state-bug-1394382 into lp://staging/~maas-committers/maas/trunk
Proposed by
Julian Edwards
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Julian Edwards | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 3395 | ||||
Proposed branch: | lp://staging/~julian-edwards/maas/vm-pause-state-bug-1394382 | ||||
Merge into: | lp://staging/~maas-committers/maas/trunk | ||||
Diff against target: |
41 lines (+22/-5) 1 file modified
src/provisioningserver/drivers/hardware/virsh.py (+22/-5) |
||||
To merge this branch: | bzr merge lp://staging/~julian-edwards/maas/vm-pause-state-bug-1394382 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | Approve | ||
Review via email: mp+243361@code.staging.launchpad.net |
Commit message
Handle more of the known states in which a virsh machine can be, instead of crashing.
Description of the change
The existing tests cover the functionality, nothing has changed other than adding the lookup table with extra states.
To post a comment you must log in.
It's worth adding a tests that shows that for each VM state in VirshVMState, power_state_virsh() returns a value that makes sense. Other than that, LGTM.