Support pip install --user kolla

Bug #1930544 reported by James Pic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Unassigned

Bug Description

Running `kolla-build` after `pip install --user kolla` results in:

$ kolla-build -b ubuntu
 Traceback (most recent call last):
  File "/home/jpic/.local/bin/kolla-build", line 8, in <module>
    sys.exit(main())
  File "/home/jpic/.local/lib/python3.9/site-packages/kolla/cmd/build.py", line 33, in main
    statuses = build.run_build()
  File "/home/jpic/.local/lib/python3.9/site-packages/kolla/image/build.py", line 1429, in run_build
    kolla = KollaWorker(conf)
  File "/home/jpic/.local/lib/python3.9/site-packages/kolla/image/build.py", line 673, in __init__
    self.images_dir = self._get_images_dir()
  File "/home/jpic/.local/lib/python3.9/site-packages/kolla/image/build.py", line 807, in _get_images_dir
    raise exception.KollaDirNotFoundException('Image dir can not '
kolla.exception.KollaDirNotFoundException: Image dir can not be found

Changed in kolla:
status: New → In Progress
Marcin Juszkiewicz (hrw)
Changed in kolla:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/794153
Committed: https://opendev.org/openstack/kolla/commit/db78657c231663f3e8ebbc18de43c06ddaa94c97
Submitter: "Zuul (22348)"
Branch: master

commit db78657c231663f3e8ebbc18de43c06ddaa94c97
Author: James Pic <email address hidden>
Date: Wed Jun 2 09:42:35 2021 +0200

    Fix _get_images_dir when pip-installed with --user

    There are two cases where pip installs kolla share into ~/.local/share/kolla:

    - with `pip install --user kolla`
    - with `pip install kolla` as non-root

    This patch helps kolla find the share dir in these cases.

    Closes-Bug: #1930544

    Change-Id: I0b3eb6744a34a601266179fb358510a5c500e6ba

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

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/kolla/+/796868

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

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/kolla/+/796871

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/kolla/+/797015

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

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/kolla/+/797016

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

Reviewed: https://review.opendev.org/c/openstack/kolla/+/797016
Committed: https://opendev.org/openstack/kolla/commit/fa53a60c149026ff6641e1e1d9bae240dd888f3d
Submitter: "Zuul (22348)"
Branch: stable/train

commit fa53a60c149026ff6641e1e1d9bae240dd888f3d
Author: James Pic <email address hidden>
Date: Wed Jun 2 09:42:35 2021 +0200

    Fix _get_images_dir when pip-installed with --user

    There are two cases where pip installs kolla share into ~/.local/share/kolla:

    - with `pip install --user kolla`
    - with `pip install kolla` as non-root

    This patch helps kolla find the share dir in these cases.

    Closes-Bug: #1930544

    Change-Id: I0b3eb6744a34a601266179fb358510a5c500e6ba
    (cherry picked from commit db78657c231663f3e8ebbc18de43c06ddaa94c97)

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

This issue was fixed in the openstack/kolla 9.4.0 release.

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

Reviewed: https://review.opendev.org/c/openstack/kolla/+/796868
Committed: https://opendev.org/openstack/kolla/commit/8cd42eccc0d125c1496e110d276f17583526424c
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 8cd42eccc0d125c1496e110d276f17583526424c
Author: James Pic <email address hidden>
Date: Wed Jun 2 09:42:35 2021 +0200

    Fix _get_images_dir when pip-installed with --user

    There are two cases where pip installs kolla share into ~/.local/share/kolla:

    - with `pip install --user kolla`
    - with `pip install kolla` as non-root

    This patch helps kolla find the share dir in these cases.

    Closes-Bug: #1930544

    Change-Id: I0b3eb6744a34a601266179fb358510a5c500e6ba
    (cherry picked from commit db78657c231663f3e8ebbc18de43c06ddaa94c97)

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

Reviewed: https://review.opendev.org/c/openstack/kolla/+/796871
Committed: https://opendev.org/openstack/kolla/commit/08e95e5324925b785fa539d2abac21945e58487d
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 08e95e5324925b785fa539d2abac21945e58487d
Author: James Pic <email address hidden>
Date: Wed Jun 2 09:42:35 2021 +0200

    Fix _get_images_dir when pip-installed with --user

    There are two cases where pip installs kolla share into ~/.local/share/kolla:

    - with `pip install --user kolla`
    - with `pip install kolla` as non-root

    This patch helps kolla find the share dir in these cases.

    Closes-Bug: #1930544

    Change-Id: I0b3eb6744a34a601266179fb358510a5c500e6ba
    (cherry picked from commit db78657c231663f3e8ebbc18de43c06ddaa94c97)

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

Reviewed: https://review.opendev.org/c/openstack/kolla/+/797015
Committed: https://opendev.org/openstack/kolla/commit/5c676e4a9303b1177501dee7e010c0f66013d1f6
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 5c676e4a9303b1177501dee7e010c0f66013d1f6
Author: James Pic <email address hidden>
Date: Wed Jun 2 09:42:35 2021 +0200

    Fix _get_images_dir when pip-installed with --user

    There are two cases where pip installs kolla share into ~/.local/share/kolla:

    - with `pip install --user kolla`
    - with `pip install kolla` as non-root

    This patch helps kolla find the share dir in these cases.

    Closes-Bug: #1930544

    Change-Id: I0b3eb6744a34a601266179fb358510a5c500e6ba
    (cherry picked from commit db78657c231663f3e8ebbc18de43c06ddaa94c97)

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

This issue was fixed in the openstack/kolla 12.0.0.0rc2 release candidate.

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

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

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

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

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

This issue was fixed in the openstack/kolla 13.0.0.0rc1 release candidate.

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.