← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1251314] Re: Incorrect message: "Error: Failed to delete subnet" when deleting port

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

** Changed in: horizon
    Milestone: None => icehouse-2

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

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

Status in OpenStack Dashboard (Horizon):
  Fix Released

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

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