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 2090396

Summary: ceph health detail failing during cephadm adoption
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Francesco Pantano <fpantano>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED DUPLICATE QA Contact: Vivek Das <vdas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.2CC: aschoen, ceph-eng-bugs, gmeno, jbadiapa, lbezdick, mgowri, nthomas, vereddy, ykaul
Target Milestone: ---   
Target Release: 5.3z1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-20 12:25: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:
Bug Depends On:    
Bug Blocks: 1820257    

Description Francesco Pantano 2022-05-25 16:41:09 UTC
Description of problem:

After the Ceph cluster is upgraded from RHCS 4 to RHCS 5 (16.2.7-100.el8cp) using ceph-ansible rolling_update playbook [1], the cephadm_adopt playbook part is executed and it fails running the "ceph health detail" [3] command against the adopted cluster with the following:

[root@controller-0 ~]# cephadm shell ceph health detail                                                                                                                                                           
Inferring fsid f98c3e4c-e0c9-418e-99b9-10dcfb8bf4a0                                                                                                                                                               
Using recent ceph image undercloud-0.ctlplane.redhat.local:8787/rh-osbs/rhceph@sha256:90e4316d65f4a76fea307705d9b0e4706f05e10a63bf041dbee379c8711db115                                                            
HEALTH_WARN failed to probe daemons or devices                                                                                                                                                                    
[WRN] CEPHADM_REFRESH_FAILED: failed to probe daemons or devices                                                                                                                                                  
    host ceph-0.redhat.local `cephadm ceph-volume` failed: cephadm exited with an error code: 1, stderr:Inferring config /var/lib/ceph/f98c3e4c-e0c9-418e-99b9-10dcfb8bf4a0/mon.ceph-0/config                     
ERROR: [Errno 2] No such file or directory: '/var/lib/ceph/f98c3e4c-e0c9-418e-99b9-10dcfb8bf4a0/mon.ceph-0/config'                                                                                                
    host ceph-2.redhat.local `cephadm ceph-volume` failed: cephadm exited with an error code: 1, stderr:Inferring config /var/lib/ceph/f98c3e4c-e0c9-418e-99b9-10dcfb8bf4a0/mon.ceph-2/config                     
ERROR: [Errno 2] No such file or directory: '/var/lib/ceph/f98c3e4c-e0c9-418e-99b9-10dcfb8bf4a0/mon.ceph-2/config'                                                                                                
    host ceph-1.redhat.local `cephadm ceph-volume` failed: cephadm exited with an error code: 1, stderr:Inferring config /var/lib/ceph/f98c3e4c-e0c9-418e-99b9-10dcfb8bf4a0/mon.ceph-1/config                     
ERROR: [Errno 2] No such file or directory: '/var/lib/ceph/f98c3e4c-e0c9-418e-99b9-10dcfb8bf4a0/mon.ceph-1/config'                                                                                                
[root@controller-0 ~]#



[1] https://github.com/ceph/ceph-ansible/blob/v6.0.26/infrastructure-playbooks/rolling_update.yml
[2] https://github.com/ceph/ceph-ansible/blob/v6.0.26/infrastructure-playbooks/cephadm-adopt.yml
[3] https://github.com/ceph/ceph-ansible/blob/master/infrastructure-playbooks/cephadm-adopt.yml#L94

Comment 6 Guillaume Abrioux 2022-09-20 12:25:06 UTC

*** This bug has been marked as a duplicate of bug 2080242 ***