Actions
Bug #38323
openceph-volume -osds-per-device : Unable to convert to integer with locale FR
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
- echo $LANG
fr_FR.UTF-8
#ceph-volume lvm batch --dmcrypt --osds-per-device 2 /dev/nvme0n1
Total OSDs: 2
Type Path LV Size % of device
----------------------------------------------------------------------------------------------------
[data] /dev/nvme0n1 2.91 TB 50%
----------------------------------------------------------------------------------------------------
[data] /dev/nvme0n1 2.91 TB 50%
--> The above OSDs would be created if the operation continues
--> do you want to proceed? (yes/no) yes
Running command: /sbin/vgcreate --force --yes ceph-e7d5283b-befc-420b-aa7e-e0ad6c10f34e /dev/nvme0n1
stdout: Physical volume "/dev/nvme0n1" successfully created.
stdout: Volume group "ceph-e7d5283b-befc-420b-aa7e-e0ad6c10f34e" successfully created
--> RuntimeError: Unable to convert to integer: '5961,63'
the "," in "5961,63" is wrong, it need to be "."
fix:
#export LANG=en_US.UTF-8
Updated by Greg Farnum about 5 years ago
- Project changed from Ceph to ceph-volume
- Category deleted (
ceph cli)
Updated by Jan Fajerski about 5 years ago
Can we get the output of this command with CEPH_VOLUME_DEBUG=true please?
Updated by alexandre derumier about 5 years ago
root@ablab2:~# CEPH_VOLUME_DEBUG=true ceph-volume lvm batch --dmcrypt --osds-per-device 2 /dev/sdc Total OSDs: 2 Type Path LV Size % of device ---------------------------------------------------------------------------------------------------- [data] /dev/sdc 333.00 GB 50% ---------------------------------------------------------------------------------------------------- [data] /dev/sdc 333.00 GB 50% --> The above OSDs would be created if the operation continues --> do you want to proceed? (yes/no) y Running command: /sbin/vgcreate --force --yes ceph-78e68ae9-7d1c-4c99-87cc-6ce286b5400a /dev/sdc stdout: Physical volume "/dev/sdc" successfully created. stdout: Volume group "ceph-78e68ae9-7d1c-4c99-87cc-6ce286b5400a" successfully created Traceback (most recent call last): File "/usr/sbin/ceph-volume", line 9, in <module> load_entry_point('ceph-volume==1.0.0', 'console_scripts', 'ceph-volume')() File "/usr/lib/python2.7/dist-packages/ceph_volume/main.py", line 38, in __init__ self.main(self.argv) 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 148, in main terminal.dispatch(self.mapper, subcommand_args) File "/usr/lib/python2.7/dist-packages/ceph_volume/terminal.py", line 182, in dispatch instance.main() File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/main.py", line 40, in main terminal.dispatch(self.mapper, self.argv) File "/usr/lib/python2.7/dist-packages/ceph_volume/terminal.py", line 182, in dispatch instance.main() 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/batch.py", line 284, in main self.execute(args) File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/batch.py", line 175, in execute strategy.execute() File "/usr/lib/python2.7/dist-packages/ceph_volume/devices/lvm/strategies/bluestore.py", line 126, in execute lvs = lvm.create_lvs(create['vg'], parts=create['parts'], name_prefix='osd-data') File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line 643, in create_lvs sizing = volume_group.sizing(parts=parts, size=size) File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line 1067, in sizing size = int(self.free / parts) File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line 1008, in free return self._parse_size(self.vg_free) File "/usr/lib/python2.7/dist-packages/ceph_volume/api/lvm.py", line 994, in _parse_size return util.str_to_int(integer) File "/usr/lib/python2.7/dist-packages/ceph_volume/util/__init__.py", line 39, in str_to_int raise RuntimeError(error_msg) RuntimeError: Unable to convert to integer: '666,00'
Actions