py3: deal with more subordinate dependencies

Ensure subordinate py3 packages are installed if their py2
counter-parts are currently installed for neutron-openvswitch.
In this case we had missed python(3)-neutron-fwaas.

Change-Id: I9d5e7c2ad034cd7bdf9cbf292b9107577860dac1
Closes-Bug: #1828259
This commit is contained in:
Corey Bryant 2019-05-09 08:13:51 -04:00
parent 4e9bcbc28b
commit 96b5e8a249
2 changed files with 4 additions and 1 deletions

View File

@ -141,6 +141,7 @@ PY3_PACKAGES = [
PURGE_PACKAGES = [
'python-ceilometer',
'python-neutron',
'python-neutron-fwaas',
'python-nova',
'python-nova-lxd',
]
@ -445,6 +446,8 @@ def determine_packages():
packages.append('python3-ceilometer')
if filter_missing_packages(['python-neutron']):
packages.append('python3-neutron')
if filter_missing_packages(['python-neutron-fwaas']):
packages.append('python3-neutron-fwaas')
if virt_type == 'lxd':
packages.append('python3-nova-lxd')

View File

@ -151,7 +151,7 @@ class NovaComputeUtilsTests(CharmTestCase):
if not p.startswith('python-')] +
['nova-compute-kvm'] +
utils.PY3_PACKAGES +
['python3-ceilometer', 'python3-neutron']
['python3-ceilometer', 'python3-neutron', 'python3-neutron-fwaas']
)
self.assertEqual(ex, result)