From f2549ad0972c3745454c3e15371c8d2fde08f610 Mon Sep 17 00:00:00 2001 From: Lucas Borges Date: Fri, 17 Feb 2023 10:01:19 -0300 Subject: [PATCH] CentOs partition to debian failing with multipath In the script when updating the CentOs partition to Debian occurs a mismatch with multipath paths. This fix is specific to upgrade multipath systems Test Plan: PASS: Upgrade AIO-SX with multipath PASS: Upgrade AIO-DX with multipath PASS: Upgrade AIO-SX without multipath PASS: Upgrade AIO-DX without multipath Closes-bug: 2007690 Change-Id: I833381a7dfdc89327e271d3772ee90012383cb95 Signed-off-by: Lucas Borges --- .../upgrade-scripts/10-update-centos-partition-to-debian.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllerconfig/controllerconfig/upgrade-scripts/10-update-centos-partition-to-debian.py b/controllerconfig/controllerconfig/upgrade-scripts/10-update-centos-partition-to-debian.py index 64d1992977..726c0467c4 100755 --- a/controllerconfig/controllerconfig/upgrade-scripts/10-update-centos-partition-to-debian.py +++ b/controllerconfig/controllerconfig/upgrade-scripts/10-update-centos-partition-to-debian.py @@ -268,8 +268,8 @@ def is_device_path_on_disk(device_path, disk_device_path, disk_device_node): if disk_device_path in device_path: return True elif constants.DEVICE_NAME_MPATH in disk_device_node: - path_split = disk_device_node.split(constants.DEVICE_NAME_MPATH) - if path_split[0] in device_path and path_split[1] in device_path: + split_path = device_path.split("-part") + if split_path[0] in disk_device_path: return True return False