Title: Alarm for transport_node_certificate_expired
Event ID: transport_node_certificate_expired
Alarm Description
Purpose: Notify User that Transport Node Certificate has expired.
Impact: Transport Nodes, Hosts and Edges, can disconnect from the Managers and cannot be connected back, MPA Disconnected state.
Cause: Transport Node Certificate has expired.
Warning: This alarm must be addressed as soon as possible. Once the TN certificate expires, there is a grace period of 24 hours after which all impacted Edges and Hosts will be disconnected from NSX.
VMware NSX 4.1.x, 4.2.x
Manual intervention is required for any node originally deployed on 4.1.x/4.2.0.
For NSX versions from 4.1.0 through to 4.2.0 inclusive:
Note:
openssl x509 -enddate -noout -in /etc/vmware/nsx/host-cert.pem.Transport Node has an expired or expiring certificate but is still connected to NSX:
Transport Node certificate has expired and TN is in a disconnected state in NSX:
cat /dev/null > /etc/vmware/nsx/host-cert.pemcat /dev/null > /etc/vmware/nsx/host-privkey.pemGenerate a new self-signed TN certificate and key:
For NSX 4.1.2.5 and higher, restarting the nsx-proxy service creates the new cert-key pair:(Move to Step 4 post this):/etc/init.d/nsx-proxy restart
For NSX 4.1.x versions prior to 4.1.2.5:
cat /etc/vmware/nsx/openssl-proxy.cnf > /tmp/tmp-openssl-proxy.cnf echo "UID = $(grep -o '<uuid>[^<]*' /etc/vmware/nsx/host-cfg.xml | sed 's/<uuid>//')" >> /tmp/tmp-openssl-proxy.cnfecho -e "[ req_ext ]\nbasicConstraints = CA:FALSE\nextendedKeyUsage = clientAuth\nsubjectKeyIdentifier = hash\nauthorityKeyIdentifier = keyid,issuer" >> /tmp/tmp-openssl-proxy.cnfopenssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -keyout /etc/vmware/nsx/host-privkey.pem -out /etc/vmware/nsx/host-cert.pem -config /tmp/tmp-openssl-proxy.cnf -extensions req_extget certificate api thumbprintsu admin -c push host-certificate <Manager hostname-or-IP> username admin thumbprint <thumbprint from step 4>su admin -c sync-aph-certificates <Manager hostname-or-IP> username admin thumbprint <thumbprint from step 4>nsxcli -c push host-certificate <Manager hostname-or-IP> username admin thumbprint <thumbprint from step 4>nsxcli -c sync-aph-certificates <Manager hostname-or-IP> username admin thumbprint <thumbprint from step 4>System-->Fabric-->Hosts and resolve the alarm by selecting the host disconnected link./etc/init.d/nsx-proxy restart/etc/init.d/nsx-opsagent-appliance restart/etc/init.d/nsx-proxy restart/etc/init.d/nsx-opsagent restart