← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1367976] [NEW] Horizon failure when floating IP and port are in different projects

 

Public bug reported:

The Admin -> Overview screen returns a 500 error page if a floating IP
is assigned to a different project than one of the ports associated with
the floating IP.

Example floating IP and port:

$ neutron floatingip-show 9ebcde9f-9d9c-497d-bace-799a5fb8de56
+---------------------+--------------------------------------+
| Field               | Value                                |
+---------------------+--------------------------------------+
| fixed_ip_address    | 10.100.0.253                         |
| floating_ip_address | 10.116.126.157                       |
| floating_network_id | 76c8b58a-5d59-45ec-a48a-6ed22f3648f4 |
| id                  | 9ebcde9f-9d9c-497d-bace-799a5fb8de56 |
| port_id             | d87e7af3-ad35-409b-b60d-88ebc49f6931 |
| router_id           |                                      |
| tenant_id           | 3013df710d604ed68ce8e3daf8089386     |
+---------------------+--------------------------------------+
$ neutron port-show d87e7af3-ad35-409b-b60d-88ebc49f6931
+-----------------------+-------------------------------------------------------------------------------------+
| Field                 | Value                                                                               |
+-----------------------+-------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                |
| binding:capabilities  | {"port_filter": true}                                                               |
| binding:vif_type      | vrouter                                                                             |
| device_id             | 82193f2f-cae1-436e-a1ca-d4a81f753967                                                |
| device_owner          |                                                                                     |
| fixed_ips             | {"subnet_id": "495f8399-ef52-4a28-9c57-7321148bf38d", "ip_address": "10.100.0.253"} |
| id                    | d87e7af3-ad35-409b-b60d-88ebc49f6931                                                |
| mac_address           | 02:d8:7e:7a:f3:ad                                                                   |
| name                  | d87e7af3-ad35-409b-b60d-88ebc49f6931                                                |
| network_id            | 915b3c98-1ffd-4a26-a193-be8ef55c6999                                                |
| port_security_enabled | True                                                                                |
| security_groups       | 42714b40-acfe-4231-a6ca-5b5bd7145a45                                                |
| status                | ACTIVE                                                                              |
| tenant_id             | 2a62c9ba436e46c59a9621a7f1618a83                                                    |
+-----------------------+-------------------------------------------------------------------------------------+


Error seen on the Horizon page when debug is enabled:

KeyError at /admin/

u'd87e7af3-ad35-409b-b60d-88ebc49f6931'

Request Method: 	GET
Request URL: 	http://example.net/horizon/admin/
Django Version: 	1.6.1
Exception Type: 	KeyError
Exception Value: 	

u'd87e7af3-ad35-409b-b60d-88ebc49f6931'

Exception Location: 	/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/neutron.py in list, line 340
Python Executable: 	/usr/bin/python
Python Version: 	2.7.6
Python Path: 	

['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/pymodules/python2.7',
 '/usr/share/openstack-dashboard/',
 '/usr/share/openstack-dashboard/openstack_dashboard']

** 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/1367976

Title:
  Horizon failure when floating IP and port are in different projects

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  The Admin -> Overview screen returns a 500 error page if a floating IP
  is assigned to a different project than one of the ports associated
  with the floating IP.

  Example floating IP and port:

  $ neutron floatingip-show 9ebcde9f-9d9c-497d-bace-799a5fb8de56
  +---------------------+--------------------------------------+
  | Field               | Value                                |
  +---------------------+--------------------------------------+
  | fixed_ip_address    | 10.100.0.253                         |
  | floating_ip_address | 10.116.126.157                       |
  | floating_network_id | 76c8b58a-5d59-45ec-a48a-6ed22f3648f4 |
  | id                  | 9ebcde9f-9d9c-497d-bace-799a5fb8de56 |
  | port_id             | d87e7af3-ad35-409b-b60d-88ebc49f6931 |
  | router_id           |                                      |
  | tenant_id           | 3013df710d604ed68ce8e3daf8089386     |
  +---------------------+--------------------------------------+
  $ neutron port-show d87e7af3-ad35-409b-b60d-88ebc49f6931
  +-----------------------+-------------------------------------------------------------------------------------+
  | Field                 | Value                                                                               |
  +-----------------------+-------------------------------------------------------------------------------------+
  | admin_state_up        | True                                                                                |
  | binding:capabilities  | {"port_filter": true}                                                               |
  | binding:vif_type      | vrouter                                                                             |
  | device_id             | 82193f2f-cae1-436e-a1ca-d4a81f753967                                                |
  | device_owner          |                                                                                     |
  | fixed_ips             | {"subnet_id": "495f8399-ef52-4a28-9c57-7321148bf38d", "ip_address": "10.100.0.253"} |
  | id                    | d87e7af3-ad35-409b-b60d-88ebc49f6931                                                |
  | mac_address           | 02:d8:7e:7a:f3:ad                                                                   |
  | name                  | d87e7af3-ad35-409b-b60d-88ebc49f6931                                                |
  | network_id            | 915b3c98-1ffd-4a26-a193-be8ef55c6999                                                |
  | port_security_enabled | True                                                                                |
  | security_groups       | 42714b40-acfe-4231-a6ca-5b5bd7145a45                                                |
  | status                | ACTIVE                                                                              |
  | tenant_id             | 2a62c9ba436e46c59a9621a7f1618a83                                                    |
  +-----------------------+-------------------------------------------------------------------------------------+


  Error seen on the Horizon page when debug is enabled:

  KeyError at /admin/

  u'd87e7af3-ad35-409b-b60d-88ebc49f6931'

  Request Method: 	GET
  Request URL: 	http://example.net/horizon/admin/
  Django Version: 	1.6.1
  Exception Type: 	KeyError
  Exception Value: 	

  u'd87e7af3-ad35-409b-b60d-88ebc49f6931'

  Exception Location: 	/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/neutron.py in list, line 340
  Python Executable: 	/usr/bin/python
  Python Version: 	2.7.6
  Python Path: 	

  ['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
   '/usr/lib/python2.7',
   '/usr/lib/python2.7/plat-x86_64-linux-gnu',
   '/usr/lib/python2.7/lib-tk',
   '/usr/lib/python2.7/lib-old',
   '/usr/lib/python2.7/lib-dynload',
   '/usr/local/lib/python2.7/dist-packages',
   '/usr/lib/python2.7/dist-packages',
   '/usr/lib/pymodules/python2.7',
   '/usr/share/openstack-dashboard/',
   '/usr/share/openstack-dashboard/openstack_dashboard']

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


Follow ups

References