Failed: can't get Volume Group information from /dev/sda1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
High
|
Unassigned |
Bug Description
When running tests in LXD VMs (LXD containers don't perform disk setup, as they don't have their own disks), I see:
2021-04-06 14:31:24,084 - helpers.py[DEBUG]: Running config-growpart using lock (<cloudinit.
2021-04-06 14:31:24,084 - cc_growpart.
2021-04-06 14:31:24,084 - subp.py[DEBUG]: Running command ['growpart', '--help'] with allowed return codes [0] (shell=False, capture=True)
2021-04-06 14:31:24,092 - util.py[DEBUG]: Reading from /proc/503/mountinfo (quiet=False)
2021-04-06 14:31:24,092 - util.py[DEBUG]: Read 3726 bytes from /proc/503/mountinfo
2021-04-06 14:31:24,093 - subp.py[DEBUG]: Running command ['lvm', 'lvs', '/dev/sda1', '--options=vgname', '--noheadings'] with allowed return codes [0] (shell=False, capture=True)
2021-04-06 14:31:24,138 - util.py[WARNING]: Failed: can't get Volume Group information from /dev/sda1
2021-04-06 14:31:24,138 - util.py[DEBUG]: Failed: can't get Volume Group information from /dev/sda1
Traceback (most recent call last):
File "/usr/lib/
(out, _err) = subp.subp(["lvm", "lvs", devpath, "--options=vgname",
File "/usr/lib/
raise ProcessExecutio
cloudinit.
Command: ['lvm', 'lvs', '/dev/sda1', '--options=vgname', '--noheadings']
Exit code: 5
Reason: -
Stdout:
Stderr: Volume group "sda1" not found
Cannot process volume group sda1
2021-04-06 14:31:24,140 - util.py[DEBUG]: resize_devices took 0.048 seconds
2021-04-06 14:31:24,140 - handlers.py[DEBUG]: finish: init-network/
2021-04-06 14:31:24,140 - util.py[WARNING]: Running module growpart (<module 'cloudinit.
2021-04-06 14:31:24,142 - util.py[DEBUG]: Running module growpart (<module 'cloudinit.
Traceback (most recent call last):
File "/usr/lib/
(out, _err) = subp.subp(["lvm", "lvs", devpath, "--options=vgname",
File "/usr/lib/
raise ProcessExecutio
cloudinit.
Command: ['lvm', 'lvs', '/dev/sda1', '--options=vgname', '--noheadings']
Exit code: 5
Reason: -
Stdout:
Stderr: Volume group "sda1" not found
Cannot process volume group sda1
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/
ran, _r = cc.run(run_name, mod.handle, func_args,
File "/usr/lib/
return self._runners.
File "/usr/lib/
results = functor(*args)
File "/usr/lib/
resized = util.log_
File "/usr/lib/
ret = func(*args, **kwargs)
File "/usr/lib/
disk, ptnum = device_
File "/usr/lib/
lvm_rpath = get_pvs_
File "/usr/lib/
raise ResizeFailedExc
cloudinit.
Command: ['lvm', 'lvs', '/dev/sda1', '--options=vgname', '--noheadings']
Exit code: 5
Reason: -
Stdout:
Stderr: Volume group "sda1" not found
Cannot process volume group sda1
Changed in cloud-init: | |
status: | New → Triaged |
importance: | Undecided → High |
I strongly suspect that https:/ /github. com/canonical/ cloud-init/ commit/ 74fa008bfcd3263 eb691cc0b3f7a05 5b17569f8b introduced these issues.