hypervisor data not matching with virsh data

asked 2019-08-08 06:01:27 -0500

jayeshc gravatar image

Hello Everyone,

I have Openstack queens setup(upgraded from pike). In hypervisor list I can see 44 instances on one perticular compute node, but in actual on compute node only 20 instances are running. I tried to look into nova.compute_nodes table and there is actual stale or wrong data persist. Even after creating one more instance it didn't update any record in nova.compute_nodes table.

Database:

mysql> select host,running_vms from nova.compute_nodes where host="compute22"\G; *************************** 1. row ***************************
   host: compute22
   running_vms: 44
   1 row in set (0.00 sec)

Compute:

root@compute22:~# virsh list | grep running | wc -l
20
root@compute22:~#

How can I refresh this data in database ? Is there any utility for it ? I thought placement-api used to manage it, so I tried to bounce it as well. But it didn't worked.

-Jayesh

edit retag flag offensive close merge delete

Comments

can you see an initial VM entry is created on the nova database for a new VM that you created?

Vinoth gravatar imageVinoth ( 2019-08-09 01:29:27 -0500 )edit

Yes instances table getting updated properly.

jayeshc gravatar imagejayeshc ( 2019-08-09 01:44:05 -0500 )edit