Server group anti-affinity no longer works
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Server group anti-affinity is no longer working, at least in the simple case. I am able to boot two VMs in an anti-affinity server group on a devstack that only has one compute instance. Previously this would fail and/or require soft-anti-affinity enabled.
$ openstack host list
+------
| Host Name | Service | Zone |
+------
| devstack2 | scheduler | internal |
| devstack2 | conductor | internal |
| devstack2 | conductor | internal |
| devstack2 | compute | nova |
+------
$ openstack compute service list
+----+-
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+-
| 3 | nova-scheduler | devstack2 | internal | enabled | up | 2020-02-
| 6 | nova-conductor | devstack2 | internal | enabled | up | 2020-02-
| 1 | nova-conductor | devstack2 | internal | enabled | up | 2020-02-
| 3 | nova-compute | devstack2 | nova | enabled | up | 2020-02-
+----+-
$ openstack server list
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| a44febef-
| de776347-
+------
$ openstack server group show ddbc8544-
+------
| Field | Value |
+------
| id | ddbc8544-
| members | a44febef-
| name | octavia-
| policies | anti-affinity |
+------
Steps to reproduce:
1. Boot a devstack.
2. Create an anti-affinity server group.
2. Boot two VMs in that server group.
Expected Behavior:
The second VM boot should fail with an error similar to "not enough hosts"
Actual Behavior:
The second VM boots with no error, The two instances in the server group are on the same host.
Environment:
Nova version (current Ussuri): 0d3aeb0287a0619
commit 0d3aeb0287a0619
Merge: 1fcd74730d 65825ebfbd
Author: Zuul <email address hidden>
Date: Thu Feb 13 14:25:10 2020 +0000
Merge "Make RBD imagebackend flatten method idempotent"
Fresh devstack install, however I have another devstack from August that is also showing this behavior.
devstack@n-* log files.