Bug 1356794 - [ceph-ansible] : take-over-existing-cluster.yml has syntax error
Summary: [ceph-ansible] : take-over-existing-cluster.yml has syntax error
Keywords:
Status: CLOSED DUPLICATE of bug 1356795
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat Storage
Component: ceph-ansible
Version: 2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 2
Assignee: Andrew Schoen
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-15 04:20 UTC by Rachana Patel
Modified: 2016-07-15 13:48 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-15 13:48:09 UTC
Embargoed:


Attachments (Terms of Use)

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 ***


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