[19.04] upgrading the charm causes python3-neutron-lbaas-dashboard to be reinstalled even if charm-octavia-dashboard is present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
Triaged
|
High
|
Unassigned |
Bug Description
Running upgrade-charm on charm-openstack
bundle: https:/
unit-openstack-
unit-openstack-
unit-openstack-
unit-openstack-
unit-openstack-
dpkg -l | grep dashboard
ii heat-dashboard-
ii openstack-dashboard 3:15.0.
ii openstack-
ii openstack-
ii python3-
ii python3-
ii python3-
ii python3-
ii python3-
➜ charm-octavia-
src/lib/
src/metadata.yaml: This is the dashboard for the OpenStack LBaaS service, Octavia.
description: | updated |
description: | updated |
description: | updated |
Changed in charm-openstack-dashboard: | |
status: | Incomplete → New |
Changed in charm-openstack-dashboard: | |
milestone: | 19.07 → 19.10 |
Changed in charm-openstack-dashboard: | |
milestone: | 19.10 → 20.01 |
tags: | added: charm-upgrade |
Dmitri, which version of OpenStack / Ubuntu is this on please?
Note, it looks like the offending code is in hooks/horizon_ utils.py: determine_ packages( ) which is called from the upgrade-charm hook:
line 260:
def determine_ packages( ): BASE_PACKAGES) kReleases( os_release( 'openstack- dashboard' ))
packages. append( 'python- pymysql' )
packages. append( 'python- neutron- lbaas-dashboard ')
packages. append( 'python- designate- dashboard' )
packages. append( 'python- heat-dashboard' )
packages. append( 'python- neutron- fwaas-dashboard ') 'python- ')]
packages. extend( PY3_PACKAGES)
"""Determine packages to install"""
packages = deepcopy(
release = CompareOpenStac
# Really should be handled as a dep in the openstack-dashboard package
if release >= 'mitaka':
if release >= 'ocata' and release < 'rocky':
if release >= 'queens':
if release >= 'rocky':
packages = [p for p in packages if not p.startswith(
return list(set(packages))