HTTP Status 400 – Bad Request
"Request header is too large
" error:/var/log/site-manager/tanuki.log
INFO | jvm 1 | 2024/03/15 09:18:22 | Mar 15, 2024 8:18:22 AM org.apache.coyote.http11.Http11Processor service
INFO | jvm 1 | 2024/03/15 09:18:22 | INFO: Error parsing HTTP request header
INFO | jvm 1 | 2024/03/15 09:18:22 | Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
INFO | jvm 1 | 2024/03/15 09:18:22 | java.lang.IllegalArgumentException: Request header is too large
INFO | jvm 1 | 2024/03/15 09:18:22 | at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:770)
INFO | jvm 1 | 2024/03/15 09:18:22 | at org.apache.coyote.http11.Http11InputBuffer.parseHeader(Http11InputBuffer.java:953)
This issue is caused by default value for http header size limited to 8KB.
This issue is resolved in VMware NSX 4.2 available at Broadcom downloads.
If you are having difficulty finding and downloading software, please review the Download Broadcom products and software KB.
Workaround
Workaround is to increase the header size to 32KB.
The workaround below needs to be implemented on all NSX Managers in the cluster:
echo 'server.port=7999
server.address=127.0.0.1
server.tomcat.accesslog.enabled=true
server.tomcat.accesslog.condition-unless=NO_LOG
server.tomcat.accesslog.directory=/var/log/site-manager
server.tomcat.accesslog.pattern=%{yyyy-MM-dd'T'HH:mm:ss.SSS'Z'}t %a %u "%r" %s %b %D %F
server.tomcat.accesslog.max-days=7
server.tomcat.accesslog.suffix=.log
server.tomcat.accesslog.prefix=access_log
server.tomcat.accesslog.file-date-format=
server.max-http-header-size=32768' > application.properties
chmod 755 application.properties
chown nsx-replicator:nsx-replicator application.properties
cp /usr/tanuki/conf/site-manager-service-wrapper.conf /usr/tanuki/conf/site-manager-service-wrapper.conf.bak
sed -i '/wrapper.java.additional.30/d' /usr/tanuki/conf/site-manager-service-wrapper.conf
sed -i '/wrapper.java.additional.29/a wrapper.java.additional.30=-Dspring.config.location=/opt/vmware/site-manager/conf/application.properties' /usr/tanuki/conf/site-manager-service-wrapper.conf
/etc/init.d/site-manager-service restart
Please note: The workaround will be removed during the upgrade. Once the Manager is upgraded to a version which doesn't have a fix (NSX 4.0.x.x or 4.1.x.x), this workaround will need to be implemented again.
A similar issue for cluster status show "unavailable" is also caused by the default HTTP header size, please follow this KB for a workaround: https://knowledge.broadcom.com/external/article?articleNumber=322435