On icehouse, Creating a floatingip with port-id failing during tempest tests

Bug #1375955 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
High
Atul Moghe
Trunk
Fix Committed
High
Atul Moghe

Bug Description

R1.10 44 Centos 6.5 Icehouse multi-node setup

http://anamika.englab.juniper.net:8080/job/Contrail_Tempest/216/testReport/tempest.api.network.test_floating_ips/FloatingIPTestJSON/test_create_floating_ip_specifying_a_fixed_ip_address_gate_smoke_/

This test creates a floating ip from a public network with port-id attached to it..
Router:external is set on the public network

[root@nodei34 contrail_install_repo]# neutron -v floatingip-create --port-id 6f2d78b4-0e36-4534-aa7a-911a8ebb0a61 a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77
DEBUG: neutronclient.neutron.v2_0.floatingip.CreateFloatingIP get_data(Namespace(columns=[], fixed_ip_address=None, floating_network_id=u'a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77', formatter='table', port_id=u'6f2d78b4-0e36-4534-aa7a-911a8ebb0a61', prefix='', request_format='json', tenant_id=None, variables=[]))
DEBUG: neutronclient.client
REQ: curl -i http://10.204.217.146:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"auth": {"tenantName": "FloatingIPTestJSON-738612665", "passwordCredentials": {"username": "FloatingIPTestJSON-1452630742", "password": "pass"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Tue, 30 Sep 2014 15:54:22 GMT', 'vary': 'X-Auth-Token', 'content-length': '6316', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2014-09-30T15:54:22.423367", "expires": "2014-09-30T16:54:22Z", "id": "<token>", "tenant": {"description": "FloatingIPTestJSON-738612665-desc", "enabled": true, "id": "5fdcaabe9a8c4e82bcf4415281ef3faa", "name": "FloatingIPTestJSON-738612665"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.204.217.146:8774/v1.1/5fdcaabe9a8c4e82bcf4415281ef3faa", "region": "RegionOne", "internalURL": "http://10.204.217.146:8774/v1.1/5fdcaabe9a8c4e82bcf4415281ef3faa", "id": "432474da5f62425cb92f1549d3d61c65", "publicURL": "http://10.204.217.146:8774/v1.1/5fdcaabe9a8c4e82bcf4415281ef3faa"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.204.217.147:9696", "region": "RegionOne", "internalURL": "http://10.204.217.147:9696", "id": "16dc23301af24b9880c8b0e8ddc7d8bd", "publicURL": "http://10.204.217.147:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://localhost:9292/v1", "region": "RegionOne", "internalURL": "http://localhost:9292/v1", "id": "61215b8c1e93497ea4729b1a6c95ef9b", "publicURL": "http://localhost:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://localhost:8776/v1/5fdcaabe9a8c4e82bcf4415281ef3faa", "region": "RegionOne", "internalURL": "http://localhost:8776/v1/5fdcaabe9a8c4e82bcf4415281ef3faa", "id": "a05f11f1af9640519b5023c43788016d", "publicURL": "http://localhost:8776/v1/5fdcaabe9a8c4e82bcf4415281ef3faa"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://localhost:8773/services/Admin", "region": "RegionOne", "internalURL": "http://localhost:8773/services/Cloud", "id": "996ec9ddf1974d5abec9e85c1c35acd2", "publicURL": "http://localhost:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://10.204.217.146:35357/v2.0", "region": "RegionOne", "internalURL": "http://10.204.217.146:35357/v2.0", "id": "2b98fd827c4d48c5a1c4c7fcc82363d4", "publicURL": "http://10.204.217.146:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "FloatingIPTestJSON-1452630742", "roles_links": [], "id": "2f543667512c4aefad982d29fc89d88c", "roles": [{"name": "_member_"}], "name": "FloatingIPTestJSON-1452630742"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab"]}}}

DEBUG: neutronclient.client
REQ: curl -i http://10.204.217.147:9696/v2.0/networks.json?fields=id&id=a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77 -X GET -H "X-Auth-Token: <token>" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"floatingip": {"floating_network_id": "a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77", "port_id": "6f2d78b4-0e36-4534-aa7a-911a8ebb0a61"}}'

DEBUG: neutronclient.client RESP:{'date': 'Tue, 30 Sep 2014 15:54:22 GMT', 'status': '400', 'content-length': '219', 'content-type': 'application/json; charset=UTF-8', 'x-openstack-request-id': 'req-9854ee11-4117-4335-b2ed-e044d54bd7fe'} {"NeutronError": {"message": "Internal error when trying to create floating ip. Please be sure the network a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77 is an external network.", "type": "ContrailBadRequestError", "detail": ""}}

DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "Internal error when trying to create floating ip. Please be sure the network a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77 is an external network.", "type": "ContrailBadRequestError", "detail": ""}}
ERROR: neutronclient.shell 400-{u'NeutronError': {u'message': u'Internal error when trying to create floating ip. Please be sure the network a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77 is an external network.', u'type': u'ContrailBadRequestError', u'detail': u''}}
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/neutronclient/shell.py", line 548, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.6/site-packages/neutronclient/shell.py", line 83, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/common/command.py", line 34, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/lib/python2.6/site-packages/cliff/display.py", line 84, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/common/command.py", line 40, in take_action
    return self.get_data(parsed_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/neutron/v2_0/__init__.py", line 419, in get_data
    data = obj_creator(body)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 111, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 455, in create_floatingip
    return self.post(self.floatingips_path, body=body)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1388, in post
    headers=headers, params=params)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1311, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1281, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 96, in exception_handler_v20
    message=msg)
NeutronClientException: 400-{u'NeutronError': {u'message': u'Internal error when trying to create floating ip. Please be sure the network a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77 is an external network.', u'type': u'ContrailBadRequestError', u'detail': u''}}
DEBUG: neutronclient.shell clean_up CreateFloatingIP
DEBUG: neutronclient.shell Got an error: 400-{u'NeutronError': {u'message': u'Internal error when trying to create floating ip. Please be sure the network a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77 is an external network.', u'type': u'ContrailBadRequestError', u'detail': u''}}
[root@nodei34 contrail_install_repo]#

[root@nodei34 contrail_install_repo]# neutron net-show public_net
+-------------------------+--------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+--------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| contrail:fq_name | default-domain |
| | admin |
| | public_net |
| contrail:instance_count | 0 |
| contrail:subnet_ipam | {"subnet_cidr": "10.204.219.72/29", "ipam_fq_name": ["default-domain", "default-project", "default-network-ipam"]} |
| id | a0bbf225-9a4b-4b47-88be-a3ce7a3a4e77 |
| name | public_net |
| router:external | True | <<<<
| shared | False |
| status | ACTIVE |
| subnets | c1ecc24a-7a6a-4738-9149-54587196ff0a |
| tenant_id | 4c4c44f1cb4d4d43b8a9684dd7e8c762 |
+-------------------------+--------------------------------------------------------------------------------------------------------------------+
[root@nodei34 contrail_install_repo]#

tags: added: blocker
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.