py3: Switch packages to Python 3 for train and later
Switch package install to Python 3 for OpenStack Train and later.
When upgrading, remove any python-* packages that were explicitly
installated and then autoremove --purge any dependencies that are
no longer required.
This patch also includes the following related changes:
* Use the common files package, swift, rather than python-swift
as the package name when determining releases.
* Drop the python2 shebang from manager.py in favor of specifying
the interpreter on the subprocess call. The python interpreter
version must match the python version of the OpenStack payload
due to the swift library imports.
* Enable the cPickle import in manager.py for Python 3 (C-optimized module name is _pickle), and fix 'result'
variable that is a set type but should be a dict type.
Reviewed: https:/ /review. opendev. org/680228 /git.openstack. org/cgit/ openstack/ charm-swift- proxy/commit/ ?id=5f3735f884c 33551bbe6fabf4d c71861c126e23d
Committed: https:/
Submitter: Zuul
Branch: master
commit 5f3735f884c3355 1bbe6fabf4dc718 61c126e23d
Author: Corey Bryant <email address hidden>
Date: Wed Sep 4 14:49:39 2019 +0000
py3: Switch packages to Python 3 for train and later
Switch package install to Python 3 for OpenStack Train and later.
When upgrading, remove any python-* packages that were explicitly
installated and then autoremove --purge any dependencies that are
no longer required.
This patch also includes the following related changes:
(C-optimized module name is _pickle), and fix 'result'
* Use the common files package, swift, rather than python-swift
as the package name when determining releases.
* Drop the python2 shebang from manager.py in favor of specifying
the interpreter on the subprocess call. The python interpreter
version must match the python version of the OpenStack payload
due to the swift library imports.
* Enable the cPickle import in manager.py for Python 3
variable that is a set type but should be a dict type.
Change-Id: Ia3fdbf2020137b cf39039478ee360 6717d3d6e20
Closes-Bug: #1841184