curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #01007
[Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
Ryan Harper has proposed merging ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master.
Commit message:
clear-holders: fix identification of multipath partitions
identify_partition calls multipath.is_mpath_partition using at sysfs
path to the device but is_mpath_partition expects a /dev/XXX path.
This prevented clear-holders from identifying multipath partitions which
need to be handled differently than regular partitions (or disks).
LP: #1900900
Requested reviews:
curtin developers (curtin-dev)
Related bugs:
Bug #1900900 in curtin: "Groovy install to zVM with fcp devices FAIL: removing previous storage devices"
https://bugs.launchpad.net/curtin/+bug/1900900
For more details, see:
https://code.launchpad.net/~raharper/curtin/+git/curtin/+merge/392636
--
Your team curtin developers is requested to review the proposed merge of ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master.
diff --git a/curtin/block/clear_holders.py b/curtin/block/clear_holders.py
index 9553db6..c182d91 100644
--- a/curtin/block/clear_holders.py
+++ b/curtin/block/clear_holders.py
@@ -396,11 +396,11 @@ def identify_partition(device):
"""
determine if specified device is a partition
"""
- blockdev = block.sys_block_path(device)
- path = os.path.join(blockdev, 'partition')
+ path = os.path.join(device, 'partition')
if os.path.exists(path):
return True
+ blockdev = block.sysfs_to_devpath(device)
if multipath.is_mpath_partition(blockdev):
return True
Follow ups
-
[Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Server Team CI bot, 2020-11-13
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Server Team CI bot, 2020-11-13
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Server Team CI bot, 2020-11-13
-
[Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Dan Watkins, 2020-11-10
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Michael Hudson-Doyle, 2020-11-10
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Server Team CI bot, 2020-10-22
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Paride Legovini, 2020-10-22
-
[Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Paride Legovini, 2020-10-22
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Server Team CI bot, 2020-10-22
-
[Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Paride Legovini, 2020-10-22
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Paride Legovini, 2020-10-22
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Michael Hudson-Doyle, 2020-10-21
-
Re: [Merge] ~raharper/curtin:fix/clear-holders-detect-mpath-partition into curtin:master
From: Server Team CI bot, 2020-10-21