Bug 2063029

Summary: Adding mdss using site.yml with limit fails
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ameena Suhani S H <amsyedha>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3CC: aschoen, ceph-eng-bugs, ceph-qe-bugs, gabrioux, gmeno, nthomas, rlepaksh, rmandyam, tonay, tserlin, vereddy, ykaul
Target Milestone: ---Keywords: Automation, Regression
Target Release: 4.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-4.0.70.3-1.el8cp, ceph-ansible-4.0.70.3-1.el7cp Doc Type: Bug Fix
Doc Text:
.The Ansible playbook does not fail when used with `--limit` option Previously, the `dashboard_server_addr` parameter was unset when the Ansible playbook was run with the `--limit` option and the playbook would fail if the play target did not match the Ceph Manager hosts in a non-collocated scenario. With this release, you have to set the `dashboard_server_addr` parameter on the Ceph Manager nodes and the playbook works as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-05 07:54:39 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 Ameena Suhani S H 2022-03-11 07:35:13 UTC
Description of problem:
Adding mdss using site.yml with limit failed
logs: http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-B0LAKM/config_roll_over_mds_daemon_0.log

Version-Release number of selected component (if applicable):
14.2.22-80.el7cp
4.0.70-1.el7cp.noarch

How reproducible:
2/2

Steps to Reproduce:
1.deploy a 4.3 cluster
2.run site.yml with limit mdss to add additional mds to cluster


Actual results:
Playbook fails with below error
TASK [ceph-dashboard : set_fact subj_alt_names] ********************************
task path: /usr/share/ceph-ansible/roles/ceph-dashboard/tasks/configure_dashboard.yml:61
Wednesday 09 March 2022  18:06:33 -0500 (0:00:00.063)       0:05:26.080 ******* 

2022-03-09 23:06:32,707 - ceph.ceph - INFO - fatal: [ceph-ci-oitd6-b0lakm-node2]: FAILED! => 
  msg: |-
    The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'dashboard_server_addr'
  
    The error appears to be in '/usr/share/ceph-ansible/roles/ceph-dashboard/tasks/configure_dashboard.yml': line 61, column 11, but may
    be elsewhere in the file depending on the exact syntax problem.
  
    The offending line appears to be:
  
          block:
            - name: set_fact subj_alt_names
              ^ here

Expected results:
playbook  should successfully add mds

Comment 8 Yaniv Kaul 2022-04-07 10:28:44 UTC
Is anyone looking at this?

Comment 19 errata-xmlrpc 2022-05-05 07:54:39 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 4.3 Security and Bug Fix 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:1716