Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-12732

BZ#2322642 python crash when access the specified instance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • python-django-horizon
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Important

      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:

              rhos-maint@bot.bugzilla.redhat.com rhos-maint@bot.bugzilla.redhat.com (Inactive)
              jira-bugzilla-migration RH Bugzilla Integration
              Ashish Gupta Ashish Gupta
              rhos-dfg-ui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: