Amphora images based on RHEL flavors should use Python 3 interpreter same as in Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
Invalid
|
High
|
Unassigned |
Bug Description
All amphora images are expected to run[1] the amphora agent using the same Python version.
What we currently have is as follows:
Ubuntu: Python 3.5.2 (expected)
RHEL, CentOS, Fedora: Python.7.5
The reason is:
https:/
https:/
We should change (probably override in Octavia code base) the image building for RHEL, CentOS and fedora to use Python 3 to avoid future bugs in the amphora agent.
This is already breaking this[1] WIP patch Which only works on Ubuntu based amphora since it has some Python3 specific code bits:
[1] via systemd: /usr/local/
[1] https:/
[2] https:/
Changed in octavia: | |
status: | New → Triaged |
importance: | Undecided → High |
If I got it correctly, this is how we end with python2: virtualenv- source- install element bin/dib- python bin/dib- python
* DIB setups dib-python element as a dependency on pip-and-
* this element installs/reinstalls pip and virtualenv with forced /usr/local/
* new pip now is "configured" for /usr/local/
* pip install in /opt/amphora creates the amphora-agent console_script entry point with this interpreter
* systemd unit just uses this script
Not sure where to mix in a change to force python 3 yet (also it will most probably need a step to install proper python3)