Added an AddImageException to exceptions.py and modified images_client to use this exception rather than BuildErrorException.

Fixes bug 999256.

exceptions.py:
class AddImageException(TempestException):
    message = "Image %(image_id) failed to become ACTIVE in the allotted time."

images_client.py:
In wait_for_image_resp_code and wait_for_image_status, changed:

  raise exceptions.BuildErrorException

to:

  raise exceptions.TimeoutException

In wait_for_image_status, changed:

  raise exceptions.BuildErrorExcption

to:

  raise exceptions.AddImageException(image_id=image_id)

Replaced TimeoutException with AddImageException and replaced AddImageException with TimeoutException.

Change-Id: Ic78f1d24151361c9886480822087931b61b3603c
2 files changed