3 instances launched in soft anti-affinity server group but unexpectedly ignored the 3rd host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Gerry Kopec |
Bug Description
Brief Description
-----------------
anti-affinity server group selected on instantiation but some instances landed on the same host (unexpectedly ignoring the 3rd host that was available)
Severity
--------
standard
Steps to Reproduce
------------------
1. created a flavor
Flavor ID c5bf85da-
RAM 1GB
VCPUs 1 VCPU
Disk 2GB
hw:mem_page_size 2048
nova flavor-list
c5bf85da-
2. as tenant1 user, created a server group with soft anti-affinity setting
grp_soft_
3. Ensuring that all hypervisors are enabled and there is room on each of the 3 compute hosts
as tenant1 user, launched an instance in the server group from step 2 with the flavor from step 1
as tenant1 user, launched another instance in the same server group with the same flavor
as tenant1 user, launched a 3rd instance in the same server group with the same flavor
Expected Behaviour
------------------
Expect each of the 3 instances should have landed on their own host as all 3 hosts were available
Actual Behaviour
------------------
2 of the 3 instances scheduled on compute-1, 1 scheduled on compute-0
----------------
$ openstack server list --all
+------
| ID | Name | Status | Networks | Image | Flavor |
+------
| 2cd165c7-
| a444bd09-
| f5da1493-
+------
$ openstack server show 2cd165c7-
+------
| Field | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | tenant1-
| config_drive | |
| created | 2019-06-
| flavor | srv_grp (c5bf85da-
| hostId | 9a30d3bab229e5b
| id | 2cd165c7-
| image | |
| key_name | None |
| name | three |
| progress | 0 |
| project_id | db4395f7baaa4de
| properties | |
| security_groups | name='default' |
| | name='default' |
| status | ACTIVE |
| updated | 2019-06-
| user_id | af0923a7f8a641d
| volumes_attached | id='b99ab998-
+------
[sysadmin@
+------
| Field | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | tenant1-
| config_drive | |
| created | 2019-06-
| flavor | srv_grp (c5bf85da-
| hostId | 4010538971e4a04
| id | a444bd09-
| image | |
| key_name | None |
| name | two |
| progress | 0 |
| project_id | db4395f7baaa4de
| properties | |
| security_groups | name='default' |
| | name='default' |
| status | ACTIVE |
| updated | 2019-06-
| user_id | af0923a7f8a641d
| volumes_attached | id='21adce61-
+------
[sysadmin@
+------
| Field | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | tenant1-
| config_drive | |
| created | 2019-06-
| flavor | srv_grp (c5bf85da-
| hostId | 9a30d3bab229e5b
| id | f5da1493-
| image | |
| key_name | None |
| name | one |
| progress | 0 |
| project_id | db4395f7baaa4de
| properties | |
| security_groups | name='default' |
| | name='default' |
| status | ACTIVE |
| updated | 2019-06-
| user_id | af0923a7f8a641d
| volumes_attached | id='1b501b68-
Reproducibility
---------------
100%
System Configuration
-------
standard system
Branch/Pull Time/Commit
-------
BUILD_ID=
Timestamp/Logs
--------------
see inline
tags: | added: stx.regression stx.retestneeded |
Lab: WP_3-7 (2 controller, 3 computes)