Bug 2069506 - Error message not present while adding OSD with the bare hostname when node name is a FQDN
Summary: Error message not present while adding OSD with the bare hostname when node...
Keywords:
Status: CLOSED DUPLICATE of bug 2016949
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Volume
Version: 5.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 6.1
Assignee: Guillaume Abrioux
QA Contact: Vivek Das
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-29 05:18 UTC by skanta
Modified: 2022-09-27 03:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-27 03:06:50 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-3885 0 None None None 2022-03-29 05:27:00 UTC

Description skanta 2022-03-29 05:18:00 UTC
Description of problem:
            If an OSD is added with the bare hostname when the node name is FQDN then the output does not show any message that OSD is not added to the cluster.
This causes ambiguity for the customers. To check whether OSD is added or not customers need to execute one more command.

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

[ceph: root@bruuni006 /]# ceph -v
ceph version 16.2.7-95.el8cp (7d44ccc238d248069a1b7070d24b6d9e8d80367a) pacific (stable)
[ceph: root@bruuni006 /]# 
How reproducible:


Steps to Reproduce:
1. Configure a cluster without adding OSD's
2. On the cephadm shell execute "ceph orch apply osd --all-available-devices --unmanaged=true"
3. If the hostname is FQDN try to add the OSD with the bare name or if the hostname is FQDN then try to add OSD with the bare name

Actual results:

 No message 
  

Expected results:

The command should provide proper output that the OSD is not added and trye with bare name if the node name is FQDN or vice  versa

Additional info:

The output of the command:

[ceph: root@bruuni006 /]# ceph orch daemon add osd bruuni006.ceph.redhat.com:/dev/sdb
Created osd(s) 0 on host 'bruuni006.ceph.redhat.com'
[ceph: root@bruuni006 /]# ceph orch daemon add osd bruuni006:/dev/sdc
[ceph: root@bruuni006 /]#


Note You need to log in before you can comment on or make changes to this bug.