TypeError at /admin/routers/ issubclass() arg 1 must be a class

Bug #1220345 reported by Sean McCully
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Matthew D. Wood

Bug Description

I've included the django debug page,

$ neutron router-list
+--------------------------------------+-----------+-----------------------------------------------------------------------------+
| id | name | external_gateway_info |
+--------------------------------------+-----------+-----------------------------------------------------------------------------+
| d54ec5f0-1afa-4b38-a27b-5994425c04ed | my router | {"network_id": "4783f398-8a7e-4e50-8b6f-6141df053d6a", "enable_snat": true} |
+--------------------------------------+-----------+-----------------------------------------------------------------------------+

$ neutron net-list
+--------------------------------------+--------+-----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+--------+-----------------------------------------------------+
| 4783f398-8a7e-4e50-8b6f-6141df053d6a | public | 7595b3d5-2086-48b2-ab08-e4bdccc587ed 192.168.1.0/24 |
+--------------------------------------+--------+-----------------------------------------------------+

$ neutron port-list
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------+
| 7f2d6932-a306-4b0c-9d8c-84731e886e45 | | fa:16:3e:14:ac:ee | {"subnet_id": "7595b3d5-2086-48b2-ab08-e4bdccc587ed", "ip_address": "192.1.1.2"} |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------

Revision history for this message
Sean McCully (sean-mccully) wrote :
Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :

Could you provide the steps to reproduce this and some details about the environment? Thanks!

Revision history for this message
Akihiro Motoki (amotoki) wrote :

After reading the raw HTML of the attached horizon-bug.html,
I confirmed ext_net_dict is an empty dict {}.

There are the following possibilities:
(a) Admin user fails to retrieve external network lists
(b) Neutron returns an empty list.
(c) Horizon calls Neutron API with wrong user.

Perhaps it is a bug of not Horizon but Neutron itself, but I am sure with 100%.

If you are using devstack, the detail of Neutron API calls are logged to /var/log/apache2/horizon_error.log.
Please let us know if you can still produce this error.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
Revision history for this message
Matthew D. Wood (woodm1979) wrote :

While not able to recreate the error myself, our error-logging system found this error as well.
The problem is that exceptions.handle is being called when there's no exception.

I'd like to re-open this bug.

Changed in horizon:
assignee: nobody → Matthew D. Wood (woodm1979)
status: Expired → In Progress
David Lyle (david-lyle)
Changed in horizon:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/75934

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/75934
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=d9ecd8d15759297a15382d7353482a2eff4b26bb
Submitter: Jenkins
Branch: master

commit d9ecd8d15759297a15382d7353482a2eff4b26bb
Author: woodm1979 <email address hidden>
Date: Mon Feb 24 10:32:36 2014 -0700

    Fix handling of missing external network

    When an external network can't be found, project/routers/index.html will
    result in a type error caused by calling exceptions.handle when no
    exception is present. In this case, an error message should be
    displayed, and the missing-network should be indicated to the user.

    Also added tests for this case.

    Change-Id: I3aaa64de28738051ad84cc587fbb6cfd546f4662
    Closes-Bug: 1220345

Changed in horizon:
status: In Progress → Fix Committed
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → juno-3
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.