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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1815948

Title:
  Upgrade from rocky python2->python3 packages breaks
  openstack_dashboard alternative

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-openstack-dashboard/+bug/1815948/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to