images_client uses incorrect exception: BuildErrorException
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Low
|
Katherine Elliott |
Bug Description
I'm seeing this on the latest-available branch. In images_client.py, both wait_for_
=======
ERROR: An image for the provided server should be created
-------
Traceback (most recent call last):
File "/tempest/
self.
File "/tempest/
raise exceptions.
BuildErrorExcep
In addition, images_client is using the exception incorrectly, not passing in a "server_id" string (which should be an "image_id" string in a correct exception):
def wait_for_
"""
Waits until the HTTP response code for the request matches the
expected value
"""
resp, body = self.client.
start = int(time.time())
while resp.status != code:
resp, body = self.client.
if int(time.time()) - start >= self.build_timeout:
To my exceptions.py here, I've added the following exception:
class ImageAddExcepti
message = "Image %(image_id) failed to become ACTIVE in the allotted time."
and changed the image tests to use this.
Changed in tempest: | |
status: | New → Triaged |
importance: | Undecided → Low |
assignee: | nobody → Katherine Elliott (katherine-elliott) |
Changed in tempest: | |
status: | Fix Committed → Fix Released |
Hi katherine, thx for the bug report (and fix)! Feel like submitting a patch into the Gerrit system for inclusion into trunk?