Bug 2216748 - [RFE] [CephAdm] ceph-volume prepare command fails /var/lib/ceph/bootstrap-osd/ceph.keyring No such file or directory
Summary: [RFE] [CephAdm] ceph-volume prepare command fails /var/lib/ceph/bootstrap-osd...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 5.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: Trackers
Assignee: Adam King
QA Contact: Mohit Bisht
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-22 12:40 UTC by Aditya Ramteke
Modified: 2023-06-28 13:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-28 13:04:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-6908 0 None None None 2023-06-22 12:40:52 UTC

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


Note You need to log in before you can comment on or make changes to this bug.