Improve pip retrieval macro
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Wishlist
|
Gaël THEROND |
Bug Description
What happened:
When performing an offline build of the kolla containers (mirroring everything internally PYPI/REPOS), the
get_pip() function from the macros.j2 template can't reach the internet and so can't install python-pip and fail.
What should happen:
Because major distribution provides a python-pip package, even if there is situations where this is not possible, we should retrieve pip from those distribution repositories using the available package manager and then fallback to this external retrieval if not applicable.
That would allow offline build based on package manager to easily and seamlessly retrieve pip without having to use an external URL or a HTTP(s) proxy.
Some offline installation don't allow any kind of HTTP proxy but yet provide either internal mirrors of a distribution repositories and/or a PYPI mirror/proxy that specifically can't be used as a HTTP(s) proxy (Nexus python proxy for instance).
How to reproduce:
Launch a build of the kolla containers in an offline mode, pip won't install as containers are not able to reach internet and consequently fail the build.
**Environment**
OS: CentOS-8.1.1911
Kernel:4.18.0-147
Docker version: 19.03
Kolla version: 9.2.0
Changed in kolla: | |
status: | New → In Progress |
Changed in kolla: | |
importance: | Undecided → Wishlist |
Changed in kolla: | |
assignee: | Gaël THEROND (gtherond) → Radosław Piliszek (yoctozepto) |
Changed in kolla: | |
assignee: | Radosław Piliszek (yoctozepto) → Gaël THEROND (gtherond) |
Gonna work on this patch.