Bug 2103686

Summary: `ceph_orch_host` module fails to set node `admin` when `set_admin_label` set to `true`
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vaibhav Mahajan <vamahaja>
Component: CephadmAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Vaibhav Mahajan <vamahaja>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.2CC: akraj, cephqe-warriors, gabrioux, tserlin, vereddy
Target Milestone: ---   
Target Release: 5.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cephadm-ansible-1.8.0-1.el8cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-09 17:39:24 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:
Bug Depends On:    
Bug Blocks: 2102272    

Description Vaibhav Mahajan 2022-07-04 14:01:12 UTC
Description of problem:
`ceph_orch_host` fails to add label `_admin` to new node when using `set_admin_label` with `true`

How reproducible: Always

Steps to Reproduce:
Use below playbook -
```
- name: Test 'ceph_orch_host' module
  hosts: localhost
  gather_facts: false
  become: true
  any_errors_fatal: true
  tasks:
    - name: Add host node with `set_admin_label` set to `true`
      ceph_orch_host:
        name: rhceph5x-5node-1 
        address: 192.168.46.96 
        set_admin_label: true

```

Actual results:
Fails to add host with label `_admin`

[root@rhceph5x-5node-0 cephadm-ansible]# cephadm shell -- ceph orch host ls
Inferring fsid 33c5ecb8-fb9f-11ec-af65-0050568aa418
Using recent ceph image registry.redhat.io/rhceph/rhceph-5-rhel8@sha256:fc25524ccb0ea78526257778ab54bfb1a25772b75fcc97df98eb06a0e67e1bf6
HOST              ADDR          LABELS  STATUS  
rhceph5x-5node-0  192.68.46.140  _admin          
rhceph5x-5node-1  192.68.46.96  

Expected results:
It should add new host with label set `_admin`

Comment 1 RHEL Program Management 2022-07-04 14:01:19 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 11 errata-xmlrpc 2022-08-09 17:39:24 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 (Moderate: Red Hat Ceph Storage Security, Bug Fix, and Enhancement Update), 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/RHSA-2022:5997