yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #94439
[Bug 2077329] [NEW] Danger: An Error occurred. Please try again later
Public bug reported:
Hello,
When attaching an interface to a VM via Horizon, I got the error
'Danger: An error occurred. Please try again later.' However, it works
via the CLI.
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294116 /usr/lib/python3.8/warnings.py:30: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294149 file.write(text)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294157 /usr/lib/python3.8/logging/__init__.py:1088: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294161 stream.write(msg + self.terminator)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294167 Internal Server Error: /project/instances/5266ef2b-3823-42a6-bc39-256f9f1f8671/attach_interface
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294170 Traceback (most recent call last):
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294173 File "/var/lib/openstack/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294177 response = get_response(request)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294180 File "/var/lib/openstack/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294183 response = wrapped_callback(request, *callback_args, **callback_kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294186 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 51, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294189 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294195 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 35, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294198 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294201 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 35, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294204 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294207 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 111, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294210 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294213 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 83, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294216 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294220 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294224 return self.dispatch(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294228 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294231 return handler(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294234 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/edit.py", line 133, in get
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294238 return self.render_to_response(self.get_context_data())
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294245 File "/var/lib/openstack/lib/python3.8/site-packages/openstack_dashboard/dashboards/project/instances/views.py", line 635, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294249 context = super().get_context_data(**kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294252 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/forms/views.py", line 144, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294256 context = super().get_context_data(**kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294259 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/forms/views.py", line 77, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294263 context = super().get_context_data(**kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294266 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/forms/views.py", line 56, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294270 context = super().get_context_data(**kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294273 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/edit.py", line 66, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294277 kwargs['form'] = self.get_form()
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294281 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/forms/views.py", line 179, in get_form
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294284 return form_class(self.request, **self.get_form_kwargs())
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294288 File "/var/lib/openstack/lib/python3.8/site-packages/openstack_dashboard/dashboards/project/instances/forms.py", line 337, in __init__
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294292 ports = instance_utils.port_field_data(request, with_network=True)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294296 File "/var/lib/openstack/lib/python3.8/site-packages/openstack_dashboard/dashboards/project/instances/utils.py", line 208, in port_field_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294299 ports = [
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294302 File "/var/lib/openstack/lib/python3.8/site-packages/openstack_dashboard/dashboards/project/instances/utils.py", line 210, in <listcomp>
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294306 add_more_info_port_name(port, network_dict[port.network_id]))
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294310 KeyError: '1f2016ea-0094-4533-afff-677d66c09a11'
root@horizon-6dc8465ddc-9smwb:/# pip show horizon
Name: horizon
Version: 23.0.1.dev55
Summary: OpenStack Dashboard
Home-page: https://docs.openstack.org/horizon/latest/
Author: OpenStack
Author-email: openstack-discuss@xxxxxxxxxxxxxxxxxxx
License: UNKNOWN
Location: /var/lib/openstack/lib/python3.8/site-packages
Requires: pbr, oslo.policy, XStatic-smart-table, XStatic-jQuery, XStatic-bootswatch, PyYAML, oslo.i18n, keystoneauth1, XStatic-Angular-Gettext, XStatic-Angular, oslo.config, futurist, XStatic-D3, django-debreach, oslo.concurrency, enmerkar, semantic-version, XStatic-roboto-fontface, six, iso8601, Babel, pytz, XStatic-Rickshaw, oslo.utils, XStatic-Bootstrap-Datepicker, netaddr, XStatic-Font-Awesome, XStatic-Angular-Schema-Form, XStatic-mdi, pyScss, django-pyscss, debtcollector, XStatic-Angular-Bootstrap, XStatic-Hogan, pymongo, XStatic-Jasmine, XStatic-JQuery-Migrate, XStatic, python-novaclient, XStatic-JQuery.quicksearch, XStatic-term.js, XStatic-Angular-lrdragndrop, XStatic-Spin, python-swiftclient, python-glanceclient, oslo.upgradecheck, requests, python-keystoneclient, XStatic-JQuery.TableSorter, XStatic-jquery-ui, XStatic-Bootstrap-SCSS, oslo.serialization, XStatic-tv4, python-neutronclient, osprofiler, XStatic-objectpath, XStatic-JSEncrypt, django-compressor, Django, XStatic-Angular-FileUpload, python-cinderclient
Required-by: octavia-dashboard, neutron-vpnaas-dashboard, heat-dashboard, designate-dashboard
nova-api-metadata-5cfbfbb8f5-fh9jv:/$ pip show nova
Name: nova
Version: 26.2.2
Summary: Cloud computing fabric controller
Home-page: https://docs.openstack.org/nova/latest/
Author: OpenStack
Author-email: openstack-discuss@xxxxxxxxxxxxxxxxxxx
License: UNKNOWN
Location: /var/lib/openstack/lib/python3.8/site-packages
Requires: tooz, oslo.context, oslo.db, websockify, Jinja2, oslo.i18n, oslo.privsep, cryptography, python-dateutil, jsonschema, Paste, os-traits, python-cinderclient, oslo.versionedobjects, PyYAML, oslo.serialization, oslo.service, os-resource-classes, microversion-parse, futurist, oslo.rootwrap, openstacksdk, psutil, netifaces, retrying, oslo.log, oslo.utils, oslo.messaging, SQLAlchemy, PrettyTable, python-neutronclient, oslo.limit, oslo.cache, oslo.upgradecheck, iso8601, rfc3986, oslo.reports, os-vif, eventlet, alembic, packaging, oslo.concurrency, greenlet, os-service-types, keystoneauth1, oslo.middleware, paramiko, PasteDeploy, decorator, cursive, sqlalchemy-migrate, castellan, lxml, keystonemiddleware, netaddr, requests, os-brick, pbr, WebOb, python-glanceclient, stevedore, oslo.config, oslo.policy, Routes
Required-by:
nova-api-metadata-5cfbfbb8f5-fh9jv:/$ pip show microversion-parse
Name: microversion-parse
Version: 1.0.1
Summary: OpenStack microversion header parser
Home-page: http://www.openstack.org/
Author: OpenStack
Author-email: openstack-discuss@xxxxxxxxxxxxxxxxxxx
License: UNKNOWN
Location: /var/lib/openstack/lib/python3.8/site-packages
Requires: WebOb
Required-by: nova
** 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/2077329
Title:
Danger: An Error occurred. Please try again later
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Hello,
When attaching an interface to a VM via Horizon, I got the error
'Danger: An error occurred. Please try again later.' However, it works
via the CLI.
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294116 /usr/lib/python3.8/warnings.py:30: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294149 file.write(text)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294157 /usr/lib/python3.8/logging/__init__.py:1088: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294161 stream.write(msg + self.terminator)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294167 Internal Server Error: /project/instances/5266ef2b-3823-42a6-bc39-256f9f1f8671/attach_interface
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294170 Traceback (most recent call last):
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294173 File "/var/lib/openstack/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294177 response = get_response(request)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294180 File "/var/lib/openstack/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294183 response = wrapped_callback(request, *callback_args, **callback_kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294186 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 51, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294189 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294195 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 35, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294198 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294201 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 35, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294204 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294207 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 111, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294210 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294213 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 83, in dec
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294216 return view_func(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294220 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294224 return self.dispatch(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294228 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294231 return handler(request, *args, **kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294234 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/edit.py", line 133, in get
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294238 return self.render_to_response(self.get_context_data())
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294245 File "/var/lib/openstack/lib/python3.8/site-packages/openstack_dashboard/dashboards/project/instances/views.py", line 635, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294249 context = super().get_context_data(**kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294252 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/forms/views.py", line 144, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294256 context = super().get_context_data(**kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294259 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/forms/views.py", line 77, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294263 context = super().get_context_data(**kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294266 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/forms/views.py", line 56, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294270 context = super().get_context_data(**kwargs)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294273 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/edit.py", line 66, in get_context_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294277 kwargs['form'] = self.get_form()
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294281 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/forms/views.py", line 179, in get_form
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294284 return form_class(self.request, **self.get_form_kwargs())
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294288 File "/var/lib/openstack/lib/python3.8/site-packages/openstack_dashboard/dashboards/project/instances/forms.py", line 337, in __init__
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294292 ports = instance_utils.port_field_data(request, with_network=True)
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294296 File "/var/lib/openstack/lib/python3.8/site-packages/openstack_dashboard/dashboards/project/instances/utils.py", line 208, in port_field_data
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294299 ports = [
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294302 File "/var/lib/openstack/lib/python3.8/site-packages/openstack_dashboard/dashboards/project/instances/utils.py", line 210, in <listcomp>
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294306 add_more_info_port_name(port, network_dict[port.network_id]))
horizon-6dc8465ddc-9smwb horizon 2024-08-19 12:46:41.294310 KeyError: '1f2016ea-0094-4533-afff-677d66c09a11'
root@horizon-6dc8465ddc-9smwb:/# pip show horizon
Name: horizon
Version: 23.0.1.dev55
Summary: OpenStack Dashboard
Home-page: https://docs.openstack.org/horizon/latest/
Author: OpenStack
Author-email: openstack-discuss@xxxxxxxxxxxxxxxxxxx
License: UNKNOWN
Location: /var/lib/openstack/lib/python3.8/site-packages
Requires: pbr, oslo.policy, XStatic-smart-table, XStatic-jQuery, XStatic-bootswatch, PyYAML, oslo.i18n, keystoneauth1, XStatic-Angular-Gettext, XStatic-Angular, oslo.config, futurist, XStatic-D3, django-debreach, oslo.concurrency, enmerkar, semantic-version, XStatic-roboto-fontface, six, iso8601, Babel, pytz, XStatic-Rickshaw, oslo.utils, XStatic-Bootstrap-Datepicker, netaddr, XStatic-Font-Awesome, XStatic-Angular-Schema-Form, XStatic-mdi, pyScss, django-pyscss, debtcollector, XStatic-Angular-Bootstrap, XStatic-Hogan, pymongo, XStatic-Jasmine, XStatic-JQuery-Migrate, XStatic, python-novaclient, XStatic-JQuery.quicksearch, XStatic-term.js, XStatic-Angular-lrdragndrop, XStatic-Spin, python-swiftclient, python-glanceclient, oslo.upgradecheck, requests, python-keystoneclient, XStatic-JQuery.TableSorter, XStatic-jquery-ui, XStatic-Bootstrap-SCSS, oslo.serialization, XStatic-tv4, python-neutronclient, osprofiler, XStatic-objectpath, XStatic-JSEncrypt, django-compressor, Django, XStatic-Angular-FileUpload, python-cinderclient
Required-by: octavia-dashboard, neutron-vpnaas-dashboard, heat-dashboard, designate-dashboard
nova-api-metadata-5cfbfbb8f5-fh9jv:/$ pip show nova
Name: nova
Version: 26.2.2
Summary: Cloud computing fabric controller
Home-page: https://docs.openstack.org/nova/latest/
Author: OpenStack
Author-email: openstack-discuss@xxxxxxxxxxxxxxxxxxx
License: UNKNOWN
Location: /var/lib/openstack/lib/python3.8/site-packages
Requires: tooz, oslo.context, oslo.db, websockify, Jinja2, oslo.i18n, oslo.privsep, cryptography, python-dateutil, jsonschema, Paste, os-traits, python-cinderclient, oslo.versionedobjects, PyYAML, oslo.serialization, oslo.service, os-resource-classes, microversion-parse, futurist, oslo.rootwrap, openstacksdk, psutil, netifaces, retrying, oslo.log, oslo.utils, oslo.messaging, SQLAlchemy, PrettyTable, python-neutronclient, oslo.limit, oslo.cache, oslo.upgradecheck, iso8601, rfc3986, oslo.reports, os-vif, eventlet, alembic, packaging, oslo.concurrency, greenlet, os-service-types, keystoneauth1, oslo.middleware, paramiko, PasteDeploy, decorator, cursive, sqlalchemy-migrate, castellan, lxml, keystonemiddleware, netaddr, requests, os-brick, pbr, WebOb, python-glanceclient, stevedore, oslo.config, oslo.policy, Routes
Required-by:
nova-api-metadata-5cfbfbb8f5-fh9jv:/$ pip show microversion-parse
Name: microversion-parse
Version: 1.0.1
Summary: OpenStack microversion header parser
Home-page: http://www.openstack.org/
Author: OpenStack
Author-email: openstack-discuss@xxxxxxxxxxxxxxxxxxx
License: UNKNOWN
Location: /var/lib/openstack/lib/python3.8/site-packages
Requires: WebOb
Required-by: nova
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2077329/+subscriptions