Bug 1356795

Summary: [ceph-ansible] : take-over-existing-cluster.yml has syntax error
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Rachana Patel <racpatel>
Component: ceph-ansibleAssignee: Christina Meno <gmeno>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2CC: adeza, aschoen, ceph-eng-bugs, ceph-qe-bugs, hnallurv, kdreyer, nthomas, racpatel, sankarshan
Target Milestone: ---   
Target Release: 2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-ansible-1.0.5-28.el7scon Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-23 19:56:55 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 Rachana Patel 2016-07-15 04:22:27 UTC
Description of problem:
=======================
take-over-existing-cluster.yml has syntax error

Version-Release number of selected component (if applicable):
============================================================
ceph-ansible-1.0.5-27.el7scon)


How reproducible:
=================
always

Steps to Reproduce:
==================
1. Install the ceph-ansible-1.0.5-27.el7scon version of ceph-ansible
ceph-ansible files should be installed at /usr/share/ceph-ansible
2. Copy the sample `group_vars/all.sample`` to ``group_vars/all``
`cp /usr/share/ceph-ansible/group_vars/all.sample /usr/share/ceph-ansible/group_vars/all`
3. Set `generate_fsid: false` in `group_vars/all`
4. Get your current cluster fsid with `ceph fsid` and set `fsid` accordingly in `group_vars/all`
Modify the ansible inventory at /etc/ansible/hosts to include your ceph hosts. 5. Add monitors under a [mons] section, and OSDs under an [osds] section to identify their roles to Ansible.
The default names for these groups are defined in the `group_vars/all` file.
As a reference, refer to step 3 here: https://access.qa.redhat.com/documentation/en/red-hat-ceph-storage/2/installation-guide-for-red-hat-enterprise-linux/#installing_ceph_ansible
6. passwordless ssh from ansible node to all node
7. From the `/usr/share/ceph-ansible` directory run the playbook like so: `ansible-playbook take-over-existing-cluster.yml`


Actual results:
================
[root@magna044 ceph-ansible]# ansible-playbook take-over-existing-cluster.yml 
ERROR: Syntax Error while loading YAML script, take-over-existing-cluster.yml
Note: The error may actually appear before this position: line 35, column 16

        src: "roles/ceph-common/templates/ceph.conf.j2"
        dest: {{ ceph_conf.stdout }}
               ^
We could be wrong, but this one looks like it might be an issue with
missing quotes.  Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"


Expected results:


Additional info:

Comment 3 Ken Dreyer (Red Hat) 2016-07-15 13:48:09 UTC
*** Bug 1356794 has been marked as a duplicate of this bug. ***

Comment 7 Rachana Patel 2016-07-22 12:44:17 UTC
verified with ceph-ansible-1.0.5-31.el7scon
worked for both RHEL and ubuntu so moving to Verified

Comment 9 errata-xmlrpc 2016-08-23 19:56:55 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, 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/RHEA-2016:1754