test_aggregate_add_host_create_server_with_az fails if all hosts are in other zones
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Undecided
|
zhufl |
Bug Description
1. Problem
Running test_aggregate_
409 POST http://
Request-Head: {'X-OpenStack-
Response-Head: {'status': '409', u'content-length': '159', u'vary': 'X-OpenStack-
[tecs@controller01 ~(keystone_admin)]$ nova availability-
+------
| Name | Status |
+------
| internal | available |
| |- compute09 | |
| | |- nova-storage | enabled :-) 2018-02-
| |- compute11 | |
| | |- nova-storage | enabled :-) 2018-02-
| |- controller01 | |
| | |- nova-conductor | enabled :-) 2018-02-
| | |- nova-consoleauth | enabled :-) 2018-02-
| | |- nova-monitor | enabled :-) 2018-02-
| | |- nova-scheduler | enabled :-) 2018-02-
| |- controller02 | |
| | |- nova-conductor | enabled XXX 2018-02-
| | |- nova-consoleauth | enabled XXX 2018-02-
| | |- nova-monitor | enabled XXX 2018-02-
| | |- nova-scheduler | enabled XXX 2018-02-
| |- compute12 | |
| | |- nova-storage | enabled :-) 2018-02-
| rally_test | available |
| |- compute09 | |
| | |- nova-compute | enabled :-) 2018-02-
| |- compute11 | |
| | |- nova-compute | enabled :-) 2018-02-
| dvs_test | available |
| |- compute12 | |
| | |- nova-compute | enabled :-) 2018-02-
+------
2. Analysis
If a host is already in other zone(default is nova), it can't be added to another zone.
3. Solution
If all hosts in the system are already in other zones, then adding host to aggretate can no longer be tested, so the testcase should be skipped in this situation.
Fix proposed to branch: master /review. openstack. org/542653
Review: https:/