ceph-ansible / ceph-volume fails with certain LANG environments

Solution Verified - Updated -

Issue

ceph-volume or ceph-ansible task running ceph-volume can fail with certain LANG environments, as LVM may return a string with a comma instead with a dot:

# LC_NUMERIC=fi_FI.UTF-8 ceph-volume lvm batch --bluestore --osds-per-device 2 /dev/vdc

Total OSDs: 2

  Type            Path                                                    LV Size         % of device
----------------------------------------------------------------------------------------------------
  [data]          /dev/vdc                                                10.00 GB        50%
----------------------------------------------------------------------------------------------------
  [data]          /dev/vdc                                                10.00 GB        50%
--> The above OSDs would be created if the operation continues
--> do you want to proceed? (yes/no) yes
Running command: vgcreate --force --yes ceph-25bd907f-6e11-49fe-86ec-f077f21fe926 /dev/vdc
 stdout: Physical volume "/dev/vdc" successfully created.
 stdout: Volume group "ceph-25bd907f-6e11-49fe-86ec-f077f21fe926" successfully created
-->  RuntimeError: Unable to convert to integer: '20,00'

Environment

Red Hat Ceph Storage 3.2z2 and older

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In