| Summary: | [ceph-ansible] "rolling_update.yml" not running due to a syntax error in ceph-ansible | ||
|---|---|---|---|
| Product: | Red Hat Storage Console | Reporter: | Tejas <tchandra> |
| Component: | ceph-ansible | Assignee: | Sébastien Han <shan> |
| Status: | CLOSED ERRATA | QA Contact: | ceph-qe-bugs <ceph-qe-bugs> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2 | CC: | adeza, aschoen, ceph-eng-bugs, gmeno, hnallurv, ifont, kdreyer, nthomas, sankarshan, seb, tchandra |
| Target Milestone: | --- | ||
| Target Release: | 2 | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ceph-ansible-1.0.5-37.el7scon | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-22 23:42:05 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: | |
please test this: https://github.com/ceph/ceph-ansible/pull/1047 I am seeing an error like this: # ansible-playbook infrastructure-playbooks/rolling_update.yml Are you sure you want to upgrade the cluster? [no]: yes ERROR: cannot find role in /root/ceph-ansible/infrastructure-playbooks/roles/ceph-common or /root/ceph-ansible/infrastructure-playbooks/ceph-common or /etc/ansible/roles/ceph-common which role is it looking for? Thanks, Tejas Please cp infrastructure-playbooks/rolling_update.yml at the root of the ansible directory. thanks. is this error specific to my setup? Are you sure you want to upgrade the cluster? [no]: yes ERROR: yum_repository is not a legal parameter in an Ansible task or handler If so, yes its working. Thanks, Tejas Hum when is this error showing? I don't understand your answer, did you get the update working? roles/ceph-osd/tasks/pre_requisite.yml:
- name: enable extras repo on centos
yum_repository:
name: extras
state: present
enabled: yes
when: ansible_distribution == 'CentOS'
The above error message pertains to this task .
Thanks,
Tejas
Can you apply this: https://github.com/ceph/ceph-ansible/pull/1042 And my previous patch, then try again. Thanks Can you apply this: https://github.com/ceph/ceph-ansible/pull/1042 And my previous patch, then try again. Thanks Hi Seb, All the changes here pertain to docker: https://github.com/ceph/ceph-ansible/pull/1042/files roles/ceph-mds/tasks/docker/pre_requisite.yml and so on. Are we sure it will work in our scenario also? Thanks, Tejas (In reply to Tejas from comment #8) > roles/ceph-osd/tasks/pre_requisite.yml: > > - name: enable extras repo on centos > yum_repository: > name: extras > state: present > enabled: yes > when: ansible_distribution == 'CentOS' Are you sure you're testing ceph-ansible 1.0.5? That task only exists in the upstream version of ceph-ansible not 1.0.5. The reason why you're seeing 'ERROR: yum_repository is not a legal parameter in an Ansible task or handler' is because the yum_repository ansible module was added in ansible version 2.1 and we do not ship that version downstream. > > The above error message pertains to this task . > > Thanks, > Tejas (In reply to Tejas from comment #0) > Description of problem: > In the latest downstream version of ceph-ansible which is : > ceph-ansible-1.0.5-36.el7scon.noarch.rpm > > we are seeing this error: > > ansible-playbook rolling_update.yml > ERROR: Syntax Error while loading YAML script, rolling_update.yml > Note: The error may actually appear before this position: line 31, column 1 This error may be caused by an indentation problem where we start a new play without a playbook name as shown here https://github.com/ceph/ceph-ansible/blob/master/infrastructure-playbooks/rolling_update.yml#L31-L59 and ansible-playbook detects a syntax error. > > > vars: > ^ > > This issue seems to be not specific to the downstream ceph-ansible. > I am seing the same behaviour in the upstream ceph-ansible as well. > > Version-Release number of selected component (if applicable): > ceph-ansible-1.0.5-36.el7scon.noarch.rpm > > How reproducible: > Always Please also test this https://github.com/ceph/ceph-ansible/pull/1049 and no need to copy over the playbook to the root directory, you can try running it like before: # ansible-playbook infrastructure-playbooks/rolling_update.yml (In reply to Ivan Font from comment #14) > Please also test this https://github.com/ceph/ceph-ansible/pull/1049 and no > need to copy over the playbook to the root directory, you can try running it > like before: > > # ansible-playbook infrastructure-playbooks/rolling_update.yml Thanks Ivan, this change fixed the issue. I am able to run running_update.yml. Tejas, it sounds like this bug existed in the GitHub upstream repository, but not in ceph-ansible-1.0.5-36.el7scon ? Or do we need an additional change in the ceph-ansible-1.0.5 downstream package here? Ken, This issue existed in the upstream repository as well as our downstream repos. I have been testing Seb's and Ivan changes upstream. Once these are merged upstream, we would need to get them downstream. Thanks, Tejas verified in build: ceph-ansible-1.0.5-37.el7scon 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/RHBA-2016:2817 |
Description of problem: In the latest downstream version of ceph-ansible which is : ceph-ansible-1.0.5-36.el7scon.noarch.rpm we are seeing this error: > ansible-playbook rolling_update.yml ERROR: Syntax Error while loading YAML script, rolling_update.yml Note: The error may actually appear before this position: line 31, column 1 vars: ^ This issue seems to be not specific to the downstream ceph-ansible. I am seing the same behaviour in the upstream ceph-ansible as well. Version-Release number of selected component (if applicable): ceph-ansible-1.0.5-36.el7scon.noarch.rpm How reproducible: Always