From 6ce7e9d97ffc931f6837d45da4d69837f39a1479 Mon Sep 17 00:00:00 2001 From: Eoghan Glynn Date: Mon, 23 Jul 2012 12:25:43 +0000 Subject: [PATCH] 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 --- nova/exception.py | 6 ++++++ 1 file changed, 6 insertions(+) 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")