Comment 2 for bug 1348909

Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote : Re: [Bug 1348909] Re: [Tempest] Creating a router failed

Sachin,
 I could create it manually as well. But when tempest created it in all of
its tests involving router, it consistently failed. I have not yet figured
out what is the difference.
Can you try using the tempest test itself to recreate ?

Vedu

On 7/28/14, 12:14 AM, "Sachin Bansal" <email address hidden> wrote:

>I am able to create router on the same build (see below). Let me access
>the setup on which you are seeing this.
>
>root@a6s21:~# neutron router-create r1
>Created a new router:
>+-----------------------+--------------------------------------+
>| Field | Value |
>+-----------------------+--------------------------------------+
>| admin_state_up | True |
>| external_gateway_info | |
>| id | e106ad89-0d84-4cfe-927f-39a580e665c7 |
>| name | r1 |
>| status | ACTIVE |
>| tenant_id | 8b70a1dc1a784df4a0ce683244fb6158 |
>+-----------------------+--------------------------------------+
>root@a6s21:~# contrail-version
>Package Version
>Build-ID | Repo | Package Name
>-------------------------------------- ------------------------------
>----------------------------------
>contrail-analytics 1.10main-2273 2273
>contrail-config 1.10main-2273 2273
>contrail-config-openstack 1.10main-2273 2273
>contrail-control 1.10main-2273 2273
>contrail-dns 1.10main-2273 2273
>
>--
>You received this bug notification because you are a member of Contrail
>Systems engineering, which is subscribed to Juniper Openstack.
>https://bugs.launchpad.net/bugs/1348909
>
>Title:
> [Tempest] Creating a router failed
>
>Status in Juniper Openstack distribution:
> New
>
>Bug description:
> Build : 1.10 2273
>
>
>http://anamika.englab.juniper.net:8080/job/ubuntu-12-04_havana_Single_node
>_Tempest/153/testReport/tempest.api.network.test_ports/PortsTestJSON/test_
>port_list_filter_by_router_id_gate_smoke_/
>
> _StringException: Empty attachments:
> stderr
> stdout
>
> pythonlogging:'': {{{
> 2014-07-26 03:19:57,412 Request
>(PortsTestJSON:test_port_list_filter_by_router_id): 201 POST
>http://10.204.216.36:9696/v2.0/networks 1.249s
> 2014-07-26 03:20:00,167 Request
>(PortsTestJSON:test_port_list_filter_by_router_id): 201 POST
>http://10.204.216.36:9696/v2.0/subnets 2.751s
> 2014-07-26 03:20:00,789 Request
>(PortsTestJSON:test_port_list_filter_by_router_id): 500 POST
>http://10.204.216.36:9696/v2.0/routers 0.618s
> }}}
>
> Traceback (most recent call last):
> File
>"/home/ubuntu/jenkins/workspace/ubuntu-12-04_havana_Single_node_Tempest/te
>mpest/api/network/test_ports.py", line 120, in
>test_port_list_filter_by_router_id
> router = self.create_router(data_utils.rand_name('router-'))
> File
>"/home/ubuntu/jenkins/workspace/ubuntu-12-04_havana_Single_node_Tempest/te
>mpest/api/network/base.py", line 212, in create_router
> admin_state_up=admin_state_up)
> File
>"/home/ubuntu/jenkins/workspace/ubuntu-12-04_havana_Single_node_Tempest/te
>mpest/services/network/json/network_client.py", line 71, in create_router
> resp, body = self.post(uri, body)
> File
>"/home/ubuntu/jenkins/workspace/ubuntu-12-04_havana_Single_node_Tempest/te
>mpest/services/network/network_client_base.py", line 71, in post
> return self.rest_client.post(uri, body, headers)
> File
>"/home/ubuntu/jenkins/workspace/ubuntu-12-04_havana_Single_node_Tempest/te
>mpest/common/rest_client.py", line 209, in post
> return self.request('POST', url, extra_headers, headers, body)
> File
>"/home/ubuntu/jenkins/workspace/ubuntu-12-04_havana_Single_node_Tempest/te
>mpest/common/rest_client.py", line 419, in request
> resp, resp_body)
> File
>"/home/ubuntu/jenkins/workspace/ubuntu-12-04_havana_Single_node_Tempest/te
>mpest/common/rest_client.py", line 515, in _error_checker
> raise exceptions.ServerFault(message)
> ServerFault: Got server fault
> Details: {"NeutronError": "Request Failed: internal server error while
>processing your request."}
>
>
> neutron log :
> ============
>
> 2014-07-26 16:09:45.73 ERROR [neutron.api.v2.resource] create failed
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py",
>line 84, in resource
> result = method(request=request, **args)
> File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line
>362, in create
> tenant_id)
> File "/usr/lib/python2.7/dist-packages/neutron/quota.py", line 277,
>in count
> return res.count(context, *args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/neutron/quota.py", line 321,
>in _count_resource
> return obj_count_getter(context, filters={'tenant_id': [tenant_id]})
> File
>"/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencont
>rail/contrail_plugin_core.py", line 573, in get_routers_count
> return routers_count['count']
> TypeError: string indices must be integers, not str
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/juniperopenstack/+bug/1348909/+subscriptions