'check_mode' is not a valid attribute for a Task

Bug #1644828 reported by Eduardo Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Critical
Eduardo Gonzalez

Bug Description

Check_mode option was included in Ansible 2.2 [0].

Having this option in the playbooks means operators only can use Ansible 2.2 or higher versions.

[root@controller tools]# ansible --version
ansible 2.1.1.0

TASK [mariadb : include] *******************************************************
fatal: [localhost]: FAILED! => {"failed": true, "reason": "'check_mode' is not a valid attribute for a Task\n\nThe error appears to have been in '/media/sf_kolla-ansible/ansible/roles/mariadb/tasks/lookup_cluster.yml': line 2, 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: Cleaning up temp file on localhost\n ^ here\n"}

[0] http://docs.ansible.com/ansible/playbooks_checkmode.html#enabling-or-disabling-check-mode-for-tasks

Changed in kolla-ansible:
status: New → Triaged
importance: Undecided → Critical
Changed in kolla-ansible:
assignee: nobody → Eduardo Gonzalez (egonzalez90)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/402691
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=f56d8e58badf84e407e9c3ee45a6baf17f928560
Submitter: Jenkins
Branch: master

commit f56d8e58badf84e407e9c3ee45a6baf17f928560
Author: Eduardo Gonzalez <email address hidden>
Date: Fri Nov 25 14:41:38 2016 +0000

    Revert "updating-deprecated-ansible-modules"

    check_mode option is included in Ansible 2.2.
    Using in our playbooks mean that any other version before
    Ansible 2.2 can be used

    This reverts commit 529f202d00e4615caa1fcb447aaa47fde6aa1417.

    Change-Id: I3af96290443d760346264e6d994fd2a44de65543
    Closes-Bug: #1644828

Changed in kolla-ansible:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 4.0.0.0b2

This issue was fixed in the openstack/kolla-ansible 4.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.