summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorEoghan Glynn <eglynn@redhat.com>2012-07-23 12:25:43 +0000
committerEoghan Glynn <eglynn@redhat.com>2012-08-01 10:38:44 +0100
commit3ab808b23d17900cc859b75895ac1c7a8f2d7bb9 (patch)
tree6c0482e3e91b9c3fd7ae79569c06253a6d5fd57d /nova/exception.py
parent37dee20d2f963ca08e56a95be8c654e1920e4a2a (diff)
downloadnova-3ab808b23d17900cc859b75895ac1c7a8f2d7bb9.tar.gz
nova-3ab808b23d17900cc859b75895ac1c7a8f2d7bb9.tar.xz
nova-3ab808b23d17900cc859b75895ac1c7a8f2d7bb9.zip
Setting root passwd no longer fails silently.
Fixes LP 1022961 Previously an attempt to set the root password would fail silently if for example the driver did not support this action. To avoid the user being misled that the password change had succeeded, we now report any failure by changing the MEP for set_admin_password RPC from cast to call. Change-Id: I1fd7b925e9226d30892f3a7cc4ddb938ff678a55
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 323f33c29..a5a7c0f1b 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1085,6 +1085,12 @@ class InstanceTypeCreateFailed(NovaException):
message = _("Unable to create instance type")
+class InstancePasswordSetFailed(NovaException):
+ message = _("Failed to set admin password on %(instance)s "
+ "because %(reason)s")
+ safe = True
+
+
class SolidFireAPIException(NovaException):
message = _("Bad response from SolidFire API")