This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2322642 - python crash when access the specified instance
Summary: python crash when access the specified instance
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: OSP Team
QA Contact: Ashish Gupta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-30 01:11 UTC by jiehuang
Modified: 2025-01-06 09:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2025-01-06 09:58:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-33024 0 None None None 2024-10-30 01:13:00 UTC
Red Hat Issue Tracker OSP-33326 0 None None None 2025-01-06 09:59:06 UTC
Red Hat Issue Tracker   OSPRH-12732 0 None None None 2025-01-06 09:58:33 UTC

Description jiehuang 2024-10-30 01:11:05 UTC
Description of problem:
The RHOSP17's horizon log show python crash when access the specified instance after FFU from RHOSP16, but the server show from CLI was normal

Version-Release number of selected component (if applicable):
17.1.3

How reproducible:


Steps to Reproduce:
1. FFU from RHOSP16 to RHOSP17.1.3
2. Pick any one of the instance.
3. Open it from the horizon.

Actual results:
2024-10-28 08:25:54,584 49 ERROR django.request Internal Server Error: /dashboard/project/instances/b42ac924-f6bf-4ff9-9fc6-3ab8deb9ea78/
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/usr/lib/python3.9/site-packages/django/core/handlers/base.py", line 115, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3.9/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3.9/site-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/horizon/decorators.py", line 112, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/django/views/generic/base.py", line 97, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/horizon/tabs/views.py", line 70, in get
    context = self.get_context_data(**kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/views.py", line 495, in get_context_data
    context = super().get_context_data(**kwargs)
  File "/usr/lib/python3.9/site-packages/horizon/tabs/views.py", line 55, in get_context_data
    exceptions.handle(self.request)
  File "/usr/lib/python3.9/site-packages/horizon/tabs/views.py", line 53, in get_context_data
    context["tab_group"].load_tab_data()
  File "/usr/lib/python3.9/site-packages/horizon/tabs/base.py", line 176, in load_tab_data
    exceptions.handle(self.request)
  File "/usr/lib/python3.9/site-packages/horizon/tabs/base.py", line 173, in load_tab_data
    tab._data = tab.get_context_data(self.request)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/tabs.py", line 49, in get_context_data
    'id': volume.volume_image_metadata['image_id'],
UnboundLocalError: local variable 'volume' referenced before assignment

Expected results:
Normal as others

Additional info:


Note You need to log in before you can comment on or make changes to this bug.