Public bug reported:

Description
===========
After one of the hypervisors have been shutdown the `openstack servel list` 
along with 'nova list' is displaying incorrect VM (compute instance) status. 
All the VM's under 'openstack server list --host <name_of_down_hypervisor>` 
suppose to report/display SHUTDOWN status, but they are displaying ACTIVE 
status instead. 

I have came across few old blogposts/articles touching on this subject:
https://bugzilla.redhat.com/show_bug.cgi?id=1596171#c4
http://lists.openstack.org/pipermail/openstack-discuss/2021-June/023182.html
They seems to hint that this behavior is expected. However they are quite old 
and I'm not sure if anything has change regarding this matter.


Steps to reproduce
==================
1.) Shut down one of the hypervisors/baremetal hosts via IPMI.
2.) Run `openstack hypervisor list` => the result is correct and one of the 
hypervisors is displayed as down; remaining hypervisors are up as expected;
3.) From other hypervisor in the cluster: 
    Run `openstack server list` along with `openstack server list --host 
<name_of_down_hypervisor`: the VM's under hypervisor which us currently down 
are reported as 'ACTIVE'. 
        Any attemp to ping or ssh to server are unsuccessfull
4.) Bring the downed hypervisor up, run `kolla-ansible recover`
5.) Run on recently powered-on host: `openstack server list` - the VM's are 
still reporting ACTIVE status despite being unavailable.
6.) After running manually `openstack server stop <name>` once the hypervisor 
has been brought up, the command ends up successfully and VM's status change to 
'SHUTOFF'. Once this is done, the subsequent commands on VM are successful. 

Expected result
===============
`openstack server list` is displaying VM's with SHUTDOFF status if such a VM is 
located under powered-off hypervisor. 

Actual result
=============
`openstack server list` is displaying VM's with ACTIVE status, despite being 
unaccessible and their hypervisor brought down. 

Environment
===========
1.) Victoria installed via kolla-ansible

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  Compute Instance (aka VM's) status is inaccurate

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  After one of the hypervisors have been shutdown the `openstack servel list` 
along with 'nova list' is displaying incorrect VM (compute instance) status. 
All the VM's under 'openstack server list --host <name_of_down_hypervisor>` 
suppose to report/display SHUTDOWN status, but they are displaying ACTIVE 
status instead. 

  I have came across few old blogposts/articles touching on this subject:
  https://bugzilla.redhat.com/show_bug.cgi?id=1596171#c4
  http://lists.openstack.org/pipermail/openstack-discuss/2021-June/023182.html
  They seems to hint that this behavior is expected. However they are quite old 
and I'm not sure if anything has change regarding this matter.

  
  Steps to reproduce
  ==================
  1.) Shut down one of the hypervisors/baremetal hosts via IPMI.
  2.) Run `openstack hypervisor list` => the result is correct and one of the 
hypervisors is displayed as down; remaining hypervisors are up as expected;
  3.) From other hypervisor in the cluster: 
      Run `openstack server list` along with `openstack server list --host 
<name_of_down_hypervisor`: the VM's under hypervisor which us currently down 
are reported as 'ACTIVE'. 
        Any attemp to ping or ssh to server are unsuccessfull
  4.) Bring the downed hypervisor up, run `kolla-ansible recover`
  5.) Run on recently powered-on host: `openstack server list` - the VM's are 
still reporting ACTIVE status despite being unavailable.
  6.) After running manually `openstack server stop <name>` once the hypervisor 
has been brought up, the command ends up successfully and VM's status change to 
'SHUTOFF'. Once this is done, the subsequent commands on VM are successful. 

  Expected result
  ===============
  `openstack server list` is displaying VM's with SHUTDOFF status if such a VM 
is located under powered-off hypervisor. 

  Actual result
  =============
  `openstack server list` is displaying VM's with ACTIVE status, despite being 
unaccessible and their hypervisor brought down. 

  Environment
  ===========
  1.) Victoria installed via kolla-ansible

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


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to