diff options
author | Phong Ly <phongdly@us.ibm.com> | 2013-04-26 17:50:11 +0000 |
---|---|---|
committer | Phong Ly <phongdly@us.ibm.com> | 2013-05-03 15:31:42 +0000 |
commit | c532f7acdc217832f576ff4ed7ef3da986fe21c5 (patch) | |
tree | e875e963ddb9899a63a76b549d76f81c356b8d34 /nova/virt/powervm | |
parent | 43004ba04e77cb4776b42b4697f28364ef2db839 (diff) | |
download | nova-c532f7acdc217832f576ff4ed7ef3da986fe21c5.tar.gz |
Fix key error when create lpar instance failed
With existing code, when create lpar instance
failed, it throws a key error because the parameter
is not being passed to PowerVMLPARCreationFailed
function in exception module.
The fix for this is that in module operator, passing
the 'instance_name' to the called function in exception
module.
Fixes bug 1173303
Change-Id: I688eecf7b649b67ca62f72d6d33fd7cd774047c3
(cherry picked from commit cccca7a4531cdad88655c27533f63c590a5ddfa1)
Diffstat (limited to 'nova/virt/powervm')
-rw-r--r-- | nova/virt/powervm/operator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/powervm/operator.py b/nova/virt/powervm/operator.py index 13012b7004..14abac80ba 100644 --- a/nova/virt/powervm/operator.py +++ b/nova/virt/powervm/operator.py @@ -202,7 +202,8 @@ class PowerVMOperator(object): except nova_exception.ProcessExecutionError: LOG.exception(_("LPAR instance '%s' creation failed") % instance['name']) - raise exception.PowerVMLPARCreationFailed() + raise exception.PowerVMLPARCreationFailed( + instance_name=instance['name']) _create_image(context, instance, image_id) LOG.debug(_("Activating the LPAR instance '%s'") |