Not set instance to ERROR if set_admin_password failed
In some cases, an instance will be set to ERROR state when
set_admin_password failed (some Exception like Forbidden)
this is inconsistent to other exceptions and also
set_admin_password is a sync call from API to compute,
we can simply return the error to the upper layer (operator or
user) to avoid make user run reset to restore instance
status since no changes to guest at all.
Change-Id: If1c901b974bc7295927b3f033a04eaa6ac36f603
Closes-Bug: 1757061
(cherry picked from commit 513f2d3d254e2ffcc5c9eb786bc1c7d52036d392)
Reviewed: https:/ /review. openstack. org/608179 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=4ac57b5aca1 8a91c6f29fe9c1a 8fb0456c8c7785
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 4ac57b5aca18a91 c6f29fe9c1a8fb0 456c8c7785
Author: jichen <email address hidden>
Date: Thu Mar 22 14:07:20 2018 +0800
Not set instance to ERROR if set_admin_password failed
In some cases, an instance will be set to ERROR state when admin_password failed (some Exception like Forbidden) admin_password is a sync call from API to compute,
set_
this is inconsistent to other exceptions and also
set_
we can simply return the error to the upper layer (operator or
user) to avoid make user run reset to restore instance
status since no changes to guest at all.
Change-Id: If1c901b974bc72 95927b3f033a04e aa6ac36f603 cc5c9eb786bc1c7 d52036d392)
Closes-Bug: 1757061
(cherry picked from commit 513f2d3d254e2ff