Project

General

Profile

Bug #51061

Updated by Sebastian Wagner over 2 years ago

Sequence of operations -  
 1) Boot strapped cluster using -  

 <pre> 
  
 cephadm -v --image registry-proxy.engineering.redhat.com/rh-osbs/rhceph:ceph-5.0-rhel-8-containers-candidate-54312-20210519174049 bootstrap --mon-ip 10.8.129.101 --cluster-network 172.20.20.0/24 

 </pre> 
 2) checked 

 <pre> 
 cephadm shell ceph-volume inventory and 
 cephadm shell ceph orch device ls 

 </pre> 
 To make sure that all three devices on host we listed as available 

 3) Created gpt labels on one of the devices using  

 <pre> 
  
 parted /dev/sdd mklabel gpt 

 </pre> 
 and checked  
 <pre> 
 cephadm shell ceph-volume inventory and 
 cephadm shell ceph orch device ls 

 </pre> 
 to make sure that the device with gpt label created was marked as not available. 
 'cephadm shell ceph orch device ls' had to be tried after intervals to see that changes updated (Did not know about --refresh) 

 4) Executed  
 <pre> 
 ceph orch apply osd --all-available-devices   
 </pre>  

    

 And observed mgr logs 
 <pre> 
  sudo journalctl -fu ceph-d66b64e4-b923-11eb-ac53-0cc47a6ee150@mgr.pluto001.juyiug.service 
 </pre> 

 and observed that device with gpt label was not excluded from the list of available devices and operation failed as ceph-volume fails to configure OSD on devices with GPT headers.

Back