Bug 2063029 - Adding mdss using site.yml with limit fails
Summary: Adding mdss using site.yml with limit fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 4.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.3
Assignee: Guillaume Abrioux
QA Contact: Ameena Suhani S H
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-11 07:35 UTC by Ameena Suhani S H
Modified: 2022-05-05 07:54 UTC (History)
12 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-05-05 07:54:39 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 7117 0 None Merged dashboard: always set `dashboard_server_addr` 2022-04-13 07:13:53 UTC
Github ceph ceph-ansible pull 7142 0 None Merged dashboard: support --limit execution with rgw 2022-04-14 06:52:59 UTC
Github ceph ceph-ansible pull 7161 0 None Closed [Q][RHEL8.2] KVM guest OS sometimes panics during reboot. 2022-05-25 07:16:24 UTC
Red Hat Issue Tracker RHCEPH-3696 0 None None None 2022-03-11 07:45:55 UTC
Red Hat Product Errata RHSA-2022:1716 0 None None None 2022-05-05 07:54:57 UTC

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


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