Prompted information is not correct when delete a non-existing port

Bug #1203631 reported by Yang Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Yang Yu

Bug Description

Test Steps:
1. create a network
2. create a port with the network we created in step1
3. delete the port which created in step#2,
4. delete the port again:
http://9.12.17.71:9696/v2.0/ports/62995005-6f39-401e-9e80-0cf07b271bfe
DELETE action, return following error:
{
    "QuantumError": "Port 62995005-6f39-401e-9e80-0cf07b271bfe could not be found on network None"
}
5. I feel confused with "network None".

Expected result:
When delete an non-existing port, I think prompt "QuantumError": "Port 62995005-6f39-401e-9e80-0cf07b271bfe could not be found" is enough, or please pass the correct network name to the error message.

Tags: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
assignee: nobody → Yang Yu (yuyangbj)
status: New → In Progress
Changed in neutron:
importance: Undecided → Low
milestone: none → havana-3
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/38104
Committed: http://github.com/openstack/neutron/commit/88dc6ea2eb99aa184eec5873218f3ab491abbfd1
Submitter: Jenkins
Branch: master

commit 88dc6ea2eb99aa184eec5873218f3ab491abbfd1
Author: Yang Yu <email address hidden>
Date: Mon Jul 22 14:14:36 2013 +0800

    Prompted error message is not correct for PortNotFound

    When deleting a non-existing port, the error message would be
    "Port XXXX could not be found on network None" for some plugins.
    "network None" is not correct enough here.

    Fixes bug #1203631

    Change-Id: Ie5d1ec99a2726ff3fec07f83f83a12d24613ae57

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-3 → 2013.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.