Symptoms:
HTTP Status 400 – Bad Request
"Request header is too large
" error:This issue is caused by default value for http header size limited to 8KB.
This is a known issue affecting VMware NSX and it is resolved in NSX 4.2.
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