Networking >Load Balancing
NSXTEdge01> get load-balancer <LB UUID> status
Internal Error: Query LB Engine Failed.
/var/log/syslog)
the following errors are seen:<timestamps> NSXTEdge01 NSX 859 - [nsx@6876 comp="nsx-edge" subcomp="agg-service" tid="3263" level="ERROR" errorCode="MPA13822"] [GetVServerStats] Failed to parse json: Missing required key uuidMissing required key virtual_servers
<timestamps> NSXTEdge01 - [nsx@6876 comp="nsx-edge" subcomp="agg-service" tid="3263" level="ERROR" errorCode="MPA13820"] [VServerStatsHandler] Cannot get stats for vserver with LBS: ########-####-####-################ VServer: ########-####-####-################
<timestamps> NSXTEdge01 NSX 31687 LB [nsx@6876 comp=“nsx-edge” subcomp=“nsx-edge-lb.lb” level=“ERROR”] “query nginx stats encountered an error: 7 b’’”
2021-07-13T06:32:30.915325+02:00 NSXTEdge01 NSX 18326 LOAD-BALANCER [nsx@6876 comp=“nsx-edge” subcomp=“lb” s2comp=“lb” level=“FATAL”] [########-####-####-################] PEM_read_bio_X509(“/config/vmware/edge/lb/etc/########-####-####-################/certs/client_ssl_########-####-####-################_########-####-####-################.crt”) failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line)
VMware NSX-T Data Center
Currently, there is no resolution.
Workaround:
The following workarounds will use this NSX-T Edge log error (/var/log/syslog
) as reference:
2021-07-13T06:32:30.915325+02:00 NSXTEdge01 NSX 18326 LOAD-BALANCER [nsx@6876 comp=“nsx-edge” subcomp=“lb” s2comp=“lb” level=“FATAL”] [########-####-####-################] PEM_read_bio_X509(“/config/vmware/edge/lb/etc/########-####-####-################/certs/client_ssl_########-####-####-################_########-####-####-################.crt”) failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line) Identify the Certificates NSX-T Edge is not able to read: failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line)
There are two ways to check the above:
If the number of Virtual Server and certificates on this Load-Balancer is important, this method is preferred.
cd /config/vmware/edge/lb/etc/<Load-Balancer ID>/certs/
less client_ssl_####-####_####.crt
"A good certificate will have the following format:
-----BEGIN CERTIFICATE----- -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- -----END CERTIFICATE-----
The certificate format causing this issue will be:
-----BEGIN CERTIFICATE----- -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- -----END CERTIFICATE----------BEGIN CERTIFICATE----- -----END CERTIFICATE-----
The above indicates the same certificate has been applied with a different name to the same Virtual Server.
The next steps needed are:
If the Virtual Server and Certificates causing this issue can be found easily, this method is preferred.
GET https://<policy-mgr>/policy/api/v1/infra/lb-virtual-server/<Virtual Server ID>
and gather the output.GET https://<nsx-mgr>/api/v1/loadbalancer/virtual-servers/####-####-####
and gather the output.