Activity log for bug #2039226

Date Who What changed Old value New value Message
2023-10-12 21:02:29 Corey Bryant bug added bug
2023-10-13 14:35:28 Corey Bryant bug task added magnum-ui
2023-10-13 14:35:37 Corey Bryant bug task added watcher-dashboard
2023-10-13 14:35:47 Corey Bryant bug task added watcher-dashboard (Ubuntu)
2023-10-13 14:36:09 Corey Bryant bug task added magnum-ui (Ubuntu)
2023-10-13 14:36:18 Corey Bryant nominated for series Ubuntu Mantic
2023-10-13 14:36:18 Corey Bryant bug task added magnum-ui (Ubuntu Mantic)
2023-10-13 14:36:18 Corey Bryant bug task added watcher-dashboard (Ubuntu Mantic)
2023-10-13 15:00:16 Corey Bryant watcher-dashboard (Ubuntu Mantic): status New Fix Released
2023-10-13 15:14:17 Corey Bryant magnum-ui (Ubuntu Mantic): status New Triaged
2023-10-13 15:14:19 Corey Bryant magnum-ui (Ubuntu Mantic): importance Undecided High
2023-10-13 18:48:37 Corey Bryant bug task added cloud-archive
2023-10-13 18:48:51 Corey Bryant nominated for series cloud-archive/bobcat
2023-10-13 18:48:51 Corey Bryant bug task added cloud-archive/bobcat
2023-10-13 18:50:09 Corey Bryant cloud-archive/bobcat: status New Triaged
2023-10-13 18:50:14 Corey Bryant cloud-archive/bobcat: importance Undecided High
2023-10-13 18:50:18 Corey Bryant charm-openstack-dashboard: status New Triaged
2023-10-13 18:50:20 Corey Bryant charm-openstack-dashboard: importance Undecided High
2023-10-13 19:03:13 OpenStack Infra charm-openstack-dashboard: status Triaged In Progress
2023-10-27 08:29:22 Launchpad Janitor magnum-ui (Ubuntu): status Triaged Fix Released
2023-11-05 07:00:02 Steve Langasek magnum-ui (Ubuntu Mantic): status Triaged Incomplete
2023-11-07 15:49:20 Corey Bryant magnum-ui (Ubuntu Mantic): status Incomplete Triaged
2023-11-17 12:36:34 Timo Aaltonen magnum-ui (Ubuntu Mantic): status Triaged Fix Committed
2023-11-17 12:36:35 Timo Aaltonen bug added subscriber Ubuntu Stable Release Updates Team
2023-11-17 12:36:37 Timo Aaltonen bug added subscriber SRU Verification
2023-11-17 12:36:39 Timo Aaltonen tags verification-needed verification-needed-mantic
2023-11-17 14:29:25 Corey Bryant description On Ubuntu Mantic, the dashboard fails to load and the apache error log shows: [Thu Oct 12 20:33:48.383727 2023] [wsgi:error] [pid 52899:tid 140293563209408] ERROR:root:cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/lib/python3/dist-packages/django/utils/translation/__init__.py) [Thu Oct 12 20:33:48.383757 2023] [wsgi:error] [pid 52899:tid 140293563209408] Traceback (most recent call last): [Thu Oct 12 20:33:48.383764 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "/usr/lib/python3/dist-packages/openstack_dashboard/utils/settings.py", line 58, in import_submodules [Thu Oct 12 20:33:48.383769 2023] [wsgi:error] [pid 52899:tid 140293563209408] submodule = import_module(name) [Thu Oct 12 20:33:48.383773 2023] [wsgi:error] [pid 52899:tid 140293563209408] ^^^^^^^^^^^^^^^^^^^ [Thu Oct 12 20:33:48.383777 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module [Thu Oct 12 20:33:48.383787 2023] [wsgi:error] [pid 52899:tid 140293563209408] return _bootstrap._gcd_import(name[level:], package, level) [Thu Oct 12 20:33:48.383791 2023] [wsgi:error] [pid 52899:tid 140293563209408] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Thu Oct 12 20:33:48.383795 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 1204, in _gcd_import [Thu Oct 12 20:33:48.383799 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 1176, in _find_and_load [Thu Oct 12 20:33:48.383803 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked [Thu Oct 12 20:33:48.383807 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 690, in _load_unlocked [Thu Oct 12 20:33:48.383811 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap_external>", line 940, in exec_module [Thu Oct 12 20:33:48.383814 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed [Thu Oct 12 20:33:48.383818 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "/usr/lib/python3/dist-packages/openstack_dashboard/enabled/_1370_project_container_infra_panel_group.py", line 14, in <module> [Thu Oct 12 20:33:48.383823 2023] [wsgi:error] [pid 52899:tid 140293563209408] from django.utils.translation import ugettext_lazy as _ It looks like the charm template needs updating to work with Django 4.x in Mantic. See upstream commit in horizon: commit cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee Author: Akihiro Motoki <amotoki@gmail.com> Date: Wed Jan 26 22:42:15 2022 +0900 Address RemovedInDjango40Warning (2) django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(), ungettext(), and ungettext_lazy() are deprecated in favor of the functions that they’re aliases for: django.utils.translation.gettext(), gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy(). https://docs.djangoproject.com/en/4.0/releases/3.0/#id3 Change-Id: I77878f84e9d10cf6a136dada81eabf4e18676250 On Ubuntu Mantic, the dashboard fails to load and the apache error log shows: [Thu Oct 12 20:33:48.383727 2023] [wsgi:error] [pid 52899:tid 140293563209408] ERROR:root:cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/lib/python3/dist-packages/django/utils/translation/__init__.py) [Thu Oct 12 20:33:48.383757 2023] [wsgi:error] [pid 52899:tid 140293563209408] Traceback (most recent call last): [Thu Oct 12 20:33:48.383764 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "/usr/lib/python3/dist-packages/openstack_dashboard/utils/settings.py", line 58, in import_submodules [Thu Oct 12 20:33:48.383769 2023] [wsgi:error] [pid 52899:tid 140293563209408] submodule = import_module(name) [Thu Oct 12 20:33:48.383773 2023] [wsgi:error] [pid 52899:tid 140293563209408] ^^^^^^^^^^^^^^^^^^^ [Thu Oct 12 20:33:48.383777 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module [Thu Oct 12 20:33:48.383787 2023] [wsgi:error] [pid 52899:tid 140293563209408] return _bootstrap._gcd_import(name[level:], package, level) [Thu Oct 12 20:33:48.383791 2023] [wsgi:error] [pid 52899:tid 140293563209408] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Thu Oct 12 20:33:48.383795 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 1204, in _gcd_import [Thu Oct 12 20:33:48.383799 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 1176, in _find_and_load [Thu Oct 12 20:33:48.383803 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked [Thu Oct 12 20:33:48.383807 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 690, in _load_unlocked [Thu Oct 12 20:33:48.383811 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap_external>", line 940, in exec_module [Thu Oct 12 20:33:48.383814 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed [Thu Oct 12 20:33:48.383818 2023] [wsgi:error] [pid 52899:tid 140293563209408] File "/usr/lib/python3/dist-packages/openstack_dashboard/enabled/_1370_project_container_infra_panel_group.py", line 14, in <module> [Thu Oct 12 20:33:48.383823 2023] [wsgi:error] [pid 52899:tid 140293563209408] from django.utils.translation import ugettext_lazy as _ It looks like the charm template needs updating to work with Django 4.x in Mantic. See upstream commit in horizon: commit cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee Author: Akihiro Motoki <amotoki@gmail.com> Date: Wed Jan 26 22:42:15 2022 +0900     Address RemovedInDjango40Warning (2)     django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),     ungettext(), and ungettext_lazy() are deprecated in favor of the     functions that they’re aliases for: django.utils.translation.gettext(),     gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().     https://docs.djangoproject.com/en/4.0/releases/3.0/#id3     Change-Id: I77878f84e9d10cf6a136dada81eabf4e18676250 == Ubuntu SRU Details == [Impact] magnum dashboard can't be used with Django 4.x. [Test Case] Deploy openstack with magnum + magnum-ui. Ensure dashboard is functional and no errors in /var/log/apache/error.log. [Regression Potential] This is a pretty simple change to aliased functions and regression testing mentioned above should be good enough to ensure behavior is as expected. Currently the dashboard doesn't work on Mantic where Django is at 4.2.4. This package is backported to the Bobcat cloud archive on Jammy where Django is at 3.2.12 and will need testing there, however should be fine considering these functions were deprecated in Django 3.0.
2023-11-17 14:42:53 Corey Bryant cloud-archive/bobcat: status Triaged Fix Committed
2023-11-17 14:42:54 Corey Bryant tags verification-needed verification-needed-mantic verification-bobcat-needed verification-needed verification-needed-mantic
2023-11-17 14:43:16 Corey Bryant cloud-archive: status Triaged Fix Released
2023-11-20 19:36:23 Corey Bryant attachment added Screenshot from 2023-11-20 14-32-10.png https://bugs.launchpad.net/charm-openstack-dashboard/+bug/2039226/+attachment/5721254/+files/Screenshot%20from%202023-11-20%2014-32-10.png
2023-11-20 19:36:24 Corey Bryant attachment added Screenshot from 2023-11-20 14-32-10.png https://bugs.launchpad.net/charm-openstack-dashboard/+bug/2039226/+attachment/5721255/+files/Screenshot%20from%202023-11-20%2014-32-10.png
2023-11-20 19:36:49 Corey Bryant tags verification-bobcat-needed verification-needed verification-needed-mantic verification-bobcat-needed verification-done verification-done-mantic
2023-11-20 21:43:30 Corey Bryant attachment added Screenshot from 2023-11-20 16-42-04.png https://bugs.launchpad.net/charm-openstack-dashboard/+bug/2039226/+attachment/5721311/+files/Screenshot%20from%202023-11-20%2016-42-04.png
2023-11-20 21:43:53 Corey Bryant tags verification-bobcat-needed verification-done verification-done-mantic verification-bobcat-done verification-done verification-done-mantic
2023-11-21 12:24:50 OpenStack Infra charm-openstack-dashboard: status In Progress Fix Committed
2023-11-21 12:35:07 Felipe Reyes nominated for series charm-openstack-dashboard/2023.2
2023-11-21 12:35:07 Felipe Reyes bug task added charm-openstack-dashboard/2023.2
2023-11-21 12:35:32 Felipe Reyes charm-openstack-dashboard: assignee Corey Bryant (corey.bryant)
2023-11-21 14:14:55 OpenStack Infra charm-openstack-dashboard/2023.2: status New Fix Committed
2023-11-28 23:27:32 Brian Murray removed subscriber Ubuntu Stable Release Updates Team
2023-11-28 23:47:52 Launchpad Janitor magnum-ui (Ubuntu Mantic): status Fix Committed Fix Released
2024-01-16 23:07:19 Corey Bryant cloud-archive/bobcat: status Fix Committed Fix Released