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 2091151

Summary: Drive light on removed OSD cannot be marked off
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tupper Cole <tcole>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED WONTFIX QA Contact: Manasa <mgowri>
Severity: medium Docs Contact: Anjana Suparna Sriram <asriram>
Priority: medium    
Version: 5.1CC: ceph-eng-bugs, gabrioux
Target Milestone: ---   
Target Release: 5.1z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2097307 (view as bug list) Environment:
Last Closed: 2022-06-15 12:07:57 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:
Bug Depends On:    
Bug Blocks: 2097307    

Description Tupper Cole 2022-05-27 16:53:35 UTC
Description of problem:When flashing a drive light, the light notification remains on in ceph status:

` 1 devices have fault light turned on`

If this device is then replaced, but receives a new device name the light is still associated with the previous device name, and is now unavailable to turn off. 


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


How reproducible:

consistent
Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 RHEL Program Management 2022-05-27 16:53:41 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 Tupper Cole 2022-06-01 16:00:24 UTC
Solution found by customer using tab completion- This needs to be added to documentation:


```
[root@chhq-supcossn01 ~]# ceph device ls-lights
{
    "fault": [
        "SEAGATE_ST12000NM002G_ZL2KTGCK0000C149AXZL"
    ],
    "ident": []
}


# ceph device light off SEAGATE_ST12000NM002G_ZL2KTGCK0000C149AXZL fault --force

```