Failure of REST API call to disassociate a FIP which is not associated with any port

Bug #1771992 reported by Onong Tayeng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-vpp
Fix Released
Undecided
Onong Tayeng

Bug Description

Create a FIP but do not associate with any VM port.

Execute the REST API to disassociate the FIP with a null port_id param:

curl -s http://A.B.C.D:9696/v2.0/floatingips/2a6a1340-cd74-4fd0-9538-a864bd39beb4 -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: $OS_CREDS" -d '
{
    "floatingip": {
        "port_id": null
    }
}'

and it fails with:

{
    "NeutronError": {
        "detail": "",
        "message": "Port None could not be found.",
        "type": "PortNotFound"
    }
}

Onong Tayeng (onong)
Changed in networking-vpp:
assignee: nobody → Onong Tayeng (onong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-vpp (master)

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

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

Reviewed: https://review.openstack.org/569394
Committed: https://git.openstack.org/cgit/openstack/networking-vpp/commit/?id=507570943f01af6cb215493e4fa9ab099e6b0c78
Submitter: Zuul
Branch: master

commit 507570943f01af6cb215493e4fa9ab099e6b0c78
Author: Onong Tayeng <email address hidden>
Date: Fri May 18 17:07:06 2018 +0530

    Issue with FIP disassociation handling

    The REST API call to disassociate a FIP, which is not associated
    with any port, fails with the PortNotFound error.

    Change-Id: Ic702c08f6833a9836c7d638e4116b0717be5ab41
    Closes-Bug: #1771992

Changed in networking-vpp:
status: In Progress → Fix Released
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.