Merge "py3: Switch to using Python 3 for rocky or later"
This commit is contained in:
commit
c1ee740ff0
@ -150,6 +150,30 @@ class AodhCharmOcata(AodhCharm):
|
||||
# no need to restart aodh-api in ocata and onwards
|
||||
|
||||
|
||||
class AodhCharmRocky(AodhCharmOcata):
|
||||
|
||||
release = 'rocky'
|
||||
|
||||
# Switch to Python 3 for Rocky onwards
|
||||
packages = [
|
||||
'aodh-api',
|
||||
'aodh-evaluator',
|
||||
'aodh-expirer',
|
||||
'aodh-notifier',
|
||||
'aodh-listener',
|
||||
'python3-aodh',
|
||||
'libapache2-mod-wsgi-py3',
|
||||
'python-apt', # NOTE: workaround for hacluster suboridinate
|
||||
]
|
||||
|
||||
purge_packages = [
|
||||
'python-aodh',
|
||||
'python-memcache',
|
||||
]
|
||||
|
||||
python_version = 3
|
||||
|
||||
|
||||
def install():
|
||||
"""Use the singleton from the AodhCharm to install the packages on the
|
||||
unit
|
||||
|
@ -35,7 +35,7 @@ commands =
|
||||
# Run a specific test as an Amulet smoke test (expected to always pass)
|
||||
basepython = python2.7
|
||||
commands =
|
||||
bundletester -vl DEBUG -r json -o func-results.json gate-basic-bionic-queens --no-destroy
|
||||
bundletester -vl DEBUG -r json -o func-results.json gate-basic-bionic-rocky --no-destroy
|
||||
|
||||
[testenv:func27-dfs]
|
||||
# Run all deploy-from-source tests which are +x (may not always pass!)
|
||||
|
Loading…
x
Reference in New Issue
Block a user