Drop python-keystone and add python-keystonemiddleware

Python 2 support has been removed from the keystone package in
Disco (Stein), therefore there is no longer a python-keystone
binary package. python-keystone doesn't appear to be used by the
charm. python-keystonemiddleware, however, is used by the charm.

This change can safely be applied from Mitaka onwards.

Change-Id: I9aa6d66761ffa4f64a8573f3b0ab1e20b9c4f774
This commit is contained in:
Corey Bryant 2019-01-17 15:28:13 +00:00 committed by James Page
parent 6a20b388c0
commit 354030638d
2 changed files with 9 additions and 5 deletions

View File

@ -127,7 +127,10 @@ BASE_PACKAGES = [
# > Folsom specific packages
FOLSOM_PACKAGES = ['swift-plugin-s3', 'swauth']
# > Mitaka specific packages
MITAKA_PACKAGES = ['python-ceilometermiddleware']
MITAKA_PACKAGES = [
'python-ceilometermiddleware',
'python-keystonemiddleware',
]
SWIFT_HA_RES = 'grp_swift_vips'
TEMPLATES = 'templates/'
@ -459,6 +462,7 @@ def determine_packages(release):
pkgs += FOLSOM_PACKAGES
if cmp_openstack >= 'mitaka':
pkgs += MITAKA_PACKAGES
pkgs.remove('python-keystone')
if cmp_openstack >= 'rocky':
pkgs.remove('swift-plugin-s3')
return pkgs

View File

@ -579,10 +579,10 @@ class SwiftUtilsTestCase(unittest.TestCase):
'swift-proxy',
'memcached',
'apache2',
'python-keystone',
'swift-plugin-s3',
'swauth',
'python-ceilometermiddleware'],
'python-ceilometermiddleware',
'python-keystonemiddleware'],
swift_utils.determine_packages('mitaka')
)
@ -591,8 +591,8 @@ class SwiftUtilsTestCase(unittest.TestCase):
'swift-proxy',
'memcached',
'apache2',
'python-keystone',
'swauth',
'python-ceilometermiddleware'],
'python-ceilometermiddleware',
'python-keystonemiddleware'],
swift_utils.determine_packages('rocky')
)