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
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?
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): python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py", line 403, in handler_ trap_exception python2. 7/dist- packages/ vnc_cfg_ api_server/ gen/vnc_ api_server_ gen.py" , line 15179, in virtual_ network_ http_put common( request, 'virtual_network', id, fq_name, obj_dict) python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py", line 1093, in _http_put_common python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py", line 1002, in config_object_error
File "/usr/lib/
return handler(*args, **kwargs)
File "/usr/lib/
(ok, result) = self._put_
File "/usr/lib/
obj_uuid, fq_name_str, obj_type, 'put', log_msg)
File "/usr/lib/
if object_type is not None:
NameError: global name 'object_type' is not defined
Traceback (most recent call last): python2. 7/dist- packages/ bottle. py", line 764, in _handle python2. 7/dist- packages/ bottle. py", line 1575, in wrapper python2. 7/dist- packages/ vnc_cfg_ api_server/ vnc_cfg_ api_server. py", line 416, in handler_ trap_exception network/ 026fd53c- 6fa2-49b6- 86fa-76034d9452 b1 HTTP/1.1" 500 156 0.008587
File "/usr/lib/
return route.call(**args)
File "/usr/lib/
rv = callback(*a, **ka)
File "/usr/lib/
raise e
NameError: global name 'object_type' is not defined
5.5.5.12 - - [2014-08-31 00:36:36] "PUT /virtual-
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?