Incorrect message: "Error: Failed to delete subnet" when deleting port

Bug #1251314 reported by Julie Pichon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Thomas Stenberg

Bug Description

When trying to delete a port that is in use, Horizon shows the message "Failed to delete subnet <id>".

Using the command-line, Neutron shows the following error:

409-{u'NeutronError': {u'message': u'Port <id> has owner network:router_interface and therefore cannot be deleted directly via the port API.', u'type': u'L3PortInUse', u'detail': u''}}

We should fix the message. It looks like it's just a typo: https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/admin/networks/ports/tables.py#L41

To reproduce:
- Create a network and subnet
- Create a router
- Go to the router's detail and add an interface to the previously created subnet
- In the admin dashboard, go to Networks -> <that new network> -> Ports and try to delete the router

Changed in horizon:
assignee: nobody → Zhenguo Niu (niu-zglinux)
Changed in horizon:
status: New → Confirmed
Changed in horizon:
assignee: Zhenguo Niu (niu-zglinux) → nobody
description: updated
Changed in horizon:
assignee: nobody → Thomas Stenberg (thomas-stenberg)
Changed in horizon:
status: Confirmed → In Progress
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/58781

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Matthias Runge (mrunge)
tags: added: havana-backport-potential
Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
Julie Pichon (jpichon) wrote :

The status will be automatically updated when the patch is merged into the repository, please do not update it yourself before this has happened. Thank you.

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

Reviewed: https://review.openstack.org/59002
Committed: http://github.com/openstack/horizon/commit/059b75625c4f0b022047c0b5996eeee5df2194d4
Submitter: Jenkins
Branch: master

commit 059b75625c4f0b022047c0b5996eeee5df2194d4
Author: Thomas Stenberg <email address hidden>
Date: Thu Nov 28 13:28:31 2013 +0100

    Corrected incorrect message when deleting port.

    Updated the file /horizon/openstack_dashboard/dashboards/admin/
    networks/ports/tables.py so it will give the correct error message
    when trying to delete a port that is in use.This updated error
    message will give the same information as when using the command-line.

    Change-Id: I62c0fb1c5b9b073c0d083bddc45133d502b554be
    Closes-Bug: #1251314

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-2 → 2014.1
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.