← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2052699] [NEW] Horizon Attach network interface exception, in one project

 

Public bug reported:

Attempting to run the 'attach interface' action on an instance in
Horizon results in an error message.

This error is specific to one project in Horizon and does not occur in
other projects or with the OpenStack client.

Openstack Version is Zed

The error message:

[Tue Feb 06 14:55:53.174615 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916] Internal Server Error: /project/instances/fbe308af-764e-46d6-a911-85eb56bdc4d1/attach_interface
[Tue Feb 06 14:55:53.174661 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916] Traceback (most recent call last):
[Tue Feb 06 14:55:53.174665 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 47, in inner
[Tue Feb 06 14:55:53.174668 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     response = get_response(request)
[Tue Feb 06 14:55:53.174671 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
[Tue Feb 06 14:55:53.174675 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Feb 06 14:55:53.174678 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 51, in dec
[Tue Feb 06 14:55:53.174681 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
[Tue Feb 06 14:55:53.174683 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 35, in dec
[Tue Feb 06 14:55:53.174686 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
[Tue Feb 06 14:55:53.174688 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 35, in dec
[Tue Feb 06 14:55:53.174691 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
[Tue Feb 06 14:55:53.174693 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 111, in dec
[Tue Feb 06 14:55:53.174696 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
[Tue Feb 06 14:55:53.174699 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 83, in dec
[Tue Feb 06 14:55:53.174701 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
[Tue Feb 06 14:55:53.174704 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 70, in view
[Tue Feb 06 14:55:53.174706 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return self.dispatch(request, *args, **kwargs)
[Tue Feb 06 14:55:53.174709 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 98, in dispatch
[Tue Feb 06 14:55:53.174711 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return handler(request, *args, **kwargs)
[Tue Feb 06 14:55:53.174714 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/views/generic/edit.py", line 133, in get
[Tue Feb 06 14:55:53.174717 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return self.render_to_response(self.get_context_data())
[Tue Feb 06 14:55:53.174721 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/dashboards/project/instances/views.py", line 635, in get_context_data
[Tue Feb 06 14:55:53.174730 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     context = super().get_context_data(**kwargs)
[Tue Feb 06 14:55:53.174733 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/forms/views.py", line 144, in get_context_data
[Tue Feb 06 14:55:53.174736 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     context = super().get_context_data(**kwargs)
[Tue Feb 06 14:55:53.174738 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/forms/views.py", line 77, in get_context_data
[Tue Feb 06 14:55:53.174741 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     context = super().get_context_data(**kwargs)
[Tue Feb 06 14:55:53.174744 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/forms/views.py", line 56, in get_context_data
[Tue Feb 06 14:55:53.174747 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     context = super().get_context_data(**kwargs)
[Tue Feb 06 14:55:53.174751 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/views/generic/edit.py", line 66, in get_context_data
[Tue Feb 06 14:55:53.174755 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     kwargs['form'] = self.get_form()
[Tue Feb 06 14:55:53.174758 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/forms/views.py", line 179, in get_form
[Tue Feb 06 14:55:53.174760 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return form_class(self.request, **self.get_form_kwargs())
[Tue Feb 06 14:55:53.174763 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/dashboards/project/instances/forms.py", line 337, in __init__
[Tue Feb 06 14:55:53.174766 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     ports = instance_utils.port_field_data(request, with_network=True)
[Tue Feb 06 14:55:53.174768 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/dashboards/project/instances/utils.py", line 208, in port_field_data
[Tue Feb 06 14:55:53.174773 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     ports = [
[Tue Feb 06 14:55:53.174776 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/dashboards/project/instances/utils.py", line 210, in <listcomp>
[Tue Feb 06 14:55:53.174779 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     add_more_info_port_name(port, network_dict[port.network_id]))
[Tue Feb 06 14:55:53.174782 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916] KeyError: 'da381bb4-00bd-4456-b224-e63bf12bdb79'

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2052699

Title:
  Horizon Attach network interface exception, in one project

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Attempting to run the 'attach interface' action on an instance in
  Horizon results in an error message.

  This error is specific to one project in Horizon and does not occur in
  other projects or with the OpenStack client.

  Openstack Version is Zed

  The error message:

  [Tue Feb 06 14:55:53.174615 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916] Internal Server Error: /project/instances/fbe308af-764e-46d6-a911-85eb56bdc4d1/attach_interface
  [Tue Feb 06 14:55:53.174661 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916] Traceback (most recent call last):
  [Tue Feb 06 14:55:53.174665 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/core/handlers/exception.py", line 47, in inner
  [Tue Feb 06 14:55:53.174668 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     response = get_response(request)
  [Tue Feb 06 14:55:53.174671 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/core/handlers/base.py", line 181, in _get_response
  [Tue Feb 06 14:55:53.174675 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  [Tue Feb 06 14:55:53.174678 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 51, in dec
  [Tue Feb 06 14:55:53.174681 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
  [Tue Feb 06 14:55:53.174683 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 35, in dec
  [Tue Feb 06 14:55:53.174686 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
  [Tue Feb 06 14:55:53.174688 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 35, in dec
  [Tue Feb 06 14:55:53.174691 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
  [Tue Feb 06 14:55:53.174693 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 111, in dec
  [Tue Feb 06 14:55:53.174696 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
  [Tue Feb 06 14:55:53.174699 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/decorators.py", line 83, in dec
  [Tue Feb 06 14:55:53.174701 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return view_func(request, *args, **kwargs)
  [Tue Feb 06 14:55:53.174704 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 70, in view
  [Tue Feb 06 14:55:53.174706 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return self.dispatch(request, *args, **kwargs)
  [Tue Feb 06 14:55:53.174709 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/views/generic/base.py", line 98, in dispatch
  [Tue Feb 06 14:55:53.174711 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return handler(request, *args, **kwargs)
  [Tue Feb 06 14:55:53.174714 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/views/generic/edit.py", line 133, in get
  [Tue Feb 06 14:55:53.174717 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return self.render_to_response(self.get_context_data())
  [Tue Feb 06 14:55:53.174721 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/dashboards/project/instances/views.py", line 635, in get_context_data
  [Tue Feb 06 14:55:53.174730 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     context = super().get_context_data(**kwargs)
  [Tue Feb 06 14:55:53.174733 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/forms/views.py", line 144, in get_context_data
  [Tue Feb 06 14:55:53.174736 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     context = super().get_context_data(**kwargs)
  [Tue Feb 06 14:55:53.174738 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/forms/views.py", line 77, in get_context_data
  [Tue Feb 06 14:55:53.174741 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     context = super().get_context_data(**kwargs)
  [Tue Feb 06 14:55:53.174744 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/forms/views.py", line 56, in get_context_data
  [Tue Feb 06 14:55:53.174747 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     context = super().get_context_data(**kwargs)
  [Tue Feb 06 14:55:53.174751 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/django/views/generic/edit.py", line 66, in get_context_data
  [Tue Feb 06 14:55:53.174755 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     kwargs['form'] = self.get_form()
  [Tue Feb 06 14:55:53.174758 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/horizon/forms/views.py", line 179, in get_form
  [Tue Feb 06 14:55:53.174760 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     return form_class(self.request, **self.get_form_kwargs())
  [Tue Feb 06 14:55:53.174763 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/dashboards/project/instances/forms.py", line 337, in __init__
  [Tue Feb 06 14:55:53.174766 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     ports = instance_utils.port_field_data(request, with_network=True)
  [Tue Feb 06 14:55:53.174768 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/dashboards/project/instances/utils.py", line 208, in port_field_data
  [Tue Feb 06 14:55:53.174773 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     ports = [
  [Tue Feb 06 14:55:53.174776 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]   File "/var/lib/kolla/venv/lib/python3.10/site-packages/openstack_dashboard/dashboards/project/instances/utils.py", line 210, in <listcomp>
  [Tue Feb 06 14:55:53.174779 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916]     add_more_info_port_name(port, network_dict[port.network_id]))
  [Tue Feb 06 14:55:53.174782 2024] [wsgi:error] [pid 1049:tid 140650888521280] [remote 10.0.0.6:49916] KeyError: 'da381bb4-00bd-4456-b224-e63bf12bdb79'

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2052699/+subscriptions