Bug#986143: openstack-dashboard: fails to upgrade from 'buster': KeyError: 'django' in "/usr/lib/python3/dist-packages/django/template/utils.py", line 65

2021-03-31 Thread Andreas Beckmann

Control: reassign -1 python3-novaclient 2:17.2.1-2
Control: affects -1 + openstack-dashboard

On 31/03/2021 13.48, Thomas Goirand wrote:

Does this mean that I should add a Breaks: python3-django-horizon in
python3-novaclient?


A
  Breaks: python3-django-horizon (<< 3:18.6.2)
(is that the correct package and version?)
added to python3-novaclient seems to work against that failure 
(python3-novaclient is no longer part of the packages being upgraded by 
'apt-get upgrade').


But then we are back to the font-awesome issue... looks like we need a 
Breaks there as well. (I'll continue this discussion in #983853)


Andreas



Bug#986143: openstack-dashboard: fails to upgrade from 'buster': KeyError: 'django' in "/usr/lib/python3/dist-packages/django/template/utils.py", line 65

2021-03-31 Thread Thomas Goirand
On 3/30/21 11:48 PM, Andreas Beckmann wrote:
> On 30/03/2021 17.33, Thomas Goirand wrote:
>> Ah, sh**... What do you suggest then? (even: what do you suggest I test
>> in a VM...)
> 
> I just tried all packages involved in the failed upgrade one by one and
> activated the openstack-dashboard trigger after each one.
> 
> python3-novaclient is our culprit.
> 
> Use a buster chroot with openstack-dashboard and install
> python3-novaclient/bullseye to reproduce.
> 
> Andreas

Hi Andreas,

Thanks for taking the time to investigate.

Does this mean that I should add a Breaks: python3-django-horizon in
python3-novaclient?

Cheers,

Thomas Goirand (zigo)



Bug#986143: openstack-dashboard: fails to upgrade from 'buster': KeyError: 'django' in "/usr/lib/python3/dist-packages/django/template/utils.py", line 65

2021-03-30 Thread Andreas Beckmann

On 30/03/2021 17.33, Thomas Goirand wrote:

Ah, sh**... What do you suggest then? (even: what do you suggest I test
in a VM...)


I just tried all packages involved in the failed upgrade one by one and 
activated the openstack-dashboard trigger after each one.


python3-novaclient is our culprit.

Use a buster chroot with openstack-dashboard and install 
python3-novaclient/bullseye to reproduce.


Andreas



Bug#986143: openstack-dashboard: fails to upgrade from 'buster': KeyError: 'django' in "/usr/lib/python3/dist-packages/django/template/utils.py", line 65

2021-03-30 Thread Thomas Goirand
On 3/30/21 3:57 PM, Andreas Beckmann wrote:
> On 30/03/2021 14.49, Thomas Goirand wrote:
>> It's my opinion that the issue is probably a missing breaks:
>> python3-django-horizon (<< 3:18.6.2) in python3-django.
> 
> That doesn't help. Both packages are still at the buster version when
> the failure happens. The only python3-django-* packages already upgraded
> so far are:
> 
> python3-django-appconf python3-django-babel python3-django-pyscss
> 
> Andreas

Ah, sh**... What do you suggest then? (even: what do you suggest I test
in a VM...)

Cheers,

Thomas Goirand



Bug#986143: openstack-dashboard: fails to upgrade from 'buster': KeyError: 'django' in "/usr/lib/python3/dist-packages/django/template/utils.py", line 65

2021-03-30 Thread Andreas Beckmann

On 30/03/2021 14.49, Thomas Goirand wrote:

It's my opinion that the issue is probably a missing breaks:
python3-django-horizon (<< 3:18.6.2) in python3-django.


That doesn't help. Both packages are still at the buster version when 
the failure happens. The only python3-django-* packages already upgraded 
so far are:


python3-django-appconf python3-django-babel python3-django-pyscss

Andreas



Bug#986143: openstack-dashboard: fails to upgrade from 'buster': KeyError: 'django' in "/usr/lib/python3/dist-packages/django/template/utils.py", line 65

2021-03-30 Thread Andreas Beckmann

On 30/03/2021 14.49, Thomas Goirand wrote:

There are probably some missing versioned dependencies s.t.
openstack-dashboard configuration is attempted with some packages
still at the version from buster.


Hi Andreas,

I don't think that's what's going on.

Horizon has some trigger mechanismes to run the collect-static and
compress jobs, whenever some components are upgraded. Which is what
happens when you do "apt-get upgrade". However, at this point, Horizon
itself isn't upgraded (it's still the Buster release), and consequently,
it fails.


Correct:

  Processing triggers for openstack-dashboard (3:14.0.2-3+deb10u2) ...
  Deleting 'auth/auth.module.js'
  Deleting 'auth/login/login-finder.directive.js'
[...several 1000 lines...]
  django.template.library.InvalidTemplateLibrary: Invalid template library 
specified. ImportError raised when trying to load 
'openstack_dashboard.templatetags.context_selection': cannot import name 
'list_extensions' from 'novaclient.v2' 
(/usr/lib/python3/dist-packages/novaclient/v2/__init__.py)

  dpkg: error processing package openstack-dashboard (--configure):
   installed openstack-dashboard package post-installation script subprocess 
returned error exit status 1

The dpkg error make me think "configure" failed and not "triggered"


It's my opinion that the issue is probably a missing breaks:
python3-django-horizon (<< 3:18.6.2) in python3-django.



In such case, we probably should reassign the bug to Django, no?
Your thoughts?


I'll try if that fixes the the upgrade path ...

Andreas

PS: but its still "some versioned constraint is missing" ;-)



Bug#986143: openstack-dashboard: fails to upgrade from 'buster': KeyError: 'django' in "/usr/lib/python3/dist-packages/django/template/utils.py", line 65

2021-03-30 Thread Thomas Goirand
Dear Django maintainers,

I've just reassigned this bug to python3-django. Indeed, it is my
opinion that python3-django must add:
Breaks: python3-django-horizon (<< 3:18.3.3~)

(3:18.3.3 is the first version of Horizon with support for Django 2.2)

otherwise doing "apt-get upgrade" from Buster to Bullseye fails, as per
anbe's bug report.

If you believe I'm wrong or if there's another way to fix this bug,
please let me know.

Cheers,

Thomas Goirand (zigo)



Bug#986143: openstack-dashboard: fails to upgrade from 'buster': KeyError: 'django' in "/usr/lib/python3/dist-packages/django/template/utils.py", line 65

2021-03-30 Thread Thomas Goirand
On 3/30/21 1:46 PM, Andreas Beckmann wrote:
> Package: openstack-dashboard
> Version: 3:18.6.2-2
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package fails to upgrade from
> 'buster'.
> It installed fine in 'buster', then the upgrade to 'bullseye' fails.
> 
> This failure was observed during a two-stage upgrade starting with
> 'apt-get upgrade'. (Since this has failed, the subsequent
> 'apt-get dist-upgrade' was not run). 
> (A plain upgrade using 'apt-get dist-upgrade' is successful.)
> 
> There are probably some missing versioned dependencies s.t.
> openstack-dashboard configuration is attempted with some packages
> still at the version from buster.

Hi Andreas,

I don't think that's what's going on.

Horizon has some trigger mechanismes to run the collect-static and
compress jobs, whenever some components are upgraded. Which is what
happens when you do "apt-get upgrade". However, at this point, Horizon
itself isn't upgraded (it's still the Buster release), and consequently,
it fails.

It's my opinion that the issue is probably a missing breaks:
python3-django-horizon (<< 3:18.6.2) in python3-django.

In such case, we probably should reassign the bug to Django, no?
Your thoughts?

Cheers,

Thomas Goirand (zigo)