Scenario NovaHosts.list_and_get_hosts doesn't work with Rally v0.8.1 and v0.9.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
zhangzhihui |
Bug Description
Here is my cluster
$nova host-list
+------
| host_name | service | zone |
+------
| ic4-ctl01-*** | cert | internal |
| ic4-ctl01-*** | consoleauth | internal |
| ic4-ctl01-*** | conductor | internal |
| ic4-ctl01-*** | scheduler | internal |
| ic4-cpu15-*** | compute | nova |
| ic4-cpu07-*** | compute | nova |
| ic4-cpu03-*** | compute | nova |
| ic4-cpu01-*** | compute | nova |
| ic4-cpu04-*** | compute | nova |
| ic4-cpu08-*** | compute | nova |
| ic4-cpu02-*** | compute | nova |
| ic4-cpu06-*** | compute | nova |
+------
and rally scenario returns this error
----
Traceback (most recent call last):
File "/usr/local/
getattr(
File "/usr/local/
self.
File "/usr/local/
f = func(self, *args, **kwargs)
File "/usr/local/
return self.admin_
File "/usr/local/
return self._list(
File "/usr/local/
resp, body = self.api.
File "/usr/local/
return self.request(url, 'GET', **kwargs)
File "/usr/local/
raise exceptions.
NotFound: Compute host ic4-ctl01-*** could not be found. (HTTP 404) (Request-ID: req-553c16ff-
----
Did update to the code to make it work
rally/rally/
The current version:
def run(self, zone=None):
...
hosts = self._list_
with atomic.
for host in hosts:
Added:
if host.service == "compute":
self.
And this fixed issue
description: | updated |
description: | updated |
Changed in rally: | |
assignee: | nobody → Jonte Watford (jwatford) |
Changed in rally: | |
assignee: | nobody → zhangzhihui (zhangzhang) |
Adding the code segment does not solve this issue. What exactly did you do? can you show something more detailed?