Public bug reported:
Hy!
We run into a small "problem". (Using Rocky)
A subnet in a project was named with a letter "é" and the horizon
dropped an exception, when we tried to attach a new interface to the
instance.
When spin up a new instance, and add it to this network, it's just works
fine.
After the subnet was renamed, the Attach interface started working
again.
Not a big deal, but maybe someone can reproduce, and it can be fixed.
Thanks,
Peter
The error message:
[Mon Jun 22 17:51:28.619521 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] Internal Server Error:
/project/instances/b88b44f1-2b3d-4539-b21c-b45029f959a1/attach_interface
[Mon Jun 22 17:51:28.619638 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] Traceback (most recent call
last):
[Mon Jun 22 17:51:28.619665 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 41,
in inner
[Mon Jun 22 17:51:28.619685 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] response =
get_response(request)
[Mon Jun 22 17:51:28.619706 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 187, in
_get_response
[Mon Jun 22 17:51:28.619724 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] response =
self.process_exception_by_middleware(e, request)
[Mon Jun 22 17:51:28.619743 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 185, in
_get_response
[Mon Jun 22 17:51:28.619761 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] response =
wrapped_callback(request, *callback_args, **callback_kwargs)
[Mon Jun 22 17:51:28.619780 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
[Mon Jun 22 17:51:28.619798 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.619816 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 52, in dec
[Mon Jun 22 17:51:28.619834 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.619853 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
[Mon Jun 22 17:51:28.619871 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.619931 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 113, in dec
[Mon Jun 22 17:51:28.619955 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.619973 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 84, in dec
[Mon Jun 22 17:51:28.619992 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.620010 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in
view
[Mon Jun 22 17:51:28.620029 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return
self.dispatch(request, *args, **kwargs)
[Mon Jun 22 17:51:28.620061 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 88, in
dispatch
[Mon Jun 22 17:51:28.620081 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return handler(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.620123 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 174, in
get
[Mon Jun 22 17:51:28.620152 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return
self.render_to_response(self.get_context_data())
[Mon Jun 22 17:51:28.620176 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/openstack_dashboard/dashboards/project/instances/views.py",
line 584, in get_context_data
[Mon Jun 22 17:51:28.620199 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] context =
super(AttachInterfaceView, self).get_context_data(**kwargs)
[Mon Jun 22 17:51:28.620230 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/forms/views.py", line 141, in
get_context_data
[Mon Jun 22 17:51:28.620259 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] context =
super(ModalFormView, self).get_context_data(**kwargs)
[Mon Jun 22 17:51:28.620285 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/forms/views.py", line 74, in
get_context_data
[Mon Jun 22 17:51:28.620303 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] context =
super(ModalFormMixin, self).get_context_data(**kwargs)
[Mon Jun 22 17:51:28.620326 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/forms/views.py", line 55, in
get_context_data
[Mon Jun 22 17:51:28.620362 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] context =
super(ModalBackdropMixin, self).get_context_data(**kwargs)
[Mon Jun 22 17:51:28.620390 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 93, in
get_context_data
[Mon Jun 22 17:51:28.620415 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] kwargs['form'] =
self.get_form()
[Mon Jun 22 17:51:28.620439 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/forms/views.py", line 176, in get_form
[Mon Jun 22 17:51:28.620465 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return
form_class(self.request, **self.get_form_kwargs())
[Mon Jun 22 17:51:28.620489 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/openstack_dashboard/dashboards/project/instances/forms.py",
line 349, in __init__
[Mon Jun 22 17:51:28.620513 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] ports =
instance_utils.port_field_data(request, with_network=True)
[Mon Jun 22 17:51:28.620541 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/openstack_dashboard/dashboards/project/instances/utils.py",
line 225, in port_field_data
[Mon Jun 22 17:51:28.620569 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] not isinstance(port,
api.neutron.PortTrunkSubport))])
[Mon Jun 22 17:51:28.620605 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/openstack_dashboard/dashboards/project/instances/utils.py",
line 209, in add_more_info_port_name
[Mon Jun 22 17:51:28.620662 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] [ip['ip_address'] for ip in
port['fixed_ips']]))
[Mon Jun 22 17:51:28.620692 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] UnicodeEncodeError: 'ascii'
codec can't encode character u'\\xe9' in position 6: ordinal not in range(128)
** 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/1884571
Title:
Horizon Attach interface exception, if subnet contains letters with
ACUTE
Status in OpenStack Dashboard (Horizon):
New
Bug description:
Hy!
We run into a small "problem". (Using Rocky)
A subnet in a project was named with a letter "é" and the horizon
dropped an exception, when we tried to attach a new interface to the
instance.
When spin up a new instance, and add it to this network, it's just
works fine.
After the subnet was renamed, the Attach interface started working
again.
Not a big deal, but maybe someone can reproduce, and it can be fixed.
Thanks,
Peter
The error message:
[Mon Jun 22 17:51:28.619521 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] Internal Server Error:
/project/instances/b88b44f1-2b3d-4539-b21c-b45029f959a1/attach_interface
[Mon Jun 22 17:51:28.619638 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] Traceback (most recent call
last):
[Mon Jun 22 17:51:28.619665 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py", line 41,
in inner
[Mon Jun 22 17:51:28.619685 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] response =
get_response(request)
[Mon Jun 22 17:51:28.619706 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 187, in
_get_response
[Mon Jun 22 17:51:28.619724 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] response =
self.process_exception_by_middleware(e, request)
[Mon Jun 22 17:51:28.619743 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 185, in
_get_response
[Mon Jun 22 17:51:28.619761 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] response =
wrapped_callback(request, *callback_args, **callback_kwargs)
[Mon Jun 22 17:51:28.619780 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
[Mon Jun 22 17:51:28.619798 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.619816 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 52, in dec
[Mon Jun 22 17:51:28.619834 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.619853 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 36, in dec
[Mon Jun 22 17:51:28.619871 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.619931 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 113, in dec
[Mon Jun 22 17:51:28.619955 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.619973 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 84, in dec
[Mon Jun 22 17:51:28.619992 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return view_func(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.620010 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in
view
[Mon Jun 22 17:51:28.620029 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return
self.dispatch(request, *args, **kwargs)
[Mon Jun 22 17:51:28.620061 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 88, in
dispatch
[Mon Jun 22 17:51:28.620081 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return handler(request,
*args, **kwargs)
[Mon Jun 22 17:51:28.620123 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 174, in
get
[Mon Jun 22 17:51:28.620152 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return
self.render_to_response(self.get_context_data())
[Mon Jun 22 17:51:28.620176 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/openstack_dashboard/dashboards/project/instances/views.py",
line 584, in get_context_data
[Mon Jun 22 17:51:28.620199 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] context =
super(AttachInterfaceView, self).get_context_data(**kwargs)
[Mon Jun 22 17:51:28.620230 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/forms/views.py", line 141, in
get_context_data
[Mon Jun 22 17:51:28.620259 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] context =
super(ModalFormView, self).get_context_data(**kwargs)
[Mon Jun 22 17:51:28.620285 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/forms/views.py", line 74, in
get_context_data
[Mon Jun 22 17:51:28.620303 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] context =
super(ModalFormMixin, self).get_context_data(**kwargs)
[Mon Jun 22 17:51:28.620326 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/forms/views.py", line 55, in
get_context_data
[Mon Jun 22 17:51:28.620362 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] context =
super(ModalBackdropMixin, self).get_context_data(**kwargs)
[Mon Jun 22 17:51:28.620390 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 93, in
get_context_data
[Mon Jun 22 17:51:28.620415 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] kwargs['form'] =
self.get_form()
[Mon Jun 22 17:51:28.620439 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/horizon/forms/views.py", line 176, in get_form
[Mon Jun 22 17:51:28.620465 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] return
form_class(self.request, **self.get_form_kwargs())
[Mon Jun 22 17:51:28.620489 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/openstack_dashboard/dashboards/project/instances/forms.py",
line 349, in __init__
[Mon Jun 22 17:51:28.620513 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] ports =
instance_utils.port_field_data(request, with_network=True)
[Mon Jun 22 17:51:28.620541 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/openstack_dashboard/dashboards/project/instances/utils.py",
line 225, in port_field_data
[Mon Jun 22 17:51:28.620569 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] not isinstance(port,
api.neutron.PortTrunkSubport))])
[Mon Jun 22 17:51:28.620605 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] File
"/usr/lib/python2.7/dist-packages/openstack_dashboard/dashboards/project/instances/utils.py",
line 209, in add_more_info_port_name
[Mon Jun 22 17:51:28.620662 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] [ip['ip_address'] for ip in
port['fixed_ips']]))
[Mon Jun 22 17:51:28.620692 2020] [wsgi:error] [pid 1629918:tid
140338093852416] [remote 192.168.51.253:47116] UnicodeEncodeError: 'ascii'
codec can't encode character u'\\xe9' in position 6: ordinal not in range(128)
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1884571/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp