Project

General

Profile

Bug #43857

sys_api seems not to be populated for some LVs

Added by Joshua Schmid 10 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

lsblk output:

..snip

vdk           254:160  0   25G  0 disk 
└─vdk1        254:161  0   25G  0 part 
  └─MyVg-MyLV 253:0    0  5.4G  0 lvm  

snip..

admin:~ # vgs
  VG   #PV #LV #SN Attr   VSize  VFree 
  MyVg   1   1   0 wz--n- 25.00g 19.62g
admin:~ # lvs
  LV   VG   Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  MyLV MyVg -wi-a----- 5.37g                                                    
admin:~ # pvs
  PV         VG   Fmt  Attr PSize  PFree 
  /dev/vdk1  MyVg lvm2 a--  25.00g 19.62g
admin:~ # 

admin:~ # CEPH_VOLUME_DEBUG=1 ceph-volume lvm batch MyVg/MyLV
 stderr: unable to read label for MyVg/MyLV: (2) No such file or directory
 stderr: 2020-01-28T12:55:11.844+0100 7f1393fb3180 -1 bluestore(MyVg/MyLV) _read_bdev_label failed to open MyVg/MyLV: (2) No such file or directory
Traceback (most recent call last):
  File "/usr/sbin/ceph-volume", line 11, in <module>
    load_entry_point('ceph-volume==1.0.0', 'console_scripts', 'ceph-volume')()
  File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 39, in __init__
    self.main(self.argv)
  File "/usr/lib/python3.6/site-packages/ceph_volume/decorators.py", line 59, in newfunc
    return f(*a, **kw)
  File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 150, in main
    terminal.dispatch(self.mapper, subcommand_args)
  File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 194, in dispatch
    instance.main()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/main.py", line 42, in main
    terminal.dispatch(self.mapper, self.argv)
  File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 194, in dispatch
    instance.main()
  File "/usr/lib/python3.6/site-packages/ceph_volume/decorators.py", line 16, in is_root
    return func(*a, **kw)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/batch.py", line 320, in main
    self._get_strategy()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/batch.py", line 303, in _get_strategy
    self.strategy = strategy.with_auto_devices(self.args, unused_devices)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 25, in with_auto_devices
    return cls(args, devices)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 20, in __init__
    self.validate_compute()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/strategies.py", line 30, in validate_compute
    self.validate()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 61, in validate
    self.data_devs, osds_per_device=self.osds_per_device
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/validators.py", line 12, in minimum_device_size
    device_size = disk.Size(b=device.lvm_size.b)
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/device.py", line 299, in lvm_size
    size = disk.Size(b=self.size)
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/device.py", line 291, in size
    return self.sys_api['size']
KeyError: 'size'

self.sys_api appears to be empty

History

#1 Updated by Sebastian Wagner 10 months ago

  • Description updated (diff)

#2 Updated by Jan Fajerski 10 months ago

hmm so batch doesn't really support being called on LVs yet. This is on my todo list (https://github.com/ceph/ceph/pull/32235 was the foundation for that)

Guess this just slid up the priority list...

Also available in: Atom PDF