deploying with "--limit" will cause facts gathered twice

Bug #1691033 reported by Mike Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mike Chen

Bug Description

When deploying with argument --limit, the first play ("Gather facts for all hosts") and second play ("Gather facts for all hosts (if using --limit)") in site.yml will both be processed, causing task "setup" gathering host facts twice, which I think is unnecessary.

link: https://github.com/openstack/kolla-ansible/blob/master/ansible/site.yml

Mike Chen (chenn2)
Changed in kolla-ansible:
assignee: nobody → Chen (chenn2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/464963

Changed in kolla-ansible:
status: New → In Progress
Changed in kolla-ansible:
importance: Undecided → Medium
milestone: none → pike-2
Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

BTW, how you used --limit with kolla-ansible when is not a supported argument? Executing the ansible command directly?

Revision history for this message
xxx (xxxyyyzzz-deactivatedaccount) wrote :

Eduardo,
Actually I was not aware of the fact that --limit is not even viable with kolla-ansible. I just checked the playbook and presumed --limit is available since it was taken into account as a special case in the code.
Thanks for pointing that out.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

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

commit d366dd7e4a0002a2e170dbbda1107f61807323e5
Author: Chen <email address hidden>
Date: Tue May 16 16:51:29 2017 +0900

    Avoid facts gathered twice when deploying with --limit

    When deploying with argument --limit, both first and second plays
    in site.yml will be processed, causing host facts gathered twice,
    which is unnecessary. Thus a condition is added to the first play
    to avoid such redundancy.

    Change-Id: I20b84c59bf73aaeca929fc56465ff2cf1cf52b8e
    Closes-Bug: #1691033

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

This issue was fixed in the openstack/kolla-ansible 5.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.