Hint at sector sizes when reporting an invalid written image

Change-Id: Iee7f22e9958b68f263d267c434678478b9a38648
Signed-off-by: Dmitry Tantsur <dtantsur@protonmail.com>
This commit is contained in:
Dmitry Tantsur
2025年07月09日 15:59:03 +02:00
parent 883e3cf057
commit 9e9334fa00

View File

@@ -843,7 +843,8 @@ def _validate_partitioning(device):
except (processutils.UnknownArgumentError,
processutils.ProcessExecutionError, OSError) as e:
msg = ("Unable to find a valid partition table on the disk after "
f"writing the image. The image may be corrupted. Error: {e}")
"writing the image. The image may be corrupted or it uses a "
f"different sector size than the device. Error: {e}")
raise errors.DeploymentError(msg)
# Check if there is at least one partition in the partition table after
Reference in New Issue
openstack/ironic-python-agent
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.