Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2063593

Summary: [ceph-volume]ceph-volume lvm create fails "The osd ID x is already in use or does not exist"
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: James Biao <jbiao>
Component: Ceph-VolumeAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3CC: ceph-eng-bugs, tserlin, vereddy
Target Milestone: ---   
Target Release: 4.3z1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-14.2.22-111.el8cp, ceph-14.2.22-111.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-22 11:21: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 James Biao 2022-03-14 01:07:03 UTC
Description of problem:

After removing osd with "ceph osd purge". OSD recreation with the purged osd id fails with "RuntimeError: The osd ID 2 is already in use or does not exist."


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

How reproducible:
Always

Steps to Reproduce:
1. ceph osd purge osd
2. disable systemctl service, remove lv vg pv, remove osd dir and admin socket, ceph-volume zap 
3. ceph-volume lvm create --osd-id <id> --data /dev/sdb --no-systemd

Actual results:
fails with error "RuntimeError: The osd ID 2 is already in use or does not exist."

Expected results:
osd creation successful

Additional info:
create osd without "--osd-id" completes without any issues

Comment 7 Ameena Suhani S H 2022-05-18 20:36:24 UTC
Verified using 
ceph-ansible-4.0.70.4-1.el8cp.noarch
ansible-2.9.27-1.el8ae.noarch
ceph version 14.2.22-113.el8cp

Comment 10 errata-xmlrpc 2022-09-22 11:21:06 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 (Red Hat Ceph Storage 4.3 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/RHBA-2022:6684