Merge "Enhance subcloud upgrade orchestration failure message"

This commit is contained in:
Zuul 2023-03-14 18:13:45 +00:00 committed by Gerrit Code Review
commit 096bf095ae
2 changed files with 8 additions and 1 deletions

View File

@ -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")

View File

@ -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):