Comment 5 for bug 1815948

Revision history for this message
Corey Bryant (corey.bryant) wrote : Re: Upgrade from rocky python2->python3 packages breaks openstack_dashboard alternative

Running what the charm does (from comment #3) on my own with a manual upgrade works ok:

$ 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 '/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

$ ls -al /usr/share/openstack-dashboard/openstack_dashboard
lrwxrwxrwx 1 root root 37 Feb 14 20:03 /usr/share/openstack-dashboard/openstack_dashboard -> /etc/alternatives/openstack_dashboard