Horizon error "Danger: An Error occurred. Please try again later" on attempting resize after update

Solution In Progress - Updated -

Issue

  • When we try to resize a instance via Horizon it throws a error on two clouds both running latest updates. The error in the container logs is:
horizon/horizon.log:2022-05-20 15:04:08,289 34 ERROR django.request Internal Server Error: /dashboard/project/instances/d108e7f9-6f36-4175-8df6-37d6bef3bbf9/resize
  • This seems to perhaps be related to this issue.

  • We expect Horizon to open a window that allows us to choose a flavor, this is not happening. A image of the error has been added below:

    Danger ! Danger ! Danger !
    Danger!

  • The following error is seen in the horizon logs:

2022-05-23 14:36:29,943 58 ERROR django.request Internal Server Error: /dashboard/project/instances/11df425f-325c-4a2c-a444-060d198d767e/resize
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/horizon/utils/memoized.py", line 107, in wrapped
    value = cache[key] = cache.pop(key)
KeyError: ((<weakref at 0x7f1b78407d18; to 'ResizeView' at 0x7f1b7839aa20>,), ())

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner
    response = get_response(request)
  File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3.6/site-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/horizon/decorators.py", line 113, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/horizon/workflows/views.py", line 155, in get
    context = self.get_context_data(**kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/views.py", line 589, in get_context_data
    context = super(ResizeView, self).get_context_data(**kwargs)
  File "/usr/lib/python3.6/site-packages/horizon/workflows/views.py", line 93, in get_context_data
    workflow = self.get_workflow()
  File "/usr/lib/python3.6/site-packages/horizon/workflows/views.py", line 79, in get_workflow
    extra_context = self.get_initial()
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/views.py", line 630, in get_initial
    _object = self.get_object()   
  File "/usr/lib/python3.6/site-packages/horizon/utils/memoized.py", line 109, in wrapped
    value = cache[key] = func(*args, **kwargs)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/instances/views.py", line 602, in get_object
    flavor_id = instance.flavor['id']
KeyError: 'id'

Environment

  • Red Hat OpenStack Platform 16.2 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content