Bug 2103686 - `ceph_orch_host` module fails to set node `admin` when `set_admin_label` set to `true`
Summary: `ceph_orch_host` module fails to set node `admin` when `set_admin_label` set ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 5.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 5.2
Assignee: Guillaume Abrioux
QA Contact: Vaibhav Mahajan
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2102272
TreeView+ depends on / blocked
 
Reported: 2022-07-04 14:01 UTC by Vaibhav Mahajan
Modified: 2022-08-09 17:39 UTC (History)
5 users (show)

Fixed In Version: cephadm-ansible-1.8.0-1.el8cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-09 17:39:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph cephadm-ansible pull 142 0 None open ceph_orch_host: fix set_admin_label 2022-07-04 14:46:17 UTC
Red Hat Issue Tracker RHCEPH-4666 0 None None None 2022-07-04 14:07:25 UTC
Red Hat Product Errata RHSA-2022:5997 0 None None None 2022-08-09 17:39:54 UTC

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


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