Bug 1822153

Summary: [ceph-volume] Volume group name has invalid characters ,playbook fails at osd creation task
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: subhash <vpoliset>
Component: Ceph-VolumeAssignee: Rishabh Dave <ridave>
Status: CLOSED ERRATA QA Contact: subhash <vpoliset>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0CC: aschoen, ceph-eng-bugs, ceph-qe-bugs, gabrioux, gmeno, ridave, tchandra, tserlin
Target Milestone: rcKeywords: AutomationBlocker
Target Release: 4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-14.2.8-47.el8cp, ceph-14.2.8-39.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-19 17:33:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Christina Meno 2020-04-15 14:43:34 UTC
Rishabh, Would you please triage and recommend a solution here?

Comment 3 Rishabh Dave 2020-04-20 12:55:54 UTC
The cause for the bug is that VG name in the lvcreate command is absent. I could reproduce this  -

ceph-volume lvm create --bluestore --data /dev/vdc --dmcrypt
Running command: /usr/bin/ceph-authtool --gen-print-key
Running command: /usr/bin/ceph-authtool --gen-print-key
Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring -i - osd new fe61b56b-a112-457f-b3f6-69eae35df89b
Running command: /usr/sbin/vgcreate --force --yes ceph-76123753-1603-4bf2-af60-d2152eb85b0f /dev/vdc
 stdout: Physical volume "/dev/vdc" successfully created.
 stdout: Volume group "ceph-76123753-1603-4bf2-af60-d2152eb85b0f" successfully created
Running command: /usr/sbin/lvcreate --yes -l 100%FREE -n osd-block-fe61b56b-a112-457f-b3f6-69eae35df89b
 stderr: Volume group name  has invalid characters
  Run `lvcreate --help' for more information.


Tracker issue[1] pointed out in description here has the same failure with the exact same cause. It's fixed in master[3] and mimic[3] but the nautilus backport[4] is still open. I've informed the backport author that we need it to merge it ASAP. I'll happy be to take over the backport and get it merged if the author turns out to be busy.

[1] https://tracker.ceph.com/issues/44096
[2] https://github.com/ceph/ceph/pull/33478
[3] https://github.com/ceph/ceph/pull/33617
[4] https://github.com/ceph/ceph/pull/33616

Comment 15 errata-xmlrpc 2020-05-19 17:33:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:2231