Trivial: minor fixes in error messages

Change-Id: I06b32c2eb576520cddff88074e4619070731017d
This commit is contained in:
Dmitry Tantsur 2021-09-07 14:41:38 +02:00
parent 438a1f4445
commit cb836a29bf
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ class CleanExtension(base.BaseAgentExtension):
try:
result = hardware.dispatch_to_managers(step['step'], node, ports)
except Exception as e:
msg = ('Error performing clean_step %(step)s: %(err)s' %
msg = ('Error performing clean step %(step)s: %(err)s' %
{'step': step['step'], 'err': e})
LOG.exception(msg)
raise errors.CleaningError(msg)

View File

@ -76,7 +76,7 @@ class DeployExtension(base.BaseAgentExtension):
result = hardware.dispatch_to_managers(step['step'], node, ports,
**kwargs)
except Exception as e:
msg = ('Error performing deploy_step %(step)s: %(err)s' %
msg = ('Error performing deploy step %(step)s: %(err)s' %
{'step': step['step'], 'err': e})
LOG.exception(msg)
raise errors.DeploymentError(msg)

View File

@ -523,7 +523,7 @@ def _validate_partitioning(device):
except (processutils.UnknownArgumentError,
processutils.ProcessExecutionError, OSError) as e:
msg = ("Unable to find a valid partition table on the disk after "
"writing the image. Error {}".format(e))
f"writing the image. The image may be corrupted. Error: {e}")
raise exception.InstanceDeployFailure(msg)
# Check if there is at least one partition in the partition table after