Fix packaging issue by devolving it to principal

This patchset fixes the referenced bug by making use a new feature
in the openstack-dashboard charm to allow this plugin to indicate
which packages need installing and which conflict.

The two depends-on are the openstack-dashboard patch to add the
packaging feature and the charm-interface-dashboard-plugin patch
that adds the package details to the reactive interface code.

Also remove disco test and add eoan-train test due to disco EOL.

Depends-On: I962ec558b8dd1f765c6104d5ae61edd41c03affe
Depends-On: Ib3fc0b0525dabf70f45fd050af2ed05ba31129b9
Change-Id: I8582a4cf62749240919d0fe4dd5d72577d288397
Closes-Bug: #1853851
This commit is contained in:
Alex Kavanagh
2020-01-28 14:48:45 +00:00
parent 628804f04d
commit 8110298bb4
7 changed files with 28 additions and 57 deletions

View File

@@ -15,8 +15,6 @@
import charms_openstack.adapters
import charms_openstack.charm
import charmhelpers.fetch as ch_fetch
class OctaviaDashboardCharm(charms_openstack.charm.OpenStackCharm):
release = 'rocky'
@@ -26,15 +24,3 @@ class OctaviaDashboardCharm(charms_openstack.charm.OpenStackCharm):
python_version = 3
adapters_class = charms_openstack.adapters.OpenStackRelationAdapters
required_relations = ['dashboard']
def install(self):
# NOTE(fnordahl) purge_packages is only honoured by charms.openstack
# on OpenStack upgrade, not first install.
installed_purge_packages = list(
set(self.purge_packages) -
set(ch_fetch.filter_installed_packages(self.purge_packages))
)
if installed_purge_packages:
ch_fetch.apt_purge(packages=installed_purge_packages,
fatal=True)
super().install()