diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-01-16 11:03:17 +0000 |
---|---|---|
committer | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-03-21 09:11:53 +0000 |
commit | 365ded3d2089fff98f4d8562fb277112b242645f (patch) | |
tree | 1bd32f1e71010a709f495f1d638291b9799ecca5 /yardstick/common | |
parent | 49af409b0c43ec3d3f0479c21cef172e29e1cdfd (diff) |
Improve "Libvirt.virsh_create_vm" function
Read the command exit code and raise an exception in case the VM boot
process went wrong.
JIRA: YARDSTICK-941
Change-Id: Ibabaae8983213a33799ad00fa4d9541bbabea857
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Diffstat (limited to 'yardstick/common')
-rw-r--r-- | yardstick/common/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yardstick/common/exceptions.py b/yardstick/common/exceptions.py index e0e5b7e16..517936fdc 100644 --- a/yardstick/common/exceptions.py +++ b/yardstick/common/exceptions.py @@ -108,6 +108,10 @@ class OVSSetupError(YardstickException): message = 'OVS setup error. Command: %(command)s. Error: %(error)s.' +class LibvirtCreateError(YardstickException): + message = 'Error creating the virtual machine. Error: %(error)s.' + + class ScenarioConfigContextNameNotFound(YardstickException): message = 'Context name "%(context_name)s" not found' |