Merge "Enhance subcloud upgrade orchestration failure message"
This commit is contained in:
commit
096bf095ae
|
@ -113,3 +113,9 @@ class PlaybookExecutionFailed(DCCommonException):
|
|||
class PlaybookExecutionTimeout(PlaybookExecutionFailed):
|
||||
message = _("Playbook execution failed [TIMEOUT (%(timeout)s)], "
|
||||
"command=%(playbook_cmd)s")
|
||||
|
||||
|
||||
class ImageNotInLocalRegistry(NotFound):
|
||||
message = _("Image %(image_name)s:%(image_tag)s not found in the local registry. "
|
||||
"Please check with command: system registry-image-list or "
|
||||
"system registry-image-tags %(image_name)s")
|
||||
|
|
|
@ -197,7 +197,8 @@ class SubcloudInstall(object):
|
|||
msg = "Error: Image %s:%s not found in the local registry." % (
|
||||
image_name, image_tag)
|
||||
LOG.error(msg)
|
||||
raise exceptions.NotFound()
|
||||
raise exceptions.ImageNotInLocalRegistry(image_name=image_name,
|
||||
image_tag=image_tag)
|
||||
|
||||
@staticmethod
|
||||
def create_rvmc_config_file(override_path, payload):
|
||||
|
|
Loading…
Reference in New Issue