AddOn Operator Pod Restarting due to Error "Use SANs or Temporarily Enable Common Name Matching with GODEBUG=x509ignoreCN=0"
Problem
AddOn Operator Pod Restarting due to Error "Use SANs or Temporarily Enable Common Name Matching with GODEBUG=x509ignoreCN=0"
Environment
Platform9 Edge Cloud - 5.3 LTS Patch #6 and Below
AddOn Operator
Cause
AddOn operator certificate generation is using CN instead of SAN.
Resolution
Scale the
pf9-addon-operatordeployment replica to 0.
Edit the
pf9-addon-operatordeployment and make the below changes in the pf9-addon-operator deployment.
Example:
Edit the
pf9-addon-operatordeployment:
After modification, the changed spec content in spec.template should look like
On all the master nodes part of the cluster, edit file
/opt/pf9/pf9-kube/conf/addons/pf9-addon-operator/pf9-addon-operator-deployment.yamland add the changes made similar to the deployment object above to this file. These changes made to pf9-addon-operator-deployment.yaml file will ensure that the env vars are persisted when the stack restarts.Edit the
pf9-addon-operator-deployment.yamlfile.
- After modification, the changes should look like:
Scale the pf9-addon-operator deployment replica back to 1.
Check the status of the new
pf9-addon-operatorpod replica.
Additional Information
The issue is fixed starting 5.3 LTS Patch #10 & Patch #12 onwards.
