Project

General

Profile

Actions

Bug #50690

closed

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

Added by Juan Miguel Olmo Martínez almost 3 years ago. Updated about 2 years ago.

Status:
Can't reproduce
Priority:
Normal
Category:
cephadm
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
4 - irritation
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Description of problem:

ceph orch apply osd -i &lt;path_to_osd_spec.yml&gt;  --dry-run command is not generating the expected output.

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

ceph version 16.1.0-736.el8cp (a45d35696b02c10722a5e887f7a59895a4868dfb) pacific (rc)

How reproducible:

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

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 /]#


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

Actual results:

 [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.

Expected results:
sample output-

|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  |-   |-    |

Additional info:

Actions

Also available in: Atom PDF