Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1950980

Summary: [cephadm] 5.0 - host add label option do not display the output in the order given for multiple labels
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Preethi <pnataraj>
Component: CephadmAssignee: Daniel Pivonka <dpivonka>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: low Docs Contact: Karen Norteman <knortema>
Priority: low    
Version: 5.0CC: jolmomar, sewagner, tserlin, vereddy
Target Milestone: ---   
Target Release: 5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-16.2.0-33.el8cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 08:29:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Preethi 2021-04-19 10:21:53 UTC
Description of problem:host add label option do not display the output in the order given for multiple labels


Version-Release number of selected component (if applicable):
[ubuntu@magna004 ~]$ sudo cephadm version
Using recent ceph image registry-proxy.engineering.redhat.com/rh-osbs/rhceph@sha256:31f41eb9fddef4fd6f642529f19a579f93e9c41c6951728a5975566e3c7166af
ceph version 16.2.0-6.el8cp (2b0c5b5369efbc3027857de8692ae6d39c1ce6da) pacific (stable)
[ubuntu@magna004 ~]$ 


How reproducible:


Steps to Reproduce:
1. Bootstrap a cluster with default or custom image
2. enter to cephadm shell and copy ssh keys
3. Add host along with address and label 
4.observe the behaviour

[ceph: root@magna004 /]# ceph orch host add magna004 10.8.128.4 mon admin admin1 2222
Added host 'magna004'
[ceph: root@magna004 /]# ceph orch host ls
HOST      ADDR        LABELS                 STATUS  
magna004  10.8.128.4  mon 2222 admin admin1 

[ceph: root@magna004 /]# ceph orch host add magna004 10.8.128.4 admin 77777777
Added host 'magna004'
[ceph: root@magna004 /]# ceph orch host ls
HOST      ADDR        LABELS          STATUS  
magna004  10.8.128.4  77777777 admin          
magna005  magna005                      

Actual results: We do not see the labels specified in the same order in the output


Expected results: We should see the output in the same order we gave the labels


Additional info:
magna004

Comment 1 Daniel Pivonka 2021-04-20 19:45:48 UTC
upstream tracker: https://tracker.ceph.com/issues/50444
upstream master pr: https://github.com/ceph/ceph/pull/40944

Comment 2 Daniel Pivonka 2021-04-22 13:32:17 UTC
fix merged in upstream master

Comment 3 Daniel Pivonka 2021-04-28 17:53:31 UTC
needs backport to upstream pacific. did not make it in "april batch 3"

Comment 4 Daniel Pivonka 2021-05-04 17:29:51 UTC
backport pr: https://github.com/ceph/ceph/pull/41151

Comment 5 Daniel Pivonka 2021-05-07 16:11:05 UTC
cherry-picked changes to the ceph-5.0-rhel-patches

Comment 10 Preethi 2021-05-19 10:06:27 UTC
@Juan, verified the issue in latest ceph version. Issue is not seen. Hence, moving to verified state.

[ceph: root@ceph-5x-doc-mgowri-1620728264715-node1-mon-mgr-installer /]# ceph orch host add ceph-5x-doc-mgowri-1620728264715-node5-osd 10.0.208.52 osd 7777 abc adc 5678 osd1 
Added host 'ceph-5x-doc-mgowri-1620728264715-node5-osd'
[ceph: root@ceph-5x-doc-mgowri-1620728264715-node1-mon-mgr-installer /]# ceph orch host ls
HOST                                                      ADDR          LABELS                      STATUS  
ceph-5x-doc-mgowri-1620728264715-node1-mon-mgr-installer  10.0.209.111  mon mgr                             
ceph-5x-doc-mgowri-1620728264715-node2-mon-mgr-rgw        10.0.211.133  mon mgr rgw                         
ceph-5x-doc-mgowri-1620728264715-node3-osd                10.0.209.117  osd                                 
ceph-5x-doc-mgowri-1620728264715-node4-osd                10.0.208.153  osd                                 
ceph-5x-doc-mgowri-1620728264715-node5-osd                10.0.208.52   osd 7777 abc adc 5678 osd1          
ceph-5x-doc-mgowri-1620728264715-node6-mon-rgw            10.0.210.195  mon rgw                             
ceph-5x-doc-mgowri-1620728264715-node7-rgw-mgr            10.0.208.226  mgr rgw                             
[ceph: root@ceph-5x-doc-mgowri-1620728264715-node1-mon-mgr-installer /]#

Comment 12 errata-xmlrpc 2021-08-30 08:29:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3294