yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46049
[Bug 1539358] Re: internal exception when show network topology
Reviewed: https://review.openstack.org/273860
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=d7bee688015266956776eebfa8bf0deda4409c93
Submitter: Jenkins
Branch: master
commit d7bee688015266956776eebfa8bf0deda4409c93
Author: Yalei Wang <yalei.wang@xxxxxxxxx>
Date: Fri Jan 29 19:14:02 2016 +0800
Add status 'N/A' in Port tables
The lacked of 'N/A' status triger a KeyValue exception when interate
this kind of port.
Change-Id: Id6d4b69a20cd614a13d3a2b817e723249328ffda
Closes-bug: 1539358
** Changed in: horizon
Status: Confirmed => Fix Released
--
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/1539358
Title:
internal exception when show network topology
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
2016-01-29 03:06:46.251227 Internal Server Error: /dashboard/project/network_topology/json
2016-01-29 03:06:46.251248 Traceback (most recent call last):
2016-01-29 03:06:46.251253 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
2016-01-29 03:06:46.251256 response = wrapped_callback(request, *callback_args, **callback_kwargs)
2016-01-29 03:06:46.251259 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec
2016-01-29 03:06:46.251262 return view_func(request, *args, **kwargs)
2016-01-29 03:06:46.251265 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 52, in dec
2016-01-29 03:06:46.251268 return view_func(request, *args, **kwargs)
2016-01-29 03:06:46.251270 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec
2016-01-29 03:06:46.251273 return view_func(request, *args, **kwargs)
2016-01-29 03:06:46.251276 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 84, in dec
2016-01-29 03:06:46.251278 return view_func(request, *args, **kwargs)
2016-01-29 03:06:46.251281 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
2016-01-29 03:06:46.251283 return self.dispatch(request, *args, **kwargs)
2016-01-29 03:06:46.251286 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
2016-01-29 03:06:46.251288 return handler(request, *args, **kwargs)
2016-01-29 03:06:46.251291 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/network_topology/views.py", line 409, in get
2016-01-29 03:06:46.251294 'ports': self._get_ports(request),
2016-01-29 03:06:46.251296 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/network_topology/views.py", line 369, in _get_ports
2016-01-29 03:06:46.251528 print self.trans.port[port.status]
2016-01-29 03:06:46.251534 KeyError: u'N/A'
^Chorizon failed to start
the reason is that status of port is N/A, but self.trans.port don't include this key.
ubuntu@wyl-neutron-fun2:/opt/stack/networking-odl$ neutron port-show c3114c65-c5da-4f89-a311-31add977cce1
+-----------------------+-----------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+-----------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | 0550f6e2-763b-408f-8af9-0609c6320642 |
| device_owner | network:floatingip |
| dns_assignment | {"hostname": "host-172-24-4-5", "ip_address": "172.24.4.5", "fqdn": "host-172-24-4-5.openstacklocal."} |
| | {"hostname": "host-2001-db8--6", "ip_address": "2001:db8::6", "fqdn": "host-2001-db8--6.openstacklocal."} |
| dns_name | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "bac86baa-388d-445d-8d59-3cf7407affee", "ip_address": "172.24.4.5"} |
| | {"subnet_id": "58e9aedf-495e-45a2-8099-a1f535abfe3b", "ip_address": "2001:db8::6"} |
| id | c3114c65-c5da-4f89-a311-31add977cce1 |
| mac_address | fa:16:3e:e4:ae:bc |
| name | |
| network_id | 3b1b3397-eac7-48a8-9839-612b342e0f25 |
| port_security_enabled | False |
| security_groups | |
| status | N/A |
| tenant_id | |
+-----------------------+-----------------------------------------------------------------------------------------------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1539358/+subscriptions
References