Incorrect testing of aggregates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Undecided
|
Attila Fazekas |
Bug Description
The test "test_aggregate
Source: ../tempest/
The cause of the problem is using REST API command os-hosts.
57 def _get_host_
58 -> hosts = self.compute_
59 self.assertTrue
60 hostname = hosts[0].host_name
61 return hostname
This command returns list all known hosts include admin-node. Usually, information about admin-node placed in top of the list.
So, the first (top) node form the list is candidate for adding to aggregate and it is admin-node.
60 hostname = hosts[0].host_name
As result Nova raises exception when tries to add admin-node to aggregate because cannot find node name in DB
/usr/lib/
434 def service_
435 -> result = model_query(
436 options(
437 filter_
438 filter_
439 first()
440
441 -> if not result:
442 raise exception.
I offer to replace "os-hosts" by "os-hypervisors" which returns only compute nodes.
Changed in tempest: | |
status: | New → Confirmed |
Changed in tempest: | |
status: | Confirmed → Fix Committed |
Changed in tempest: | |
assignee: | nobody → Attila Fazekas (afazekas) |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/94203
Review: https:/