[partition reuse] VGs are not deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Unassigned | ||
subiquity |
Fix Released
|
Critical
|
Michael Hudson-Doyle |
Bug Description
In manual partitioning mode one may want to keep some partitions but throw away a VG, replacing it with a plain partition or with another VG built from scratch.
Subiquity allows for deleting VGs, but this is not actually done. Even if the "deleted" VG disappears, another VG with the same name can't be created (the error is: "vg0 is not a valid name for a volume group"). If the VG has been "deleted" from subiquity and a device which was in the VG is used in another way, the installation fails at format time with the error "device is in use".
In both cases a look in /dev reveals the VG still exists.
If a VG is deleted and not reused the installation does not fail, but the VG comes up configured in the installed system.
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Paride Legovini: Approve
- Michael Hudson-Doyle: Approve
- Chad Smith: Pending requested
-
Diff: 124 lines (+87/-4)3 files modifiedcurtin/commands/block_meta.py (+2/-4)
examples/tests/preserve-partition-wipe-vg-simple.yaml (+62/-0)
tests/vmtests/test_preserve_partition_wipe_vg.py (+23/-0)
Changed in subiquity: | |
status: | New → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → Michael Hudson-Doyle (mwhudson) |
tags: | added: reuse |
tags: | added: id-5d645a2e2be6213e05b2df9a |
Changed in subiquity: | |
status: | Triaged → Fix Committed |
Changed in subiquity: | |
status: | Fix Committed → Fix Released |
VGs are not deleted even "reformatting" the device ("Reformat" from the device context menu).