Detection of LVM physical volume which is not part of a VG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
I have a case where swift-storage was deployed to a machine with two disks where /dev/sdb was *previously* part of an LVM group. Now it's not, but pvdisplay doesn't error:
# pvdisplay /dev/sdb
"/dev/sdb" is a new physical volume of "465.76 GiB"
--- NEW Physical volume ---
PV Name /dev/sdb
VG Name
PV Size 465.76 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID SBvNiL-
Note the "VG Name". It's not part of any, but is_lvm_
list_lvm_
2014-05-09 16:36:13 INFO install Processing triggers for ureadahead (0.100.0-16) ...
2014-05-09 16:36:14 INFO install Volume group "Name" not found
2014-05-09 16:36:14 INFO install <open file '/proc/partitions', mode 'r' at 0x7ffde27a2db0>
2014-05-09 16:36:14 INFO install Traceback (most recent call last):
2014-05-09 16:36:14 INFO install File "/var/lib/
2014-05-09 16:36:14 INFO install main()
2014-05-09 16:36:14 INFO install File "/var/lib/
2014-05-09 16:36:14 INFO install hooks.execute(
2014-05-09 16:36:14 INFO install File "/var/lib/
2014-05-09 16:36:14 INFO install self._hooks[
2014-05-09 16:36:14 INFO install File "/var/lib/
2014-05-09 16:36:14 INFO install setup_storage()
2014-05-09 16:36:14 INFO install File "/var/lib/
2014-05-09 16:36:14 INFO install clean_storage(dev)
2014-05-09 16:36:14 INFO install File "/var/lib/
2014-05-09 16:36:14 INFO install deactivate_
2014-05-09 16:36:14 INFO install File "/var/lib/
2014-05-09 16:36:14 INFO install check_call(cmd)
2014-05-09 16:36:14 INFO install File "/usr/lib/
2014-05-09 16:36:14 INFO install raise CalledProcessEr
2014-05-09 16:36:14 INFO install subprocess.
Related branches
- Marco Ceppi: Approve
-
Diff: 62 lines (+25/-1)3 files modifiedREADME.test (+3/-0)
charmhelpers/contrib/storage/linux/lvm.py (+1/-1)
tests/contrib/storage/test_linux_storage_lvm.py (+21/-0)
tags: | added: landscape |
Changed in charm-helpers: | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
status: | New → In Progress |
Changed in charm-helpers: | |
status: | In Progress → Fix Released |