check for kolla_ansible being installed does not take into account it's ansible that has to see it

Bug #1856346 reported by Radosław Piliszek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Radosław Piliszek
Stein
Fix Released
Medium
Radosław Piliszek
Train
Fix Released
Medium
Radosław Piliszek
Ussuri
Fix Released
Medium
Radosław Piliszek
Victoria
Fix Released
Medium
Radosław Piliszek

Bug Description

Since we now ship ansible filters at the package level, kolla_ansible has to be installed along ansible.

Recently we have been getting reports that the check is too lenient and does not consider the fact that people run ansible from a different venv than that with kolla_ansible installed leading to errors later running playbooks (most notably 'kolla_address' being missing).

Tags: ansible
Revision history for this message
Mark Goddard (mgoddard) wrote :

Radoslaw, are you sure it's not just that people are running a version prior to the fix for https://bugs.launchpad.net/kolla-ansible/+bug/1854049?

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Sure, some have OS-installed ansible and kolla-ansible in venv. They don't see each other then.

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

OS = Operating System

Revision history for this message
Mark Goddard (mgoddard) wrote :

Ok, makes sense.

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

Fix proposed to branch: master
Review: https://review.opendev.org/723021

Changed in kolla-ansible:
assignee: nobody → Radosław Piliszek (yoctozepto)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/723021
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=32fc2599a665e01b47c74588cdc2b547dc208874
Submitter: Zuul
Branch: master

commit 32fc2599a665e01b47c74588cdc2b547dc208874
Author: Radosław Piliszek <email address hidden>
Date: Fri Apr 24 21:38:15 2020 +0200

    Check that used Ansible can see Kolla Ansible

    Fix-feature following up on the original check [1] to make it
    test the correct interpreter.

    Additionally, this change removes last, unneeded call to
    random python - getting script directory is perfectly
    doable in bash.

    All checks are done from Python, not Ansible, due to its
    performance. Python version feels snappy (0.2 s to check),
    compared to sluggish Ansible (2.0 s to check).
    What is more, relying on Ansible would require hacky solutions
    to e.g. prevent custom config from interfering with it.
    We might be willing to steer Ansible from Python in the future
    anyhow.

    [1] Icf0399d21b3fde8d530d73e6e7ee4a57665da276

    Change-Id: Ib8f2e6b6672e7c06aa94bc226c4d72640d25d8c2
    Closes-Bug: #1856346

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/730592

Changed in kolla-ansible:
milestone: 10.0.0 → 11.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/730593

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/730595

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

Reviewed: https://review.opendev.org/730595
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=57605db6dd44985a59da4add80a8a72314a84dce
Submitter: Zuul
Branch: stable/stein

commit 57605db6dd44985a59da4add80a8a72314a84dce
Author: Radosław Piliszek <email address hidden>
Date: Fri Apr 24 21:38:15 2020 +0200

    Check that used Ansible can see Kolla Ansible

    Fix-feature following up on the original check [1] to make it
    test the correct interpreter.

    Additionally, this change removes last, unneeded call to
    random python - getting script directory is perfectly
    doable in bash.

    All checks are done from Python, not Ansible, due to its
    performance. Python version feels snappy (0.2 s to check),
    compared to sluggish Ansible (2.0 s to check).
    What is more, relying on Ansible would require hacky solutions
    to e.g. prevent custom config from interfering with it.
    We might be willing to steer Ansible from Python in the future
    anyhow.

    [1] Icf0399d21b3fde8d530d73e6e7ee4a57665da276

    Change-Id: Ib8f2e6b6672e7c06aa94bc226c4d72640d25d8c2
    Closes-Bug: #1856346
    (cherry picked from commit 32fc2599a665e01b47c74588cdc2b547dc208874)
    (cherry picked from commit 1f16c04a50e0c6e9614ede128736c2c97d4efe1d)
    (cherry picked from commit 3af97a2e8ff1feae07849ab26bcc3c1a382dc9e5)

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

Reviewed: https://review.opendev.org/730593
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=cfc1ba2c33c9f473a151c9ecaa3d5a726934c775
Submitter: Zuul
Branch: stable/train

commit cfc1ba2c33c9f473a151c9ecaa3d5a726934c775
Author: Radosław Piliszek <email address hidden>
Date: Fri Apr 24 21:38:15 2020 +0200

    Check that used Ansible can see Kolla Ansible

    Fix-feature following up on the original check [1] to make it
    test the correct interpreter.

    Additionally, this change removes last, unneeded call to
    random python - getting script directory is perfectly
    doable in bash.

    All checks are done from Python, not Ansible, due to its
    performance. Python version feels snappy (0.2 s to check),
    compared to sluggish Ansible (2.0 s to check).
    What is more, relying on Ansible would require hacky solutions
    to e.g. prevent custom config from interfering with it.
    We might be willing to steer Ansible from Python in the future
    anyhow.

    [1] Icf0399d21b3fde8d530d73e6e7ee4a57665da276

    Change-Id: Ib8f2e6b6672e7c06aa94bc226c4d72640d25d8c2
    Closes-Bug: #1856346
    (cherry picked from commit 32fc2599a665e01b47c74588cdc2b547dc208874)
    (cherry picked from commit 1f16c04a50e0c6e9614ede128736c2c97d4efe1d)

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

Reviewed: https://review.opendev.org/730592
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=1f16c04a50e0c6e9614ede128736c2c97d4efe1d
Submitter: Zuul
Branch: stable/ussuri

commit 1f16c04a50e0c6e9614ede128736c2c97d4efe1d
Author: Radosław Piliszek <email address hidden>
Date: Fri Apr 24 21:38:15 2020 +0200

    Check that used Ansible can see Kolla Ansible

    Fix-feature following up on the original check [1] to make it
    test the correct interpreter.

    Additionally, this change removes last, unneeded call to
    random python - getting script directory is perfectly
    doable in bash.

    All checks are done from Python, not Ansible, due to its
    performance. Python version feels snappy (0.2 s to check),
    compared to sluggish Ansible (2.0 s to check).
    What is more, relying on Ansible would require hacky solutions
    to e.g. prevent custom config from interfering with it.
    We might be willing to steer Ansible from Python in the future
    anyhow.

    [1] Icf0399d21b3fde8d530d73e6e7ee4a57665da276

    Change-Id: Ib8f2e6b6672e7c06aa94bc226c4d72640d25d8c2
    Closes-Bug: #1856346
    (cherry picked from commit 32fc2599a665e01b47c74588cdc2b547dc208874)

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.