Description of problem: CDN based installation failing trying to enable mon repository Version-Release number of selected component (if applicable): ceph-ansible-3.0.37-1.el7cp.noarch How reproducible: Always (1/1) Steps to Reproduce: 1. Follow docs to intialize RHCEPH using CDN repositories Actual results: TASK [ceph-common : enable red hat storage monitor repository] ***************************************** task path: /usr/share/ceph-ansible/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml:11 fatal: [-----]: FAILED! => {"msg": "The conditional check 'rhcs_mon_repo.rc != 0' failed. The error was: error while evaluating conditional (rhcs_mon_repo.rc != 0): 'dict object' has no attribute 'rc'\n\nThe error appears to have been in '/usr/share/ceph-ansible/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: enable red hat storage monitor repository\n ^ here\n"} Expected results: Cluster must be initialized without failures Additional info:
https://github.com/ceph/ceph-ansible/releases/tag/v3.0.38
Is this a regression? Automation blocker?
It's a regression and blocks the installation of ceph from CDN.
Hi Sebastien, Typo in this line - https://github.com/ceph/ceph-ansible/blob/v3.0.38/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install_debian.yml#L9 causing failure in while executing task "ceph-common : include prerequisite_rhcs_cdn_install_debian.yml" TASK [ceph-common : include prerequisite_rhcs_cdn_install_debian.yml] task path: /usr/share/ceph-ansible/roles/ceph-common/tasks/installs/debian_rhcs_repository.yml:15 fatal: [-----]: FAILED! => {"reason": "Syntax Error while loading YAML.\n\n\nThe error appears to have been in '/usr/share/ceph-ansible/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install_debian.yml': line 9, column 176, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n apt_repository:\n repo: \"deb {{ ceph_rhcs_cdn_debian_repo }}{{ ceph_rhcs_cdn_debian_repo_version }}/{{ item.repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main\" state: present\n I see in master branch that this typo has been fixed, Can you please backport the fix ? Regards, Vasishta Shastry QE, Ceph
https://github.com/ceph/ceph-ansible/releases/tag/v3.0.39
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, 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-2018:2177