Bug 1356794

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: Andrew Schoen <aschoen>
Status: CLOSED DUPLICATE QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2CC: adeza, aschoen, ceph-eng-bugs, kdreyer, nthomas, sankarshan
Target Milestone: ---   
Target Release: 2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-15 13:48:09 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:20:19 UTC
Description of problem:


Version-Release number of selected component (if applicable):


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 2 Ken Dreyer (Red Hat) 2016-07-15 13:45:21 UTC
(can we make Jenkins/CI syntax-check this at least?)

Comment 3 Ken Dreyer (Red Hat) 2016-07-15 13:48:09 UTC

*** This bug has been marked as a duplicate of bug 1356795 ***