yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #75124
[Bug 1757061] Re: vm_state become ERROR after execute 'nova set-password <server-id>' failed
Reviewed: https://review.openstack.org/555160
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=513f2d3d254e2ffcc5c9eb786bc1c7d52036d392
Submitter: Zuul
Branch: master
commit 513f2d3d254e2ffcc5c9eb786bc1c7d52036d392
Author: jichen <jichenjc@xxxxxxxxxx>
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
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
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1757061
Title:
vm_state become ERROR after execute 'nova set-password <server-id>'
failed
Status in OpenStack Compute (nova):
Fix Released
Status in OpenStack Compute (nova) ocata series:
Confirmed
Status in OpenStack Compute (nova) pike series:
Confirmed
Status in OpenStack Compute (nova) queens series:
Confirmed
Status in OpenStack Compute (nova) rocky series:
Confirmed
Bug description:
Description
===========
Virtual Machine's vm_state become ERROR when execute 'nova set-password <server-id>' failed.In fact,
the virtual machine is normal.
Steps to reproduce
==================
[root@nail-5300-1 ~(keystone_admin)]# nova set-password test_tx
New password:
Again:
ERROR (Conflict): Failed to set admin password on cfa4ae9f-346f-46fe-984e-08d050d3a2fc because error setting admin password (HTTP 409) (Request-ID: req-77e9f49b-0fc7-40d5-8112-9da965b0304d)
[root@nail-5300-1 ~(keystone_admin)]# nova list
+--------------------------------------+-------------+--------+------------+-------------+---------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------------+--------+------------+-------------+---------------------+
| cfa4ae9f-346f-46fe-984e-08d050d3a2fc | test_tx | ERROR | - | Running | HAHAHA=192.168.0.12 |
+--------------------------------------+-------------+--------+------------+-------------+---------------------+
[root@nail-5300-1 ~(keystone_admin)]#
[root@nail-5300-1 ~(keystone_admin)]#
[root@nail-5300-1 ~(keystone_admin)]#
[root@nail-5300-1 ~(keystone_admin)]# nova show test_tx|grep instance_name
| OS-EXT-SRV-ATTR:instance_name | instance-00000011 |
[root@nail-5300-1 ~(keystone_admin)]# ssh nail-5300-2
Last login: Tue Mar 20 15:14:52 2018 from 10.43.203.85
[root@nail-5300-2 ~]# virsh list
Id Name State
----------------------------------------------------
274 instance-00000011 running
Expected result:
Set admin password failed,but virtual machine's vm_state is ACTIVE.
Actual result
=============
virtual machine's vm_state is ERROR.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1757061/+subscriptions
References