Curtin clear_holders() does not work on lvm devices with either their vg name or lv name containing a -
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Wesley Wiedenmeier |
Bug Description
Curtin is unable to remove logical volumes and volume groups encountered while running clear_holders(). It does not crash during the clear_holders phase, but instead fails silently. Installation fails while attempting to write a partition table to the disk:
[ 12.417125] cloud-init[1342]: labeling device: '/dev/vdb' with 'msdos' partition table
[ 12.422910] cloud-init[1342]: Running command ['parted', '/dev/vdb', '--script', 'mklabel', 'msdos'] with allowed return codes [0] (shell=False, capture=False)
[ 14.571996] cloud-init[1342]: Error: Partition(s) 2, 3 on /dev/vdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
[ 14.618894] cloud-init[1342]: An error occured handling 'sda': ProcessExecutio
This occurs because in /sys/block/
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Wesley Wiedenmeier (community): Needs Resubmitting
- curtin developers: Pending requested
-
Diff: 2214 lines (+1515/-265)15 files modifiedcurtin/block/__init__.py (+176/-47)
curtin/block/clear_holders.py (+379/-0)
curtin/block/lvm.py (+96/-0)
curtin/commands/block_info.py (+75/-0)
curtin/commands/block_meta.py (+82/-203)
curtin/commands/block_wipe.py (+0/-1)
curtin/commands/clear_holders.py (+48/-0)
curtin/commands/main.py (+4/-3)
curtin/config.py (+2/-3)
curtin/util.py (+35/-8)
doc/devel/clear_holders_doc.txt (+85/-0)
tests/unittests/test_block.py (+99/-0)
tests/unittests/test_block_lvm.py (+94/-0)
tests/unittests/test_clear_holders.py (+321/-0)
tests/unittests/test_util.py (+19/-0)
tags: | added: curtin-clear-holders |
Changed in curtin: | |
status: | New → Confirmed |
Changed in curtin: | |
status: | Confirmed → Fix Committed |
An example config file that should install correctly but does not.