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

Updated by Juan Miguel Olmo Martínez almost 3 years ago

  • % Done changed from 0 to 50
  • Pull request ID set to 41230
Actions #2

Updated by Sebastian Wagner almost 3 years ago

  • Description updated (diff)
Actions #3

Updated by Sebastian Wagner almost 3 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Sebastian Wagner over 2 years ago

  • Status changed from Fix Under Review to New
  • Assignee deleted (Juan Miguel Olmo Martínez)
  • % Done changed from 50 to 0
Actions #5

Updated by Redouane Kachach Elhichou about 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Redouane Kachach Elhichou
Actions #6

Updated by Redouane Kachach Elhichou about 2 years ago

I tried to reproduce the BUG but the current behavior (on a simulated cluster using kcli) seems correct. Steps:

1) Created a cluster of 3 nodes (ceph-nod-0, 1 and 2).
2) Applied the following spec (using dry-run):

[ceph: root@ceph-node-0 /]# cat /tmp/test.yml 
service_type: osd
service_id: osd_using_paths
placement:
  hosts:
    - ceph-node-0
    - ceph-node-1
data_devices:
  paths:
    - /dev/vdb
db_devices:
  paths:
    - /dev/vdc

Result of executing ceph orch apply is as expected (OSDSPEC section is populated correctly):

[ceph: root@ceph-node-0 /]# ceph orch apply -i /tmp/test.yml --dry-run
WARNING! Dry-Runs are snapshots of a certain point in time and are bound 
to the current inventory setup. If any of these conditions change, 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
################
+---------+-----------------+-------------+----------+----------+-----+
|SERVICE  |NAME             |HOST         |DATA      |DB        |WAL  |
+---------+-----------------+-------------+----------+----------+-----+
|osd      |osd_using_paths  |ceph-node-0  |/dev/vdb  |/dev/vdc  |-    |
|osd      |osd_using_paths  |ceph-node-1  |/dev/vdb  |/dev/vdc  |-    |
+---------+-----------------+-------------+----------+----------+-----+

Actions #7

Updated by Redouane Kachach Elhichou about 2 years ago

  • Status changed from In Progress to Can't reproduce
Actions

Also available in: Atom PDF