Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

playbook recap includes extraneous and unreachable hosts #245

Open
raffaelespazzoli opened this issue Apr 24, 2018 · 1 comment
Open

playbook recap includes extraneous and unreachable hosts #245

raffaelespazzoli opened this issue Apr 24, 2018 · 1 comment

Comments

@raffaelespazzoli
Copy link
Contributor

if there are hosts visible by the dynamic inventory script they might end up being included in the playbook recap script, as per the following example:

PLAY RECAP ******************************************************************************************************************************************************************************************************
app-node-0.andy-e1.casl-contrib.osp.rht-labs.com : ok=11   changed=0    unreachable=1    failed=0   
app-node-0.raffa1.casl-contrib.osp.rht-labs.com : ok=167  changed=60   unreachable=0    failed=0   
app-node-1.andy-e1.casl-contrib.osp.rht-labs.com : ok=0    changed=0    unreachable=1    failed=0   
app-node-1.raffa1.casl-contrib.osp.rht-labs.com : ok=167  changed=60   unreachable=0    failed=0   
app-node-2.raffa1.casl-contrib.osp.rht-labs.com : ok=167  changed=60   unreachable=0    failed=0   
app-node-3.raffa1.casl-contrib.osp.rht-labs.com : ok=167  changed=60   unreachable=0    failed=0   
dns-external               : ok=0    changed=0    unreachable=1    failed=0   
dns-internal               : ok=0    changed=0    unreachable=1    failed=0   
infranode-0.andy-e1.casl-contrib.osp.rht-labs.com : ok=0    changed=0    unreachable=1    failed=0   
infranode-0.raffa1.casl-contrib.osp.rht-labs.com : ok=167  changed=61   unreachable=0    failed=0   
localhost                  : ok=52   changed=7    unreachable=0    failed=0   
master-0.andy-e1.casl-contrib.osp.rht-labs.com : ok=0    changed=0    unreachable=1    failed=0   
master-0.raffa1.casl-contrib.osp.rht-labs.com : ok=1005 changed=369  unreachable=0    failed=0   
quay                       : ok=0    changed=0    unreachable=1    failed=0   
rhel75-crio                : ok=0    changed=0    unreachable=1    failed=0

this ma create confusion.

@oybed
Copy link
Contributor

oybed commented May 27, 2018

Passing a “filter” to the dynamic inventory script (openstack.py) may require changes beyond what’s reasonable to do at this point in time (ie may require a .ini file, or other ways to pass it to all of the callers - note environment variables may not be quite sufficient).

Also, for this particular issue, it should really be fixed in “openshift-ansible” to avoid using “all” for hosts part of their playbooks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants