From 9e9334fa009525beced643f7ea658f51cf4c3bc4 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 9 Jul 2025 15:59:03 +0200 Subject: [PATCH] Hint at sector sizes when reporting an invalid written image Change-Id: Iee7f22e9958b68f263d267c434678478b9a38648 Signed-off-by: Dmitry Tantsur --- ironic_python_agent/extensions/standby.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ironic_python_agent/extensions/standby.py b/ironic_python_agent/extensions/standby.py index b6e2e4ee8..42fef5a00 100644 --- a/ironic_python_agent/extensions/standby.py +++ b/ironic_python_agent/extensions/standby.py @@ -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