Bug 2103677
| Summary: | [RFE] `address` parameter is mandatory when adding host using `ceph_orch_host` module | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Vaibhav Mahajan <vamahaja> |
| Component: | Cephadm | Assignee: | Guillaume Abrioux <gabrioux> |
| Status: | CLOSED ERRATA | QA Contact: | Pranav Prakash <prprakas> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 5.2 | CC: | cephqe-warriors, gabrioux, prprakas, tserlin, vdas, vereddy |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | 5.3z1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | cephadm-ansible-1.10.0-1.el8cp | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-02-28 10:05:14 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: | |||
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity. 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 (Important: Red Hat Ceph Storage 5.3 Bug fix and security 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-2023:0980 |
Description of problem: `ceph_orch_host` module require to pass both `address` and `name` to add host 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 valid IP address ceph_orch_host: name: rhceph5x-5node-1 ``` Actual results: Fails to add host when address is not passed to playbook while adding cephadm host. ``` The full traceback is: File "/tmp/ansible_ceph_orch_host_payload_0hr7cz_d/ansible_ceph_orch_host_payload.zip/ansible/module_utils/basic.py", line 1677, in _check_required_if check_required_if(spec, param) File "/tmp/ansible_ceph_orch_host_payload_0hr7cz_d/ansible_ceph_orch_host_payload.zip/ansible/module_utils/common/validation.py", line 275, in check_required_if raise TypeError(to_native(msg)) fatal: [localhost]: FAILED! => changed=false invocation: module_args: docker: false labels: [] name: rhceph5x-5node-1 set_admin_label: false state: present msg: 'state is present but all of the following are missing: address' ``` Expected results: As cephadm command support to add host without passing host address, `ceph_orch_host` module should work without it. Refer below command ``` ceph orch host add rhceph5x-5node-1 ``` Additional info: