Title: transport_node_certificate_is_about_to_expire
Event ID: transport_node_certificate_is_about_to_expire
Alarm Description
VMware NSX
For NSX versions from 4.1.0 through to 4.2.0 inclusive:
Check the connection status of the Transport Node on the NSX UI: System -> Fabric -> Hosts/Nodes
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:
root user.cat /dev/null > /etc/vmware/nsx/host-cert.pem
cat /dev/null > /etc/vmware/nsx/host-privkey.pemFor NSX 4.1.x versions prior to 4.1.2.5:
cat /etc/vmware/nsx/openssl-proxy.cnf > /tmp/tmp-openssl-proxy.cnfecho "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.cnf-days parameter specifies 3650 days/10 years validity):openssl 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_extFor NSX 4.1.2.5 and higher:
nsx-proxy creates the new cert-key pair: /etc/init.d/nsx-proxy restart 4. Identify NSX Manager thumbprint by logging into the NSX Manager as admin: get certificate api thumbprint
5. To push the new cert-key pair to the Manager, from the root user on the Host or Edge, run:
Edge: su admin -c "push host-certificate <Manager hostname-or-IP> username admin thumbprint <thumbprint from step 4>"
Host: nsxcli -c "push host-certificate <Manager hostname-or-IP> username admin thumbprint <thumbprint from step 4>"
Note: If the Host/Edge remains disconnected after following above steps, issuing the following command on the transport node may show all NSX managers are standby:
nsxcli > get managers
- <NSX-manager-1-IP> Standby (NSX-RPC)- <NSX-manager-2-IP> Standby (NSX-RPC)- <NSX-manager-3-IP> Standby (NSX-RPC)
In this case, follow the resolution steps mentioned in KB: Host and Edge Transport Nodes disconnected from NSX UI after NSX managers were restored from backup