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
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 ------- ------- ----+-- ------- ------- ------- ------- ------- -+ ------- ------- ----+-- ------- ------- ------- ------- ------- -+ gateway_ info | | 0d84-4cfe- 927f-39a580e665 c7 | 4a0ce683244fb61 58 | ------- ------- ----+-- ------- ------- ------- ------- ------- -+ ------- ------- ------- ------- ---- ------- ------- ------- ------- -- ------- ------- ------- ------- config- openstack 1.10main-2273 2273 /bugs.launchpad .net/bugs/ 1348909 anamika. englab. juniper. net:8080/ job/ubuntu- 12-04_havana_ Single_ node 153/testReport/ tempest. api.network. test_ports/ PortsTestJSON/ test_ filter_ by_router_ id_gate_ smoke_/ :test_port_ list_filter_ by_router_ id): 201 POST 10.204. 216.36: 9696/v2. 0/networks 1.249s :test_port_ list_filter_ by_router_ id): 201 POST 10.204. 216.36: 9696/v2. 0/subnets 2.751s :test_port_ list_filter_ by_router_ id): 500 POST 10.204. 216.36: 9696/v2. 0/routers 0.618s ubuntu/ jenkins/ workspace/ ubuntu- 12-04_havana_ Single_ node_Tempest/ te api/network/ test_ports. py", line 120, in list_filter_ by_router_ id router( data_utils. rand_name( 'router- ')) ubuntu/ jenkins/ workspace/ ubuntu- 12-04_havana_ Single_ node_Tempest/ te api/network/ base.py" , line 212, in create_router up=admin_ state_up) ubuntu/ jenkins/ workspace/ ubuntu- 12-04_havana_ Single_ node_Tempest/ te services/ network/ json/network_ client. py", line 71, in create_router ubuntu/ jenkins/ workspace/ ubuntu- 12-04_havana_ Single_ node_Tempest/ te services/ network/ network_ client_ base.py" , line 71, in post client. post(uri, body, headers) ubuntu/ jenkins/ workspace/ ubuntu- 12-04_havana_ Single_ node_Tempest/ te common/ rest_client. py", line 209, in post 'POST', url, extra_headers, headers, body) ubuntu/ jenkins/ workspace/ ubuntu- 12-04_havana_ Single_ node_Tempest/ te common/ rest_client. py", line 419, in request ubuntu/ jenkins/ workspace/ ubuntu- 12-04_havana_ Single_ node_Tempest/ te common/ rest_client. py", line 515, in _error_checker ServerFault( message) api.v2. resource] create failed python2. 7/dist- packages/ neutron/ api/v2/ resource. py", request= request, **args) python2. 7/dist- packages/ neutron/ api/v2/ base.py" , line python2. 7/dist- packages/ neutron/ quota.py" , line 277, python2. 7/dist- packages/ neutron/ quota.py" , line 321, getter( context, filters= {'tenant_ id': [tenant_id]}) lib/python2. 7/dist- packages/ neutron_ plugin_ contrail/ plugins/ opencont plugin_ core.py" , line 573, in get_routers_count count[' count'] /bugs.launchpad .net/juniperope nstack/ +bug/1348909/ +subscriptions
>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_
>| id | e106ad89-
>| name | r1 |
>| status | ACTIVE |
>| tenant_id | 8b70a1dc1a784df
>+-----
>root@a6s21:~# contrail-version
>Package Version
>Build-ID | Repo | Package Name
>------
>------
>contrail-analytics 1.10main-2273 2273
>contrail-config 1.10main-2273 2273
>contrail-
>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:/
>
>Title:
> [Tempest] Creating a router failed
>
>Status in Juniper Openstack distribution:
> New
>
>Bug description:
> Build : 1.10 2273
>
>
>http://
>_Tempest/
>port_list_
>
> _StringException: Empty attachments:
> stderr
> stdout
>
> pythonlogging:'': {{{
> 2014-07-26 03:19:57,412 Request
>(PortsTestJSON
>http://
> 2014-07-26 03:20:00,167 Request
>(PortsTestJSON
>http://
> 2014-07-26 03:20:00,789 Request
>(PortsTestJSON
>http://
> }}}
>
> Traceback (most recent call last):
> File
>"/home/
>mpest/
>test_port_
> router = self.create_
> File
>"/home/
>mpest/
> admin_state_
> File
>"/home/
>mpest/
> resp, body = self.post(uri, body)
> File
>"/home/
>mpest/
> return self.rest_
> File
>"/home/
>mpest/
> return self.request(
> File
>"/home/
>mpest/
> resp, resp_body)
> File
>"/home/
>mpest/
> raise exceptions.
> 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.
> Traceback (most recent call last):
> File "/usr/lib/
>line 84, in resource
> result = method(
> File "/usr/lib/
>362, in create
> tenant_id)
> File "/usr/lib/
>in count
> return res.count(context, *args, **kwargs)
> File "/usr/lib/
>in _count_resource
> return obj_count_
> File
>"/usr/
>rail/contrail_
> return routers_
> TypeError: string indices must be integers, not str
>
>To manage notifications about this bug go to:
>https:/