We also have faced this bug in some situations. I believe, that nova
shouldn't set instance to the ERROR state, because only password change
operation has failed and nothing destructive has been done to the
instance.

** Changed in: nova
       Status: Invalid => Confirmed

-- 
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/1746972

Title:
  After setting the password failed, the VM state is set to error

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  Description
  ===========
  After we execute the command ‘nova set-password’  failed, the virtual machine 
state is set to error,while its power state is still running,we should not 
change vm_state at this situation。

  Steps to reproduce
  ==================
  1、choose a running VM which was not installed QGA, 
  2、execute ‘nova set-password <UUID>’
  3、the command executed failed, and the vm_state turnned to ERROR.

  Expected result
  ===============
  command executed failed, vm_state still ACTIVE.

  Actual result
  =============
  vm_state turned to ERROR.

  Environment
  ===========
  Pike 
  Nova16.0.4
  libvirt & KVM

  Logs & Configs
  ==============
  [root@E9000slot5 ~(keystone_admin)]# nova set-password 
9f9330c2-4ab4-45f1-a9f9-2770dd34cf30
  New password: 
  Again: 
  ERROR (Conflict): Failed to set admin password on 
9f9330c2-4ab4-45f1-a9f9-2770dd34cf30 because error setting admin password (HTTP 
409) (Request-ID: req-0b533563-132e-42e2-8ef3-5665fa8e7187)

  2018-02-02 18:55:06.529 35382 ERROR oslo_messaging.rpc.server 
[req-0b533563-132e-42e2-8ef3-5665fa8e7187 d118d43c722e4cf48be77d6cff727810 3ac8
  6e9ee3014040832eae0191490b3f - default default] Exception during message 
handling: InstancePasswordSetFailed: Failed to set admin password on
   9f9330c2-4ab4-45f1-a9f9-2770dd34cf30 because error setting admin password

  [root@E9000slot5 ~(keystone_admin)]# nova list 
  
+--------------------------------------+--------+--------+------------+-------------+------------------+
  | ID                                   | Name   | Status | Task State | Power 
State | Networks         |
  
+--------------------------------------+--------+--------+------------+-------------+------------------+
  | 9f9330c2-4ab4-45f1-a9f9-2770dd34cf30 | testyj | ERROR  | -          | 
Running     | test=192.168.3.9 |
  
+--------------------------------------+--------+--------+------------+-------------+------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1746972/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to