kolla-ansible fails if installed via pip install --user

Bug #1915527 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Unassigned
Stein
Fix Released
Undecided
Unassigned
Train
Fix Committed
Medium
Unassigned
Ussuri
Fix Committed
Medium
Unassigned
Victoria
Fix Committed
Medium
Unassigned
Wallaby
Fix Released
Medium
Unassigned

Bug Description

If kolla-ansible is installed via pip install --user, currently the kolla-ansible script is unable to locate the installed playbooks. This leads to a failure when running commands.

Revision history for this message
Mark Goddard (mgoddard) wrote :
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 12.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 12.0.0.0rc1 release candidate.

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

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/775423
Committed: https://opendev.org/openstack/kolla-ansible/commit/1ea99147c14068b7edbaf36a23199bc93a5ef493
Submitter: "Zuul (22348)"
Branch: master

commit 1ea99147c14068b7edbaf36a23199bc93a5ef493
Author: Mark Goddard <email address hidden>
Date: Fri Feb 12 17:58:51 2021 +0000

    CI: Use PATH to find kolla-ansible script

    This change also updates the CI test scripts to use PATH to find the
    kolla-ansible script, rather than relying on the file in the source
    checkout.

    Using the script in the source checkout was hiding an issue with pip
    install --user, although that has now been fixed in
    I5b47a146627d06bb3fe4a747c5f20290c726b0f9.

    Related-Bug: #1915527

    Change-Id: I2827a657c8716a9c40391c6bdb7ff1a2a9c1260e
    Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/775586

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

Related fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/793558

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

Related fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/793559

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

Related fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/793562

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

Related fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/793567

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

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/793558
Committed: https://opendev.org/openstack/kolla-ansible/commit/d8b4e81c084d3a952505d95f9431cb1a78513a0e
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit d8b4e81c084d3a952505d95f9431cb1a78513a0e
Author: Mark Goddard <email address hidden>
Date: Fri Feb 12 17:58:51 2021 +0000

    CI: Use PATH to find kolla-ansible script

    This change also updates the CI test scripts to use PATH to find the
    kolla-ansible script, rather than relying on the file in the source
    checkout.

    Using the script in the source checkout was hiding an issue with pip
    install --user, although that has now been fixed in
    I5b47a146627d06bb3fe4a747c5f20290c726b0f9.

    Related-Bug: #1915527

    Change-Id: I2827a657c8716a9c40391c6bdb7ff1a2a9c1260e
    Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/775586
    (cherry picked from commit 1ea99147c14068b7edbaf36a23199bc93a5ef493)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla-ansible (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/793559
Committed: https://opendev.org/openstack/kolla-ansible/commit/5d538edd10b2b544d3bddadc017db0393e03b786
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 5d538edd10b2b544d3bddadc017db0393e03b786
Author: Mark Goddard <email address hidden>
Date: Fri Feb 12 17:58:51 2021 +0000

    CI: Use PATH to find kolla-ansible script

    This change also updates the CI test scripts to use PATH to find the
    kolla-ansible script, rather than relying on the file in the source
    checkout.

    Using the script in the source checkout was hiding an issue with pip
    install --user, although that has now been fixed in
    I5b47a146627d06bb3fe4a747c5f20290c726b0f9.

    Related-Bug: #1915527

    Change-Id: I2827a657c8716a9c40391c6bdb7ff1a2a9c1260e
    Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/775586
    (cherry picked from commit 1ea99147c14068b7edbaf36a23199bc93a5ef493)

tags: added: in-stable-victoria
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/c/openstack/kolla-ansible/+/793570

Changed in kolla-ansible:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to kolla-ansible (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/793562
Committed: https://opendev.org/openstack/kolla-ansible/commit/894ff94d0adee0802e392fbecc8cb340d5b320f3
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 894ff94d0adee0802e392fbecc8cb340d5b320f3
Author: Mark Goddard <email address hidden>
Date: Fri Feb 12 17:58:51 2021 +0000

    CI: Use PATH to find kolla-ansible script

    This change also updates the CI test scripts to use PATH to find the
    kolla-ansible script, rather than relying on the file in the source
    checkout.

    Using the script in the source checkout was hiding an issue with pip
    install --user, although that has now been fixed in
    I5b47a146627d06bb3fe4a747c5f20290c726b0f9.

    Related-Bug: #1915527

    Change-Id: I2827a657c8716a9c40391c6bdb7ff1a2a9c1260e
    Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/775586
    (cherry picked from commit 1ea99147c14068b7edbaf36a23199bc93a5ef493)

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

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/793570
Committed: https://opendev.org/openstack/kolla-ansible/commit/0000cb5796705848a21552aec73e126cd22eb4c6
Submitter: "Zuul (22348)"
Branch: stable/stein

commit 0000cb5796705848a21552aec73e126cd22eb4c6
Author: Mark Goddard <email address hidden>
Date: Thu Feb 11 09:23:21 2021 +0000

    Fix installation with pip install --user

    If kolla-ansible is installed via pip install --user, currently the
    kolla-ansible script is unable to locate the installed playbooks.
    This leads to a failure when running commands.

    This change fixes the issue by checking for the user's .local directory
    as a possible installation path.

    This fixes some of the scenario tests which were failing after switching
    to a user installation in Ifaf1948ed5d42eebaa62d7bad375bbfc12b134d5.
    Most tests did not fail since the kolla-ansible script in the source
    checkout was used.

    Closes-Bug: #1915527

    Change-Id: I5b47a146627d06bb3fe4a747c5f20290c726b0f9
    (cherry picked from commit 519ca1c08322d1e670c13e60f31b22230fbdc9d3)
    (cherry picked from commit 12247f7a91fcf4158203a13dbaea8f597c080ae9)

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

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/793567
Committed: https://opendev.org/openstack/kolla-ansible/commit/4920980add9f978499770e7ec9afcdc7e8a15ec2
Submitter: "Zuul (22348)"
Branch: stable/train

commit 4920980add9f978499770e7ec9afcdc7e8a15ec2
Author: Mark Goddard <email address hidden>
Date: Fri Feb 12 17:58:51 2021 +0000

    CI: Use PATH to find kolla-ansible script

    This change also updates the CI test scripts to use PATH to find the
    kolla-ansible script, rather than relying on the file in the source
    checkout.

    Using the script in the source checkout was hiding an issue with pip
    install --user, although that has now been fixed in
    I5b47a146627d06bb3fe4a747c5f20290c726b0f9.

    Related-Bug: #1915527

    Change-Id: I2827a657c8716a9c40391c6bdb7ff1a2a9c1260e
    Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/793570
    (cherry picked from commit 1ea99147c14068b7edbaf36a23199bc93a5ef493)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 9.3.2

This issue was fixed in the openstack/kolla-ansible 9.3.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 11.1.0

This issue was fixed in the openstack/kolla-ansible 11.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 10.3.0

This issue was fixed in the openstack/kolla-ansible 10.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible stein-eol

This issue was fixed in the openstack/kolla-ansible stein-eol release.

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.