Nova aggregate scenarios should use self._list_hypervisors() instead of self._list_hosts()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
Rajath Agasthya |
Bug Description
The CreateAggregate
Here's the diff:
class CreateAggregate
"""Scenario for add a host to and remove the host from an aggregate."""
def run(self, availability_zone):
"""Create an aggregate, add a host to and remove the host from it
Measure "nova aggregate-add-host" and "nova aggregate-
command performance.
:param availability_zone: The availability zone of the aggregate
"""
aggregate = self._create_
- hosts = self._list_
- host_name = hosts[0].host_name
+ hosts = self._list_
+ host_name = hosts[0]
I'd be willing to submit a patch if this bug is confirmed.
Changed in rally: | |
assignee: | nobody → Rajath Agasthya (rajagast) |
Changed in rally: | |
status: | New → Confirmed |
@rajath actually it must be something like this: hypervisors( ) .service[ 'host']
hosts = self._list_
host_name = hosts[0]
because hosts[0] .hypervisor_ hostname can be a FQDN and _aggregate_add_host will fail if the host_name is an FQDN