Comment 12 for bug 1915527

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)