floatingip-create: fixed_ip_address and port_id not sent to server

Bug #1048081 reported by Salvatore Orlando
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Salvatore Orlando
python-neutronclient
Fix Released
Low
Salvatore Orlando

Bug Description

The CreateFloatingIP command defines an args2body function for building the body of the request to the quantum server.
However, this method adds only the floating_network_id parameter.

This causes commands to be sent without some keyword parameters the command supports, namely --port-id and --fixed-ip-address

The workaround is to use the command in the following way:

quantum floatingip-create <floating_network_id> -- --fixed_ip_address <address> --port_id <port_id> (note the underscores in the parameters names)

Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

Setting priority to medium as there is a workaround, that we need to document anyway.
Also, adding quantum as affected project for easier tracking.

Changed in quantum:
importance: Undecided → Medium
assignee: nobody → Salvatore Orlando (salvatore-orlando)
milestone: none → folsom-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-quantumclient (master)

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

Changed in python-quantumclient:
status: New → In Progress
dan wendlandt (danwent)
Changed in quantum:
importance: Medium → High
Changed in python-quantumclient:
importance: Medium → High
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

I can confirm that:

--port_id --fixed_ip_address are correctly sent to the server
--port-id --fixed-ip-address are not sent to the server

So:

1) quantum floatingip-create <ext_net_id> --port_id <port_id> Work fines
2) quantum floatingip-create <ext_net_id> --port-id <port_id> does not work

bug 1048140 is about the same issues, so it's been marked as a duplicate.

I'm reconsidering whether the currently proposed fix is good or not, but I reckon this bug can be downgraded to low now, as in the worst case we'll just document the issue.

(Feel free to raise the priority if you disagree)

Changed in quantum:
importance: High → Low
Changed in python-quantumclient:
importance: High → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-quantumclient (master)

Reviewed: https://review.openstack.org/12662
Committed: http://github.com/openstack/python-quantumclient/commit/2dd97991dff0831689fdad29d2ff2b942bf75ae9
Submitter: Jenkins
Branch: master

commit 2dd97991dff0831689fdad29d2ff2b942bf75ae9
Author: Salvatore Orlando <email address hidden>
Date: Sat Sep 8 18:11:14 2012 -0700

    Send all options with CreateFloatingIP

    Fix Bug 1048081

    Change-Id: I87a66e80a42304508e3e9bc3afbe275b41918404

Changed in python-quantumclient:
status: In Progress → Fix Committed
dan wendlandt (danwent)
Changed in quantum:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-rc1 → 2012.2
Changed in python-quantumclient:
milestone: none → 2.1
Akihiro Motoki (amotoki)
Changed in python-quantumclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.