The method which gets VM related information can fail if the
vm is in an intermediary state such as "Shutting down".
The reason is that some of the Hyper-V specific vm states
are not defined as possible states.
This patch assures that a valid state is always returned by
this method.
Change-Id: I64e95f6b537e83a30dd64474f63f140e0e8e7373
Closes-Bug: #1352428
(cherry picked from commit 86a4bd7d9b34057f04ebbe2d2131f033d33d082b)
Reviewed: https:/ /review. openstack. org/116076 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=87f842d1dbf 26a49954400abd8 0b235407de93a7
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit 87f842d1dbf26a4 9954400abd80b23 5407de93a7
Author: Adelina Tuvenie <email address hidden>
Date: Mon Aug 4 19:02:16 2014 +0300
Fixes Hyper-V vm state issue
The method which gets VM related information can fail if the
vm is in an intermediary state such as "Shutting down".
The reason is that some of the Hyper-V specific vm states
are not defined as possible states.
This patch assures that a valid state is always returned by
this method.
Change-Id: I64e95f6b537e83 a30dd64474f63f1 40e0e8e7373 f04ebbe2d2131f0 33d33d082b)
Closes-Bug: #1352428
(cherry picked from commit 86a4bd7d9b34057