2016-05-18 18:32:27 |
Vinoth Kannan Ganapathy |
description |
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 |
+-------------------------+-----------------------------------------------------------------------------------------------------------------+ |
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 |
+-------------------------+-----------------------------------------------------------------------------------------------------------------+ |
|