Project

General

Profile

Bug #38620

ceph-volume raises 'local variable db_vg' referenced before assignment

Added by Joshua Schmid over 3 years ago. Updated about 3 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

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

Description

artemis:~ # CEPH_VOLUME_DEBUG=1 ceph-volume lvm batch /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf --wal-devices /dev/nvme0n1 --yes
Running command: /usr/sbin/vgcreate -s 1G --force --yes ceph-block-cece00a4-9850-42e4-bacf-269ffb49f794 /dev/sdb
stdout: Physical volume "/dev/sdb" successfully created.
stdout: Volume group "ceph-block-cece00a4-9850-42e4-bacf-269ffb49f794" successfully created
Running command: /usr/sbin/vgcreate -s 1G --force --yes ceph-block-c911800a-9324-4a75-99b1-e604c5284b31 /dev/sdc
stdout: Physical volume "/dev/sdc" successfully created.
stdout: Volume group "ceph-block-c911800a-9324-4a75-99b1-e604c5284b31" successfully created
Running command: /usr/sbin/vgcreate -s 1G --force --yes ceph-block-1a119784-8a6c-437c-bd4d-f41644269978 /dev/sdd
stdout: Physical volume "/dev/sdd" successfully created.
stdout: Volume group "ceph-block-1a119784-8a6c-437c-bd4d-f41644269978" successfully created
Running command: /usr/sbin/vgcreate -s 1G --force --yes ceph-block-d341d290-41b8-4749-8028-c3d484ddc6a1 /dev/sde
stdout: Physical volume "/dev/sde" successfully created.
stdout: Volume group "ceph-block-d341d290-41b8-4749-8028-c3d484ddc6a1" successfully created
Running command: /usr/sbin/vgcreate -s 1G --force --yes ceph-block-77a977a1-73d3-4c38-9dfd-f10c0c948cc0 /dev/sdf
stdout: Physical volume "/dev/sdf" successfully created.
stdout: Volume group "ceph-block-77a977a1-73d3-4c38-9dfd-f10c0c948cc0" successfully created
Running command: /usr/sbin/vgcreate -s 1G --force --yes ceph-block-wals-63113122-8e10-4a08-8d8c-702c3f292bec /dev/nvme0n1
stdout: Physical volume "/dev/nvme0n1" successfully created.
stdout: Volume group "ceph-block-wals-63113122-8e10-4a08-8d8c-702c3f292bec" successfully created
Running command: /usr/sbin/lvcreate --yes -l 1863 -n osd-block-241b659f-f865-45de-b6ae-ff76a8e47d7c ceph-block-cece00a4-9850-42e4-bacf-269ffb49f794
stdout: Logical volume "osd-block-241b659f-f865-45de-b6ae-ff76a8e47d7c" created.
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 38, 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 148, in main
terminal.dispatch(self.mapper, subcommand_args)
File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 182, in dispatch
instance.main()
File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/main.py", line 40, in main
terminal.dispatch(self.mapper, self.argv)
File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 182, 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 325, in main
self.execute()
File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/batch.py", line 288, in execute
self.strategy.execute()
File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 367, in execute
'osd-block-db', db_vg.name, extents=db_lv_extents, uuid_name=True
UnboundLocalError: local variable 'db_vg' referenced before assignment

History

#1 Updated by Jan Fajerski about 3 years ago

  • Status changed from New to Can't reproduce

Seems like this no longer reproduces on 14.2.4. Otherwise please re-open.

Also available in: Atom PDF