Bug 2222720 - Ceph-volume doesn't allow using --osd-id while preparing OSDs [NEEDINFO]
Summary: Ceph-volume doesn't allow using --osd-id while preparing OSDs
Keywords:
Status: VERIFIED
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-09-12 05:28 UTC (History)
10 users (show)

Fixed In Version: ceph-17.2.6-109.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:
akraj: needinfo? (gabrioux)


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

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.


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