RouterNotFound not handled correctly

Bug #1284343 reported by Matthew D. Wood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Matthew D. Wood

Bug Description

When a call to the neutronclient attempts to find a router that doesn't exist, the neutronclient returns a very generic NeutronClientException. This, in turn, isn't handled correctly within horizon.exceptions.handle; it's treated as a RECOVERABLE error instead of a NOT_FOUND error. Clearly, this is a bad thing, and redirects don't happen correctly and all manner of other bad things can happen.

I've opened up a bug against the neutronclient here:
https://bugs.launchpad.net/neutron/+bug/1284317

There's 2 solutions to this problem:

A) Fix the neutronclient code to actually have a RouterNotFoundClient exception (just like the NetworkNotFoundClient and PortNotFoundClient exceptions) and then add that to the appropriate bucket: openstack_dashboard.exceptions.NOT_FOUND . Clearly the downsides of this approach are that we have to wait for the neutron bug to be fixed, and then our code would then depend upon that fix.

B) Temp-fix things in the mean time.

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/76049

Changed in horizon:
assignee: nobody → Matthew D. Wood (woodm1979)
status: New → In Progress
Revision history for this message
Matthew D. Wood (woodm1979) wrote :

The review has been abandoned for quite a long time. The quick-fix wasn't necessary.

Changed in horizon:
status: In Progress → Invalid
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.