How to Regenerate Hostagent Certificates of Nodes in SMCP
Problem
Hostagent certificates of nodes in the workload cluster expired or near expiry.
Environment
Self Managed Cloud Platform - v5.10.0-3248001 and Higher
Hostagent Certificates.
Cause
Platform9 has identified this as a known bug with ID: AIR-1503.
Refer the Workaround section to renew the certificates.
Diagnostics
Check for
pf9-commsservice logs located at/var/log/pf9/comms/comms.logon the affected node/s.
[ERROR] [URL]-::1-8111-28 - TLS socket for client 93508 error: Error: 140582915938176:error:14094415:SSL routines:ssl3_read_bytes:sslv3 alert certificateCheck the
vouch-noauthpod logs in the relevant region namespace.
socat[7] E SSL_accept(): error:0A000086:SSL routines::certificate verify failedCheck hostagent certificate expiry.
Workaround
There are 2 scenarios for certificates
Certificates near expiration:
Check the hostagent certificate using the command in Diagnostics section.
Run the below script on node/s for which the hostagent certificate are expiring.
The script will renew the hostagent certificates automatically.
Certificates already expired:
Follow the below steps in order on ALL affected nodes.
Prerequisite: Ensure to export the admin.yaml kubeconfig on the nodes.
Read the current certificate subject/CN from the existing hostagent certificate. Identify the CN in this certificate. This CN is referred to as <OLD_CN> in the further steps.
Generate a new private key and CSR on the host using the same CN identified in Step 1.
Copy the CSR into the
vouch-noauthcontainer of thevouch-noauthpod in the relevant region namespace.Run the signing request from inside the
vouch-noauthpod against the local vouch endpoint. Use the same <OLD_CN> as identified in Step 1.Copy the signed response back to the host
Extract and place the new hostagent certificate on the node.
Copy the new private key into the hostagent key path and set the correct ownership.
Restart
pf9-commsandpf9-sidekick.
Validation
Check hostagent certificate expiry.
Additional Information
Reach out to Platform9 Support in case of any questions/concerns regarding this process.
This article will be updated in a timely manner with the new information on bug fix version and more.
Last updated
