R5.0-214: policy creation with 1500 rules fails with error "Request to large"
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
New
|
High
|
alok kumar | |||
Trunk |
New
|
High
|
alok kumar |
Bug Description
Network policy creation with 1500 rules fails with below error in contrail-api.log:
09/25/2018 12:52:26 PM [contrail-api] [ERROR]: __default__ [SYS_ERR]: VncApiError: <pre>Traceback (most recent call last):
File "/usr/lib/
response = handler(*args, **kwargs)
File "/usr/lib/
response = func(api_
File "/usr/lib/
obj_dict = get_request(
File "/usr/lib/
if key not in storage: storage[key] = self.getter(obj)
File "/usr/lib/
b = self._get_
File "/usr/lib/
raise HTTPError(413, 'Request to large')
HTTPError
</pre>
exeception seen while debugging in pdb session as:
(Pdb) policy_objs_list = policy_
2018-09-25 12:52:26,050 - ERROR - Exception
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</head>
<body>
</body>
</html>
occured while creating 1 policy with 1434 rules
*** AssertionError: Exception occured while creating 1 policy with 1434 rules
while debugging it was seen that, policy with 1433 rules went through fine but fails with 1434 onwards.
This is causing test case test_one_
test details:
- test tries to create policy with 1502 rules and then validates simple ping test.
- 2 rules are added to allow icmp and udp traffic and rest of the rules are deny rules with diff. src/dst ports.
sample deny rule(total 1500):
{
}
allow rules:
{
},
{
}
contrail logs from one of the controller will be copied at /cs-shared/
Recently a bottle request check was introduced. contrail- api.conf
Can you try enabling the following line from etc/contrail/
# max_request_size = 1024000