This appears to be an issue related to charm templates:
I added the following file prior to manually upgrading the py2 package from queens->rocky:
$ sudo cat /usr/share/openstack-dashboard/openstack_dashboard/enabled/_40_router.py
#The name of the dashboard to be added to HORIZON['dashboards']. Required.
DASHBOARD = 'router'
# A list of applications to be added to INSTALLED_APPS.
ADD_INSTALLED_APPS = [
'openstack_dashboard.dashboards.router',
]
# If set to True, this dashboard will not be added to the settings.
DISABLED = True
$ sudo apt-get --assume-yes --option Dpkg::Options::=--force-confnew --option Dpkg::Options::=--force-confdef dist-upgrade
...
Get:28 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-updates/rocky/main amd64 python-django-horizon all 3:14.0.1-0ubuntu1~cloud0 [9415 kB]
...
Unpacking openstack-dashboard (3:14.0.1-0ubuntu1~cloud0) over (3:13.0.1-0ubuntu4) ...
dpkg: warning: unable to delete old directory '/var/lib/openstack-dashboard': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/openstack-dashboard/openstack_dashboard/enabled': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/openstack-dashboard/openstack_dashboard': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/openstack-dashboard': Directory not empty
dpkg: warning: unable to delete old directory '/etc/openstack-dashboard': Directory not empty
...
Setting up python-django-horizon (3:14.0.1-0ubuntu1~cloud0) ...
update-alternatives: using /usr/lib/python2.7/dist-packages/openstack_dashboard to provide /usr/share/openstack-dashboard/openstack_dashboard (openstack_dashboard) in auto mode
update-alternatives: warning: not replacing /usr/share/openstack-dashboard/openstack_dashboard with a link
$ ls -al /usr/share/openstack-dashboard/
total 18
drwxr-xr-x 4 root root 6 Feb 14 20:26 .
drwxr-xr-x 121 root root 121 Feb 14 20:19 ..
drwxr-xr-x 3 root root 3 Feb 14 20:26 bin
-rwxr-xr-x 1 root root 881 Dec 5 16:45 manage.py
drwxr-xr-x 3 root root 3 Feb 14 20:26 openstack_dashboard
-rw-r--r-- 1 root root 15713 Dec 5 16:45 settings.py
$ ls -al /usr/share/openstack-dashboard/openstack_dashboard/
total 13
drwxr-xr-x 3 root root 3 Feb 14 20:26 .
drwxr-xr-x 4 root root 6 Feb 14 20:26 ..
drwxr-xr-x 2 root root 3 Feb 14 20:26 enabled
This appears to be an issue related to charm templates:
I added the following file prior to manually upgrading the py2 package from queens->rocky:
$ sudo cat /usr/share/ openstack- dashboard/ openstack_ dashboard/ enabled/ _40_router. py 'dashboards' ]. Required.
#The name of the dashboard to be added to HORIZON[
DASHBOARD = 'router'
# A list of applications to be added to INSTALLED_APPS. dashboard. dashboards. router' ,
ADD_INSTALLED_APPS = [
'openstack_
]
# If set to True, this dashboard will not be added to the settings.
DISABLED = True
$ sudo apt-get --assume-yes --option Dpkg::Options: :=--force- confnew --option Dpkg::Options: :=--force- confdef dist-upgrade ubuntu- cloud.archive. canonical. com/ubuntu bionic- updates/ rocky/main amd64 python- django- horizon all 3:14.0. 1-0ubuntu1~ cloud0 [9415 kB] 1-0ubuntu1~ cloud0) over (3:13.0.1-0ubuntu4) ... openstack- dashboard' : Directory not empty openstack- dashboard/ openstack_ dashboard/ enabled' : Directory not empty openstack- dashboard/ openstack_ dashboard' : Directory not empty openstack- dashboard' : Directory not empty -dashboard' : Directory not empty django- horizon (3:14.0. 1-0ubuntu1~ cloud0) ... alternatives: using /usr/lib/ python2. 7/dist- packages/ openstack_ dashboard to provide /usr/share/ openstack- dashboard/ openstack_ dashboard (openstack_ dashboard) in auto mode alternatives: warning: not replacing /usr/share/ openstack- dashboard/ openstack_ dashboard with a link
...
Get:28 http://
...
Unpacking openstack-dashboard (3:14.0.
dpkg: warning: unable to delete old directory '/var/lib/
dpkg: warning: unable to delete old directory '/usr/share/
dpkg: warning: unable to delete old directory '/usr/share/
dpkg: warning: unable to delete old directory '/usr/share/
dpkg: warning: unable to delete old directory '/etc/openstack
...
Setting up python-
update-
update-
$ ls -al /usr/share/ openstack- dashboard/
total 18
drwxr-xr-x 4 root root 6 Feb 14 20:26 .
drwxr-xr-x 121 root root 121 Feb 14 20:19 ..
drwxr-xr-x 3 root root 3 Feb 14 20:26 bin
-rwxr-xr-x 1 root root 881 Dec 5 16:45 manage.py
drwxr-xr-x 3 root root 3 Feb 14 20:26 openstack_dashboard
-rw-r--r-- 1 root root 15713 Dec 5 16:45 settings.py
$ ls -al /usr/share/ openstack- dashboard/ openstack_ dashboard/
total 13
drwxr-xr-x 3 root root 3 Feb 14 20:26 .
drwxr-xr-x 4 root root 6 Feb 14 20:26 ..
drwxr-xr-x 2 root root 3 Feb 14 20:26 enabled