virsh list shows instance running while no vms on host (after evacuation)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
Undecided
|
MOS Nova |
Bug Description
Detailed bug description:
virsh list on compute show instance running after successful instance evacuation
Snapshot: https:/
Steps to reproduce:
1) Boot vm from image on compute1
2) Kill compute1
3) Evacuate vm to another compute
4) Restore compute1
5) Check vm is on new compute, not on compute1
6) Check virsh list of compute1
Expected results:
1-5) Ok
6) Ok,
virsh list on new compute shows instance
virsh list on compute1 doesn't contain instance
Actual result:
1-5) Ok
6) Nok, virsh list shows instance running
root@node-3:~# virsh list
Id Name State
-------
2 instance-00000003 running
Actually the same instance-00000003 is running on the new compute
Reproducibility:
always
Workaround:
-
Impact:
Automated test is failed
Description of the environment:
#9.0 mos 507
1 controller + 3 computes&ceph
Ceph RBD is enabled for all (including Ceph RBD for ephemeral volumes (Nova))
root@node-1:~# nova show instance
+------
| Property | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| admin_internal_net network | 10.109.11.3 |
| config_drive | True |
| created | 2016-06-
| description | instance |
| flavor | m1.small (2) |
| hostId | ad62d273a5a0b7e
| host_status | UP |
| id | 6a447863-
| image | TestVM (7c011039-
| key_name | - |
| locked | False |
| metadata | {} |
| name | instance |
| os-extended-
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 641b13d4cb0d40d
| updated | 2016-06-
| user_id | efb05daab6d54c4
+------
root@node-4:~# virsh list --all
Id Name State
-------
2 instance-00000001 running
root@node-2:~# virsh list --all
Id Name State
-------
2 instance-00000001 running
Changed in mos: | |
milestone: | none → 9.0 |
assignee: | nobody → MOS Nova (mos-nova) |
tags: | added: area-nova |
Waiting for repro from QA before confirmation