• Bug#1108931: openstack-dashboard: causes packages removal to fail

    From Lucas Nussbaum@21:1/5 to All on Tue Jul 8 09:20:01 2025
    Package: openstack-dashboard
    Version: 3:25.3.0-2
    Severity: serious
    Control: affects -1 python3-blazar-dashboard python3-cloudkitty-dashboard python3-designate-dashboard python3-freezer-web-ui python3-heat-dashboard python3-ironic-ui python3-magnum-ui python3-manila-ui python3-masakari-dashboard python3-mistral-dashboard
    python3-neutron-vpnaas-dashboard python3-octavia-dashboard python3-senlin-dashboard python3-trove-dashboard python3-vitrage-dashboard python3-watcher-dashboard python3-zaqar-ui

    Hi,

    While testing installation and removal of packages in trixie, I ran into
    the following issue, affecting the following packages:

    python3-blazar-dashboard
    python3-cloudkitty-dashboard
    python3-designate-dashboard
    python3-freezer-web-ui
    python3-heat-dashboard
    python3-ironic-ui
    python3-magnum-ui
    python3-manila-ui
    python3-masakari-dashboard
    python3-mistral-dashboard
    python3-neutron-vpnaas-dashboard
    python3-octavia-dashboard
    python3-senlin-dashboard
    python3-trove-dashboard
    python3-vitrage-dashboard
    python3-watcher-dashboard
    python3-zaqar-ui

    If I install one of those packages in a clean VM, and then remove it, I get:

    Removing python3-ironic-ui (6.5.0-2) ...
    Processing triggers for openstack-dashboard (3:25.3.0-2) ...
    Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 255, in fetch_command
    app_name = commands[subcommand]
    ~~~~~~~~^^^^^^^^^^^^
    KeyError: 'collectstatic'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "/usr/share/openstack-dashboard/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
    ~~~~~~~~~~~~~~~^^
    File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 262, in fetch_command
    settings.INSTALLED_APPS
    File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 102, in __getattr__
    self._setup(name)
    ~~~~~~~~~~~^^^^^^
    File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 89, in _setup
    self._wrapped = Settings(settings_module)
    ~~~~~~~~^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 217, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
    File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    File "/usr/lib/python3/dist-packages/openstack_dashboard/settings.py", line 31, in <module>
    from openstack_dashboard.local import enabled as local_enabled
    ImportError: cannot import name 'enabled' from 'openstack_dashboard.local' (/usr/lib/python3/dist-packages/openstack_dashboard/local/__init__.py)
    dpkg: error processing package openstack-dashboard (--configure):
    installed openstack-dashboard package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    openstack-dashboard

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Santiago Vila@21:1/5 to All on Tue Jul 8 14:50:01 2025
    Hello.

    In this other bug, which affected the same packages,
    I noticed that the postinst was copying files directly
    in /usr/lib, which I warned as "not very orthodox":

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069097#112

    The fix that we applied to this other bug was more a mitigation
    than a real fix (btw: it has not happened again after the mitigation,
    so thanks a lot), but given the present bug and the /usr/lib thing,
    I have the feeling that the package needs some "structural change",
    which maybe would have done the above mitigation not necessary at all.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Jul 10 12:00:02 2025
    This is a multi-part message in MIME format...

    Your message dated Thu, 10 Jul 2025 09:49:45 +0000
    with message-id <E1uZnuT-00GdeX-GD@fasolo.debian.org>
    and subject line Bug#1108931: fixed in horizon 3:25.3.0-3
    has caused the Debian Bug report #1108931,
    regarding openstack-dashboard: causes packages removal to fail
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1108931: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1108931
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 8 Jul 2025 07:08:31 +0000 X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
    (2024-03-25) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-126.2 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_CONTROL_AFFECTS,BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    FVGT_m_MULTI_ODD,HAS_PACKAGE,SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,
    USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
    version=4.0.1-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 150; neutral, 84; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <lucas@debian.org>
    Received: fr
  • From Debian Bug Tracking System@21:1/5 to All on Thu Jul 10 11:40:01 2025
    Processing control commands:

    tag -1 pending
    Bug #1108931 [openstack-dashboard] openstack-dashboard: causes packages removal to fail
    Added tag(s) pending.

    --
    1108931: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1108931
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Goirand@21:1/5 to All on Thu Jul 10 11:40:01 2025
    Control: tag -1 pending

    Hello,

    Bug #1108931 in horizon reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/openstack-team/services/horizon/-/commit/2a116a799a888e2037ec0be62a98f2164abe51e6

    ------------------------------------------------------------------------
    * Refreshed:
    Dont_load_user_role_assignment_or_groups_tabs_for_non-admins.patch.
    * Add do-not-import-enabled-if-no-plugins.patch (Closes: #1108931). ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1108931

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)