Bug 2222720 - Ceph-volume doesn't allow using --osd-id while preparing OSDs
Summary: Ceph-volume doesn't allow using --osd-id while preparing OSDs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Volume
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 6.1z2
Assignee: Guillaume Abrioux
QA Contact: Aditya Ramteke
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2235257
TreeView+ depends on / blocked
 
Reported: 2023-07-13 14:45 UTC by Santosh Pillai
Modified: 2023-11-03 04:01 UTC (History)
10 users (show)

Fixed In Version: ceph-17.2.6-109.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-10-12 16:34:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 52422 0 None Merged ceph-volume: add --osd-id option to raw prepare 2023-08-11 12:15:24 UTC
Red Hat Issue Tracker RHCEPH-7006 0 None None None 2023-07-13 14:45:52 UTC
Red Hat Product Errata RHSA-2023:5693 0 None None None 2023-10-12 16:35:22 UTC

Description Santosh Pillai 2023-07-13 14:45:38 UTC
Description of problem:

Not able to replace an OSD in raw mode using ceph-volume. Ceph-volume does not support --osd-id argument. 



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Destroy an OSD -> ceph osd destroy {id} --yes-i-really-mean-it
2. clean up the disk -> ceph-volume lvm zap /dev/sdX
3. Prepare OSD again in raw mode using - > ceph-volume lvm prepare --osd-id {id} --data /dev/sdX


Actual results: Failure at Step 3 due to --osd-id flag not supported in raw mode.

2023-07-13 06:17:49.184305 E | cephosd: . usage: ceph-volume raw prepare [-h] --data DATA [--bluestore]
                               [--bluestore-rdr]
                               [--crush-device-class CRUSH_DEVICE_CLASS]
                               [--no-tmpfs] [--block.db BLOCK_DB]
                               [--block.wal BLOCK_WAL] [--dmcrypt]
ceph-volume raw prepare: error: unrecognized arguments: --osd-id 0



Expected results: Ceph volume should support --osd-id flag in raw mode as well.


Additional info:

Comment 1 RHEL Program Management 2023-07-13 14:45:44 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 9 errata-xmlrpc 2023-10-12 16:34:29 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 (Moderate: Red Hat Ceph Storage 6.1 security, enhancement, and bug fix update), 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-2023:5693


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