Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ceph device ls" does not work #48

Closed
p-se opened this issue Jan 20, 2020 · 1 comment · Fixed by #50
Closed

"ceph device ls" does not work #48

p-se opened this issue Jan 20, 2020 · 1 comment · Fixed by #50
Labels

Comments

@p-se
Copy link
Member

p-se commented Jan 20, 2020

ceph device ls does not work. It returns no devices. This is probably due to the virtual machines having not sufficient device meta data (vendor, serial number, etc) for a device ID to be generated.

This is on an octopus cluster, but I expect this to be an issue with any other setup as well.

The Ceph Dashboard will also have functionality limited by this issue, which may not easily be resolvable as SMART data also cannot be read out in virtual machines.

➜  ~ ceph device ls
DEVICE HOST:DEV DAEMONS LIFE EXPECTANCY 
➜  ~ udevadm info /dev/vda
P: /devices/pci0000:00/0000:00:03.0/virtio0/block/vda
N: vda
S: disk/by-path/pci-0000:00:03.0
S: disk/by-path/virtio-pci-0000:00:03.0
E: DEVLINKS=/dev/disk/by-path/pci-0000:00:03.0 /dev/disk/by-path/virtio-pci-0000:00:03.0
E: DEVNAME=/dev/vda
E: DEVPATH=/devices/pci0000:00/0000:00:03.0/virtio0/block/vda
E: DEVTYPE=disk
E: ID_PART_TABLE_TYPE=gpt
E: ID_PART_TABLE_UUID=42c809fd-9a5d-4dfe-84b2-6d931bf350bf
E: ID_PATH=pci-0000:00:03.0
E: ID_PATH_TAG=pci-0000_00_03_0
E: MAJOR=253
E: MINOR=0
E: SUBSYSTEM=block
E: TAGS=:systemd:
E: USEC_INITIALIZED=5101428

Adding device information for VMs might resolve the problem for Ceph creating device IDs: https://lists.opensuse.org/opensuse-bugs/2012-04/msg00361.html

@p-se p-se added the bug label Jan 20, 2020
@smithfarm smithfarm changed the title ceph device ls does not work` "ceph device ls" does not work Jan 20, 2020
smithfarm added a commit that referenced this issue Jan 20, 2020
Fixes: #48
Signed-off-by: Nathan Cutler <ncutler@suse.com>
@bk201
Copy link
Member

bk201 commented Jan 21, 2020

I can confirm adding serial works, thanks!

@rjfd rjfd closed this as completed in #50 Jan 21, 2020
alekseytols90 pushed a commit to alekseytols90/sesdev that referenced this issue Mar 31, 2020
Fixes: SUSE/sesdev#48
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants