NoReverseMatch at /project/access_and_security/

Bug #1645683 reported by John Davidge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Unassigned

Bug Description

After associating a Floating IP via Horizon, the Access and Security page produces the following error:

Reverse for 'detail' with arguments '(u'',)' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'project/instances/(?P<instance_id>[^/]+)/$']

Complete paste: http://paste.openstack.org/show/590655/

Any attempt to reload the page produces the same error.

This appears to be caused by an incorrect assumption that a port associated with a Floating IP will always belong to an instance.

This is with a fresh pull of devstack and horizon as of 28/11/2016.

Steps to recreate:

This assumes a devstack with the default public/private neutron networks configured. local.conf should contain:
http://paste.openstack.org/show/590787/

1. On the CLI, create a port on the private network with device_owner
   "compute:nova":

    $ neutron port-create private --device_owner compute:nova

2. In Horizon, go to Compute > Access & Security. Allocate a Floating IP
   from the Public pool.

3. Associate the Floating IP with the port created in step 1.

4. When the page reloads, you should see the error.

description: updated
description: updated
Changed in horizon:
assignee: nobody → Rob Cresswell (robcresswell)
Changed in horizon:
milestone: none → ocata-2
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/404233

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit c1873ea4d9dbe907c3316c24b03db0eb9ea6f694
Author: Rob Cresswell <email address hidden>
Date: Tue Nov 29 14:08:09 2016 +0000

    Update floating IP tables instance URL check

    A port can be given a device owner of 'compute:nova' and associated with
    a floating IP; which will fail the current check in the floating IPs
    table to attempt to resolve an instance details URL.

    This patch updates the condition to actually check for the required variable.

    Change-Id: Ic5f78525ba41d47c1a548aeab73933f962343ebd
    Closes-bug: 1645683

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/420569

tags: added: newton-backport-potential
Changed in horizon:
milestone: ocata-2 → ocata-3
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/newton)

Reviewed: https://review.openstack.org/420569
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=afbcb9a3dc620e6fd7f327be5bda8fe8aab79b88
Submitter: Jenkins
Branch: stable/newton

commit afbcb9a3dc620e6fd7f327be5bda8fe8aab79b88
Author: Rob Cresswell <email address hidden>
Date: Tue Nov 29 14:08:09 2016 +0000

    Update floating IP tables instance URL check

    A port can be given a device owner of 'compute:nova' and associated with
    a floating IP; which will fail the current check in the floating IPs
    table to attempt to resolve an instance details URL.

    This patch updates the condition to actually check for the required variable.

    Change-Id: Ic5f78525ba41d47c1a548aeab73933f962343ebd
    Closes-bug: 1645683
    (cherry picked from commit c1873ea4d9dbe907c3316c24b03db0eb9ea6f694)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 11.0.0.0b3

This issue was fixed in the openstack/horizon 11.0.0.0b3 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 10.0.2

This issue was fixed in the openstack/horizon 10.0.2 release.

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.