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.

Bash
Copy

Resolution

  1. Scale the pf9-addon-operator deployment replica to 0.
Command
Copy
  1. Edit the pf9-addon-operator deployment and make the below changes in the pf9-addon-operator deployment.
Add the following environments variable for pf9-addon-operator container
Copy

Example:

  • Edit the pf9-addon-operator deployment:
Edit Deployment
Copy
  • After modification, the changed spec content in spec.template should look like
Changed Spec
Copy
  1. On all the master nodes part of the cluster, edit file /opt/pf9/pf9-kube/conf/addons/pf9-addon-operator/pf9-addon-operator-deployment.yaml and 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 thepf9-addon-operator-deployment.yaml file.
Edit File
Copy

- After modification, the changes should look like:

Changed Spec
Copy
  1. Scale the pf9-addon-operator deployment replica back to 1.
Command
Copy
  1. Check the status of the new pf9-addon-operator pod replica.

Additional Information

The issue is fixed starting 5.3 LTS Patch #10 & Patch #12 onwards.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard