Bug 2216748

Summary: [RFE] [CephAdm] ceph-volume prepare command fails /var/lib/ceph/bootstrap-osd/ceph.keyring No such file or directory
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Aditya Ramteke <aramteke>
Component: CephadmAssignee: Adam King <adking>
Status: NEW --- QA Contact: Mohit Bisht <mobisht>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.3CC: ceph-eng-bugs, cephqe-warriors, vdas
Target Milestone: ---Keywords: FutureFeature, Reopened
Target Release: Trackers   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-28 13:04:06 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:

Description Aditya Ramteke 2023-06-22 12:40:01 UTC
Description of problem:

Ceph-volume lvm prepare shows RuntimeError.

# ceph-volume lvm prepare --bluestore --data /dev/vdd
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 7b695de3-f267-4409-be8a-e056e6af3708
 stderr: 2023-06-22T12:17:47.488+0000 7ff283789700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
 stderr: 2023-06-22T12:17:47.488+0000 7ff283789700 -1 AuthRegistry(0x7ff27c05d3d8) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
 stderr: 2023-06-22T12:17:47.488+0000 7ff283789700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
 stderr: 2023-06-22T12:17:47.488+0000 7ff283789700 -1 AuthRegistry(0x7ff27c05ffa0) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
 stderr: 2023-06-22T12:17:47.489+0000 7ff283789700 -1 auth: unable to find a keyring on /var/lib/ceph/bootstrap-osd/ceph.keyring: (2) No such file or directory
 stderr: 2023-06-22T12:17:47.489+0000 7ff283789700 -1 AuthRegistry(0x7ff283787e90) no keyring found at /var/lib/ceph/bootstrap-osd/ceph.keyring, disabling cephx
 stderr: 2023-06-22T12:17:47.490+0000 7ff281525700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [1]
 stderr: 2023-06-22T12:17:47.490+0000 7ff283789700 -1 monclient: authenticate NOTE: no keyring found; disabled cephx authentication
 stderr: [errno 13] RADOS permission denied (error connecting to the cluster)
-->  RuntimeError: Unable to create a new OSD id


Version-Release number of selected component (if applicable):
ceph version 16.2.10-185.el8cp

How reproducible:
Always

Steps to Reproduce:
1. ceph-volume lvm prepare --bluestore --data VOLUME_GROUP/LOGICAL_VOLUME

Actual results:
RuntimeError: Unable to create a new OSD id

Expected results:
Command should prepare bluestore data