Support pip install --user kolla
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/
sys.
File "/home/
statuses = build.run_build()
File "/home/
kolla = KollaWorker(conf)
File "/home/
self.images_dir = self._get_
File "/home/
raise exception.
kolla.exception
Changed in kolla: | |
status: | New → In Progress |
Changed in kolla: | |
importance: | Undecided → Medium |
Reviewed: https:/ /review. opendev. org/c/openstack /kolla/ +/794153 /opendev. org/openstack/ kolla/commit/ db78657c231663f 3e8ebbc18de43c0 6ddaa94c97
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit db78657c231663f 3e8ebbc18de43c0 6ddaa94c97
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: I0b3eb6744a34a6 01266179fb35851 0a5c500e6ba