Project

General

Profile

Bug #50690

Updated by Sebastian Wagner almost 3 years ago

Description of problem: 

   ceph orch apply osd -i <path_to_osd_spec.yml>    --dry-run command is not generating the expected output. 

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

 <pre> 
 ceph version 16.1.0-736.el8cp (a45d35696b02c10722a5e887f7a59895a4868dfb) pacific (rc) 
 </pre> 
                             

 How reproducible: 

 Steps to Reproduce: 
 1.Configure a cluster using cephadm without adding OSD nodes. 
 2.Create osd_spec_file with the following content 

 <pre> 
 ceph: root@magna045 /]# cat osd_spec.yml                               
 service_type: osd 
 service_id: osd_using_paths 
 placement: 
   hosts: 
     - magna046  
     - magna047  
 data_devices: 
   paths: 
     - /dev/sdb 
 db_devices: 
   paths: 
     - /dev/sdc 
 [ceph: root@magna045 /]# 

 </pre> 
 4. Execute ceph orch apply osd -i <path_to_osd_spec.yml>    --dry-run    command 


 Actual results: 

 <pre> 
  [ceph: root@magna045 /]# ceph orch apply osd -i osd_spec.yml    --dry-run 
 WARNING! Dry-Runs are snapshots of a certain point in time and are bound  
 to the current inventory setup. If any on these conditions changes, the  
 preview will be invalid. Please make sure to have a minimal  
 timeframe between planning and applying the specs. 
 #################### 
 SERVICESPEC PREVIEWS 
 #################### 
 +---------+------+--------+-------------+ 
 |SERVICE    |NAME    |ADD_TO    |REMOVE_FROM    | 
 +---------+------+--------+-------------+ 
 +---------+------+--------+-------------+ 
 ################ 
 OSDSPEC PREVIEWS 
 ################ 
 Preview data is being generated.. Please re-run this command in a bit. 

 </pre> 

 


 Expected results: 
 sample output- 


 <pre> 
 

   |osd        |example_osd_spec    |magna046    |/dev/sdb|db File details|WAL details      | 
 |osd        |example_osd_spec    |magna046    |/dev/sdc    |-     |-      | 
 |osd        |example_osd_spec    |magna046    |/dev/sdd    |-     |-      | 
 |osd        |example_osd_spec    |magna047    |/dev/sdb    |-     |-      | 
 |osd        |example_osd_spec    |magna047    |/dev/sdc    |-     |-      | 
 |osd        |example_osd_spec    |magna047    |/dev/sdd    |-     |-      | 

 </pre> 

 


 Additional info:

Back