not able to create vn through contrail-api

Bug #1604523 reported by aswani kumar
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Sachin Bansal
R3.1
Fix Committed
High
Sachin Bansal

Bug Description

using kilo 3.1 build 2
I tried to create vn through contrail-api got the following errors

Traceback (most recent call last):
  File "/contrail-test-local/fixtures/quantum_test.py", line 482, in get_subnets_of_vn
    subnets.append(self.obj.show_subnet(subnet_id)['subnet'])
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 563, in show_subnet
    return self.get(self.subnet_path % (subnet), params=_params)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 290, in get
    headers=headers, params=params)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 267, in retry_request
    headers=headers, params=params)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 80, in exception_handler_v20
    message=message)
NeutronClientException: 404 Not Found

The resource could not be found

The below was the traceback in contrail-api log

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 2236, in ref_update_http_post
    self._extension_mgrs['resourceApi'].map_method(post_func, obj_uuid, obj_dict, read_result)
  File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 251, in map_method
    method_name, *args, **kwds)
  File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 224, in map
    self._invoke_one_plugin(response.append, func, e, args, kwds)
  File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 255, in _invoke_one_plugin
    response_callback(func(e, *args, **kwds))
  File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 229, in _call_extension_method
    return getattr(extension.obj, method_name)(*args, **kwds)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 805, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/__init__.py", line 923, in post_virtual_network_update
    self._vnc_lib.kv_store(new_subnets[subnet], subnet)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 39, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 985, in kv_store
    self._request_server(rest.OP_POST, uri, data=json_body)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 706, in _request_server
    retry_count=retry_count)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 769, in _request
    raise HttpError(status, content)
HttpError: HTTP Status: 500 Content: Internal Server Error

__default__ [SYS_WARN]: VncApiError: It is not recommended to use 'get' or 'multiget' pycassa methods. It's better to use 'xget' or 'get_range' methods due to thrift limitations
07/19/2016 07:12:42 PM [contrail-api]: __default__ [SYS_WARN]: VncApiError: It is not recommended to use 'get' or 'multiget' pycassa methods. It's better to use 'xget' or 'get_range' methods due to thrift limitations
07/19/2016 07:12:42 PM [contrail-api]: __default__ [SYS_WARN]: VncApiError: It is not recommended to use 'get' or 'multiget' pycassa methods. It's better to use 'xget' or 'get_range' methods due to thrift limitations
07/19/2016 07:12:42 PM [contrail-api]: __default__ [SYS_WARN]: VncApiError: It is not recommended to use 'get' or 'multiget' pycassa methods. It's better to use 'xget' or 'get_range' methods due to thrift limitations
07/19/2016 07:12:42 PM [contrail-api]: SANDESH: Ratelimit Drop (100 messages/sec): for VncApiError

Revision history for this message
aswani kumar (aswanikumar90) wrote :
description: updated
Changed in juniperopenstack:
assignee: nobody → Hampapur Ajay (hajay)
tags: added: blocker config sanity
Changed in juniperopenstack:
importance: Undecided → High
assignee: Hampapur Ajay (hajay) → Sachin Bansal (sbansal)
Revision history for this message
Sachin Bansal (sbansal) wrote :

Fix committed with commit id 8b90cf3fbbcf2d3bdff360744558e06a7fe90de7 in controller repo

Changed in juniperopenstack:
status: New → Fix Committed
information type: Proprietary → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.