yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #69535
[Bug 1735407] Re: [Nova] Evacuation doesn't respect anti-affinity rules
** Changed in: mos
Assignee: (unassigned) => Oleksiy Molchanov (omolchanov)
** Changed in: mos/9.x
Assignee: MOS Maintenance (mos-maintenance) => Oleksiy Molchanov (omolchanov)
** Also 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/1735407
Title:
[Nova] Evacuation doesn't respect anti-affinity rules
Status in Mirantis OpenStack:
New
Status in Mirantis OpenStack 9.x series:
New
Status in OpenStack Compute (nova):
New
Bug description:
--- Environment ---
MOS: 9.2
Nova: 13.1.1-7~u14.04+mos20
3 compute nodes
--- Steps to reproduce ---
1. Create a new server group:
nova server-group-create anti anti-affinity
2. Launch 2 VMs in this server group:
nova boot --image TestVM --flavor m1.tiny --nic net-id=889e4e01-9b38-4007-829d-b69d53269874 --hint group=def58398-4a00-4066-a2aa-13f1b6e7e327 vm-1
nova boot --image TestVM --flavor m1.tiny --nic net-id=889e4e01-9b38-4007-829d-b69d53269874 --hint group=def58398-4a00-4066-a2aa-13f1b6e7e327 vm-2
3. Stop nova-compute on the nodes where these 2 VMs are running:
nova show vm-1 | grep "hypervisor"
OS-EXT-SRV-ATTR:hypervisor_hostname | node-12.domain.tld
nova show vm-2 | grep "hypervisor"
OS-EXT-SRV-ATTR:hypervisor_hostname | node-13.domain.tld
[root@node-12 ~]$ service nova-compute stop
nova-compute stop/waiting
[root@node-13 ~]$ service nova-compute stop
nova-compute stop/waiting
4. Evacuate both VMs almost at once:
nova evacuate vm-1
nova evacuate vm-2
5. Check where these 2 VMs are running:
nova show vm-1 | grep "hypervisor"
nova show vm-2 | grep "hypervisor"
--- Actual behavior ---
Both VMs have been evacuated on the same node:
[root@node-11 ~]$ virsh list
Id Name State
----------------------------------------------------
2 instance-00000001 running
3 instance-00000002 running
--- Expected behavior ---
According to the anti-affinity rule, only 1 VM is evacuated.
Another one failed to evacuate with the appropriate message.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mos/+bug/1735407/+subscriptions