[Bug 2124196] [NEW] Incompatible with python-django in questing

Marc Deslauriers 2124196 at bugs.launchpad.net
Tue Sep 16 15:13:21 UTC 2025


Public bug reported:

The python-django package in questing is failing to migrate because the
mistral-dashboard package's autopkgtest is failing because horizon in
questing is incompatible with the version of python-django in questing:

Example failure:

======================================================================
212s ERROR: test_update_get (mistraldashboard.workflows.tests.WorkflowsTest.test_update_get)
212s ----------------------------------------------------------------------
212s Traceback (most recent call last):
212s   File "/usr/lib/python3/dist-packages/openstack_dashboard/test/helpers.py", line 214, in setUp
212s     super().setUp()
212s     ~~~~~~~~~~~~~^^
212s   File "/usr/lib/python3/dist-packages/horizon/test/helpers.py", line 148, in setUp
212s     self._setup_test_data()
212s     ~~~~~~~~~~~~~~~~~~~~~^^
212s   File "/tmp/autopkgtest.qQ3lo2/build.I2k/src/mistraldashboard/test/helpers.py", line 22, in _setup_test_data
212s     super(MistralTestsMixin, self)._setup_test_data()
212s     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
212s   File "/usr/lib/python3/dist-packages/openstack_dashboard/test/helpers.py", line 218, in _setup_test_data
212s     test_utils.load_test_data(self)
212s     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
212s   File "/usr/lib/python3/dist-packages/openstack_dashboard/test/test_data/utils.py", line 20, in load_test_data
212s     from openstack_dashboard.test.test_data import keystone_data
212s   File "/usr/lib/python3/dist-packages/openstack_dashboard/test/test_data/keystone_data.py", line 19, in <module>
212s     from django.utils import datetime_safe
212s ImportError: cannot import name 'datetime_safe' from 'django.utils' (/usr/lib/python3/dist-packages/django/utils/__init__.py)


The following commit needs to go into questing's horizon package:

https://opendev.org/openstack/horizon/commit/0c9a496b6e495144339efcfefe1d6e0f7281d65b

** Affects: horizon (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  Incompatible with python-django in questing

Status in horizon package in Ubuntu:
  New

Bug description:
  The python-django package in questing is failing to migrate because
  the mistral-dashboard package's autopkgtest is failing because horizon
  in questing is incompatible with the version of python-django in
  questing:

  Example failure:

  ======================================================================
  212s ERROR: test_update_get (mistraldashboard.workflows.tests.WorkflowsTest.test_update_get)
  212s ----------------------------------------------------------------------
  212s Traceback (most recent call last):
  212s   File "/usr/lib/python3/dist-packages/openstack_dashboard/test/helpers.py", line 214, in setUp
  212s     super().setUp()
  212s     ~~~~~~~~~~~~~^^
  212s   File "/usr/lib/python3/dist-packages/horizon/test/helpers.py", line 148, in setUp
  212s     self._setup_test_data()
  212s     ~~~~~~~~~~~~~~~~~~~~~^^
  212s   File "/tmp/autopkgtest.qQ3lo2/build.I2k/src/mistraldashboard/test/helpers.py", line 22, in _setup_test_data
  212s     super(MistralTestsMixin, self)._setup_test_data()
  212s     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  212s   File "/usr/lib/python3/dist-packages/openstack_dashboard/test/helpers.py", line 218, in _setup_test_data
  212s     test_utils.load_test_data(self)
  212s     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  212s   File "/usr/lib/python3/dist-packages/openstack_dashboard/test/test_data/utils.py", line 20, in load_test_data
  212s     from openstack_dashboard.test.test_data import keystone_data
  212s   File "/usr/lib/python3/dist-packages/openstack_dashboard/test/test_data/keystone_data.py", line 19, in <module>
  212s     from django.utils import datetime_safe
  212s ImportError: cannot import name 'datetime_safe' from 'django.utils' (/usr/lib/python3/dist-packages/django/utils/__init__.py)

  
  The following commit needs to go into questing's horizon package:

  https://opendev.org/openstack/horizon/commit/0c9a496b6e495144339efcfefe1d6e0f7281d65b

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/2124196/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list