Comment 6 for bug 1363584

Revision history for this message
Prakash Bailkeri (prakashmb) wrote :

From the api server logs on the setup: I see repeated error log while attaching the policy to virtual network:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 403, in handler_trap_exception
    return handler(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/gen/vnc_api_server_gen.py", line 15179, in virtual_network_http_put
    (ok, result) = self._put_common(request, 'virtual_network', id, fq_name, obj_dict)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1093, in _http_put_common
    obj_uuid, fq_name_str, obj_type, 'put', log_msg)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 1002, in config_object_error
    if object_type is not None:
NameError: global name 'object_type' is not defined

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 764, in _handle
    return route.call(**args)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1575, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py", line 416, in handler_trap_exception
    raise e
NameError: global name 'object_type' is not defined
5.5.5.12 - - [2014-08-31 00:36:36] "PUT /virtual-network/026fd53c-6fa2-49b6-86fa-76034d9452b1 HTTP/1.1" 500 156 0.008587

This error is fixed in R1.1 (https://github.com/Juniper/contrail-controller/commit/7ca465bfa483)

Regarding the error in comment #5, (network_policys_http_post), can be related to the size of json body(MEMFILE_MAX = 102400). Do you have more number of rules in the policy?