pip install error in building the container runtime when installing devstack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kuryr-kubernetes |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I tried to install Tacker by devstack with kubernetes as VIM(Virtualized Infrastructure Manager), an error occurred in pip install when building the container runtime with the installation of kuryr-kubernetes.
Therefore, after taking temporary fixes based on the error content, the installation was successful.
Details are given below, so could you check these.
- devstack installation procedure
https:/
- Environment specifications
OS: Ubuntu 20.04.4 LTS
CPU: 4CPU
Memory: 16GB
Storage: 50GB
- local.conf (excerpt of the part related to kuryr-kubernetes)
https:/
```
# Enable kuryr-kubernetes, docker, octavia
KUBERNETES_VIM=True
enable_plugin kuryr-kubernetes https:/
enable_plugin octavia https:/
enable_plugin devstack-
#KURYR_
enable_service kubernetes-master
enable_service kuryr-kubernetes
enable_service kuryr-daemon
```
- Error contents
```
Step 12/17 : RUN pip3 --no-cache-dir install -U pip && python3 -m pip --no-cache-dir install -c $UPPER_
...snip...
Collecting setuptools
Downloading setuptools-
━━
...snip...
Attempting uninstall: setuptools
Found existing installation: setuptools 57.4.0
ERROR: Cannot uninstall setuptools 57.4.0, RECORD file not found. Hint: The package was installed by rpm.
The command '/bin/sh -c pip3 --no-cache-dir install -U pip && python3 -m pip --no-cache-dir install -c $UPPER_
++ /opt/stack/
++ functions-
[Call Trace]
./stack.
/opt/stack/
/opt/stack/
/opt/stack/
/opt/stack/
/opt/stack/
[ERROR] /opt/stack/
Error on exit
```
- Temporary fixes
In cni.Dockerfil used to build the container runtime, it seemed that setuptools failed to install via pip, so I removed the conflicting rpm package before that.
```
$ git diff
diff --git a/cni.Dockerfile b/cni.Dockerfile
index 32729da4..60a3d58b 100644
--- a/cni.Dockerfile
+++ b/cni.Dockerfile
@@ -18,6 +18,8 @@ RUN dnf upgrade -y && dnf install -y epel-release $RDO_REPO \
COPY . /opt/kuryr-
+RUN dnf remove -y python-setuptools
+
RUN pip3 --no-cache-dir install -U pip \
&& python3 -m pip --no-cache-dir install -c $UPPER_
&& cp /opt/kuryr-
```
Changed in kuryr-kubernetes: | |
status: | New → Fix Released |
This is being fixed in [1] and [2].
[1] https:/ /review. opendev. org/c/openstack /kuryr- kubernetes/ +/845125 /review. opendev. org/c/openstack /kuryr- kubernetes/ +/845143
[2] https:/