floatingip-create ignores the given floating-ip-address

Bug #1583294 reported by Vinoth Kannan Ganapathy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
Medium
Ranjeet R
R2.22.x
Fix Committed
Medium
Ranjeet R
R3.0
Fix Committed
Medium
Ranjeet R
Trunk
Fix Committed
Medium
Ranjeet R

Bug Description

Build: contrail-install-packages 3.0.2.0-38~liberty 38

neutron floatingip-create command ignores floating-ip-address parameters and assign different floating ip address

root@b4s343:/usr/lib/python2.7/dist-packages/neutronclient/v2_0# neutron --debug floatingip-create --fixed-ip-address 12.23.34.3 --floating-ip-address 10.84.24.201 --port-id ea277fef-f5a3-40f7-956d-f2494ebb53b8 PublicNET
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://10.84.24.32:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] Content-Length: 337 Vary: X-Auth-Token X-Distribution: Ubuntu Connection: keep-alive Date: Wed, 18 May 2016 18:02:42 GMT Content-Type: application/json X-Openstack-Request-Id: req-f3573bd7-2b51-
4b8b-aa7c-b1bd5c523eef
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://10.84.24.32:5
000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG: neutronclient.neutron.v2_0.floatingip.CreateFloatingIP get_data(Namespace(columns=[], fixed_ip_address=u'12.23.34.3', floating_ip_address=u'10.84.24.201', floating_network_id=u'PublicNET', formatter='table', max_width=0, port_id=
u'ea277fef-f5a3-40f7-956d-f2494ebb53b8', prefix='', request_format='json', tenant_id=None, variables=[]))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://10.84.24.32:5000/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://10.84.24.33:9696/v2.0/networks.json?fields=id&name=PublicNET -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}63056740cebd2445bdd328a
241375bd42e67f411"
DEBUG: keystoneclient.session RESP: [200] Date: Wed, 18 May 2016 18:02:42 GMT Content-Length: 62 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-987a009b-ad5b-416d-8812-8c3f16d5b505
RESP BODY: {"networks": [{"id": "fda968f7-6488-41dd-a026-9e9e2b07acfe"}]}

DEBUG: keystoneclient.session REQ: curl -g -i -X POST http://10.84.24.33:9696/v2.0/floatingips.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}63056740
cebd2445bdd328a241375bd42e67f411" -d '{"floatingip": {"floating_network_id": "fda968f7-6488-41dd-a026-9e9e2b07acfe", "floating_ip_address": "10.84.24.201", "fixed_ip_address": "12.23.34.3", "port_id": "ea277fef-f5a3-40f7-956d-f2494ebb53
b8"}}'
DEBUG: keystoneclient.session RESP: [201] Date: Wed, 18 May 2016 18:02:42 GMT Content-Length: 335 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-f7a8852e-5524-4855-978e-5ed206ce9373
RESP BODY: {"floatingip": {"router_id": null, "status": "ACTIVE", "tenant_id": "58bfc0d13e1b4d66b218ffffc42e3938", "floating_network_id": "fda968f7-6488-41dd-a026-9e9e2b07acfe", "fixed_ip_address": "12.23.34.3", "floating_ip_address": "
10.84.24.3", "port_id": "ea277fef-f5a3-40f7-956d-f2494ebb53b8", "id": "94c24982-ee13-47ba-9f6d-bad7d62d57d9"}}

Created a new floatingip:
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| fixed_ip_address | 12.23.34.3 |
| floating_ip_address | 10.84.24.3 |
| floating_network_id | fda968f7-6488-41dd-a026-9e9e2b07acfe |
| id | 94c24982-ee13-47ba-9f6d-bad7d62d57d9 |
| port_id | ea277fef-f5a3-40f7-956d-f2494ebb53b8 |
| router_id | |
| status | ACTIVE |
| tenant_id | 58bfc0d13e1b4d66b218ffffc42e3938 |
+---------------------+--------------------------------------+
root@b4s343:/usr/lib/python2.7/dist-packages/neutronclient/v2_0# neutron floatingip-list
+--------------------------------------+------------------+---------------------+--------------------------------------+
| id | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+--------------------------------------+
| 94c24982-ee13-47ba-9f6d-bad7d62d57d9 | 12.23.34.3 | 10.84.24.3 | ea277fef-f5a3-40f7-956d-f2494ebb53b8 |
+--------------------------------------+------------------+---------------------+--------------------------------------+

root@b4s343:/usr/lib/python2.7/dist-packages/neutronclient/v2_0# neutron net-show PublicNET
+-------------------------+-----------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+-----------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | PublicNET |
| contrail:instance_count | 0 |
| contrail:subnet_ipam | {"subnet_cidr": "10.84.24.0/24", "ipam_fq_name": ["default-domain", "default-project", "default-network-ipam"]} |
| id | fda968f7-6488-41dd-a026-9e9e2b07acfe |
| name | PublicNET |
| router:external | True |
| shared | False |
| status | ACTIVE |
| subnets | 147a93b1-be16-4d29-bf9d-b700893645d8 |
| tenant_id | 3e591fe90a174c62b21951ae44e69801 |
+-------------------------+-----------------------------------------------------------------------------------------------------------------+

Tags: neutronapi
description: updated
Jeba Paulaiyan (jebap)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/20486
Submitter: Ranjeet R (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.20

Review in progress for https://review.opencontrail.org/20530
Submitter: Ranjeet R (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/20531
Submitter: Ranjeet R (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/20532
Submitter: Ranjeet R (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/20530
Committed: http://github.org/Juniper/contrail-controller/commit/d436db88e1cace30d48d50f515ff35746c415d80
Submitter: Zuul
Branch: R2.20

commit d436db88e1cace30d48d50f515ff35746c415d80
Author: Ranjeet R <email address hidden>
Date: Mon May 23 10:13:00 2016 -0700

Fixes: floatingip-create ignores the given floating-ip-address

When the neutron request is parsed, the floating_ip_address is
missed out being passed to VNC.

Change is to parse for floating ip address and pass it to VNC.

Change-Id: Ib0e1660b6619eb44a2f8695447eb56788e159361
Closes-Bug: 1583294

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/20531
Committed: http://github.org/Juniper/contrail-controller/commit/89e775fd234944f06c0a806f76e910608bb032b9
Submitter: Zuul
Branch: R3.0

commit 89e775fd234944f06c0a806f76e910608bb032b9
Author: Ranjeet R <email address hidden>
Date: Mon May 23 10:11:07 2016 -0700

Fixes: floatingip-create ignores the given floating-ip-address

When the neutron request is parsed, the floating_ip_address is
missed out being passed to VNC.

Change is to parse for floating ip address and pass it to VNC.

Change-Id: Icc3a6d34eb387fbb90112270c777d51f21f94b94
Closes-Bug: 1583294

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/20486
Committed: http://github.org/Juniper/contrail-controller/commit/590fc476b2a39449af3e15cccc52b1c536dedd70
Submitter: Zuul
Branch: master

commit 590fc476b2a39449af3e15cccc52b1c536dedd70
Author: Ranjeet R <email address hidden>
Date: Fri May 20 17:48:53 2016 -0700

Fixes: floatingip-create ignores the given floating-ip-address

When the neutron request is parsed, the floating_ip_address is
missed out being passed to VNC.

Change is to parse for floating ip address and pass it to VNC.

Change-Id: If5f4869ede9b170e2b1ab7b47bdf3f77f470616e
Closes-Bug: 1583294

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/20532
Submitter: Sachin Bansal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/20532
Committed: http://github.org/Juniper/contrail-controller/commit/bea6c8277efaa9a94bb9ee443e43fa287d26d57b
Submitter: Zuul
Branch: R2.22.x

commit bea6c8277efaa9a94bb9ee443e43fa287d26d57b
Author: Ranjeet R <email address hidden>
Date: Mon May 23 10:16:22 2016 -0700

Fixes: floatingip-create ignores the given floating-ip-address

When the neutron request is parsed, the floating_ip_address is
missed out being passed to VNC.

Change is to parse for floating ip address and pass it to VNC.

Change-Id: I520a55d67823a7b93a3a704b9be68ad3186a6847
Closes-Bug: 1583294

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.