Request too large ERROR during config operations - ganeshahv/Contrail_SRE GitHub Wiki

PROBLEM

Traceback (most recent call last):
  File "/opt/contrail/fabric_ansible_playbooks/filter_plugins/fabric.py", line 485, in onboard_brownfield_fabric
    vnc_api, fabric_info, job_template_fqname
  File "/opt/contrail/fabric_ansible_playbooks/filter_plugins/fabric.py", line 596, in _onboard_fabric
    True
  File "/opt/contrail/fabric_ansible_playbooks/filter_plugins/fabric.py", line 1134, in _add_fabric_vn
    ipam = self._add_network_ipam(vnc_api, ipam_name, subnets, subnetting)
  File "/opt/contrail/fabric_ansible_playbooks/filter_plugins/fabric.py", line 1102, in _add_network_ipam
    vnc_api.network_ipam_create(ipam)
  File "/usr/lib/python2.7/site-packages/vnc_api/vnc_api.py", line 57, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vnc_api/vnc_api.py", line 630, in _object_create
    OP_POST, obj_cls.create_uri, data=json_body)
  File "/usr/lib/python2.7/site-packages/vnc_api/vnc_api.py", line 1072, in _request_server
    retry_after_authn=retry_after_authn, retry_count=retry_count)
  File "/usr/lib/python2.7/site-packages/vnc_api/vnc_api.py", line 1133, in _request
    raise RequestSizeError(content)

CAUSE

Currently the API server has a limitation on the request size. We need to configure the API server to allow bigger request and hence increase the max request size.

WORKAROUND

1. go to config api docker
2. In entrypoint.sh
3. add max_request_size=10240000
4. restart docker