vgcreate fails on /dev/disk/by-dname block devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Invalid
|
Undecided
|
Unassigned | ||
curtin (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
lvm2 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu Focal, OpenStack Charmers Next Charms.
juju run-action --wait ceph-osd/0 add-disk osd-devices=
unit-ceph-osd-0:
UnitId: ceph-osd/0
id: "5"
message: exit status 1
results:
ReturnCode: 1
Stderr: |
partx: /dev/disk/
Failed to find physical volume "/dev/bcache1".
Failed to find physical volume "/dev/bcache1".
Device /dev/disk/
Traceback (most recent call last):
File "/var/lib/
request = add_device(
File "/var/lib/
File "lib/charms_
File "lib/charms_
cmd = _ceph_volume(dev,
File "lib/charms_
File "lib/charms_
File "hooks/
File "/usr/lib/
raise CalledProcessEr
subproces
Stdout: |2
Physical volume "/dev/disk/
status: failed
timing:
completed: 2020-05-15 06:04:41 +0000 UTC
enqueued: 2020-05-15 06:04:30 +0000 UTC
started: 2020-05-15 06:04:39 +0000 UTC
The same action on the /dev/bcacheX device succeeds - looks like some sort of behaviour break in Ubuntu.
Changed in charm-ceph-osd: | |
status: | New → Invalid |
Changed in lvm2 (Ubuntu): | |
status: | New → Invalid |
The by-dname entry disappears after the pv is created:
$ sudo pvs a99d-4885- 814d-c9376fa843 6d lvm2 a-- 931.51g 0
PV VG Fmt Attr PSize PFree
/dev/bcache1 lvm2 --- 931.51g 931.51g
/dev/bcache2 ceph-a7917224-
$ ls -l /dev/disk/by-dname/
total 0
lrwxrwxrwx 1 root root 13 May 15 06:04 bcache1 -> ../../bcache2
lrwxrwxrwx 1 root root 13 May 15 06:04 bcache3 -> ../../bcache0
lrwxrwxrwx 1 root root 13 May 15 06:04 bcache43 -> ../../bcache3
lrwxrwxrwx 1 root root 13 May 15 06:04 nvme0n1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 May 15 06:04 nvme0n1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 May 15 06:04 nvme0n1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 9 May 15 06:04 sda -> ../../sda
lrwxrwxrwx 1 root root 10 May 15 06:04 sda-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 15 06:04 sda-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 May 15 06:04 sdb -> ../../sdb
lrwxrwxrwx 1 root root 9 May 15 06:04 sdc -> ../../sdc
lrwxrwxrwx 1 root root 9 May 15 06:04 sdd -> ../../sdd