[ceph-users] ceph-disk removal roadmap (was ceph-disk is now deprecated)

Dennis Lijnsveld dennis at bit.nl
Fri Dec 1 08:35:29 PST 2017


On 12/01/2017 01:45 PM, Alfredo Deza wrote:
>> Will the upcoming 12.2.2 release ship with a ceph-volume capable of
>> doing bluestore on top of LVM? Eager to use ceph-volume for that, and
>> skip entirely over ceph-disk and our manual osd prepare process ...
> 
> Yes. I think that for 12.2.1 this was the case as well, in 12.2.2 is
> the default.

Just updated Ceph and received an update for 12.2.2 and afterwards tried
to prepare an osd with the following command:

ceph-volume lvm prepare --bluestore --data osd.9/osd.9

in which osd.9 is both the name for the VG as for the LV. After running
the command I got the error on screen:

-->  ValueError: need more than 1 value to unpack

I checked the logs /var/log/ceph-volume.log which gave me the output
underneath. Am I hitting some kind of bug or am I doing something wrong
perhaps?

[2017-12-01 17:25:25,234][ceph_volume.process][INFO  ] Running command:
ceph-authtool --gen-print-key
[2017-12-01 17:25:25,278][ceph_volume.process][INFO  ] stdout
AQB1giFayoNDEBAAtOCZgErrB02Hrs370zBDcA==
[2017-12-01 17:25:25,279][ceph_volume.process][INFO  ] Running command:
ceph --cluster ceph --name client.bootstrap-osd --keyring
/var/lib/ceph/bootstrap-osd/ceph.keyring -i - osd new
063c7de3-d4b2-463b-9f56-7a76b0b48197
[2017-12-01 17:25:25,940][ceph_volume.process][INFO  ] stdout 25
[2017-12-01 17:25:25,940][ceph_volume.process][INFO  ] Running command:
sudo lvs --noheadings --separator=";" -o
lv_tags,lv_path,lv_name,vg_name,lv_uuid
[2017-12-01 17:25:25,977][ceph_volume.process][INFO  ] stdout
";"/dev/LVM0/CEPH";"CEPH";"LVM0";"y4Al1c-SFHH-VARl-XQf3-Qsc8-H3MN-LLIIj4
[2017-12-01 17:25:25,978][ceph_volume.process][INFO  ] stdout
";"/dev/LVM0/ROOT";"ROOT";"LVM0";"31V3cd-E2b1-LcDz-2loq-egvh-lz4e-3u20ZN
[2017-12-01 17:25:25,978][ceph_volume.process][INFO  ] stdout
";"/dev/LVM0/SWAP";"SWAP";"LVM0";"hI3cNL-sddl-yXFB-BOXT-5R6j-fDtZ-kNixYa
[2017-12-01 17:25:25,978][ceph_volume.process][INFO  ] stdout
d77bfa9f-4d8d-40df-852a-692a94929ed2";"/dev/osd.9/osd.9";"osd.9";"osd.9";"3NAmK8-U3Fx-KUOm-f8x8-aEtO-MbYh-uPGHhR
[2017-12-01 17:25:25,979][ceph_volume][ERROR ] exception caught by decorator
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ceph_volume/decorators.py",
line 59, in newfunc
    return f(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/main.py", line 144,
in main
    terminal.dispatch(self.mapper, subcommand_args)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/terminal.py", line
131, in dispatch
    instance.main()
  File
"/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/main.py", line
38, in main
    terminal.dispatch(self.mapper, self.argv)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/terminal.py", line
131, in dispatch
    instance.main()
  File
"/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/prepare.py",
line 293, in main
    self.prepare(args)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/decorators.py",
line 16, in is_root
    return func(*a, **kw)
  File
"/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/prepare.py",
line 206, in prepare
    block_lv = self.get_lv(args.data)
  File
"/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/prepare.py",
line 102, in get_lv
    return api.get_lv(lv_name=lv_name, vg_name=vg_name)
  File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line
162, in get_lv
    lvs = Volumes()
  File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line
411, in __init__
    self._populate()
  File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line
416, in _populate
    self.append(Volume(**lv_item))
  File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line
638, in __init__
    self.tags = parse_tags(kw['lv_tags'])
  File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line
66, in parse_tags
    key, value = tag_assignment.split('=', 1)
ValueError: need more than 1 value to unpack

-- 
Dennis Lijnsveld
BIT BV - http://www.bit.nl
Kvk: 09090351


More information about the ceph-users mailing list