Updating roles in Rancher UI fails with certificate error

This document (000020415) is provided subject to the disclaimer at the end of this document.

Environment

Rancher v2.5.x

Situation

Editing roles in Rancher UI fails with the below error.
Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s": x509: certificate has expired or is not yet valid: current time 2021-10-25T07:43:50Z is after 2021-10-06T20:20:47Z

 

Resolution

  • Set kubectl context to Rancher management cluster.
  • Take the backup of existing secret
kubectl get secret -n cattle-system cattle-webhook-tls -o yaml > cattle-webhook-tls.yaml
  • Delete the secret that contains expired certificate
kubectl delete secret -n cattle-system cattle-webhook-tls
  • Delete the rancher webhook Pod to regenerate the expired certificate.
kubectl delete pod -n cattle-system -l app=rancher-webhook

Cause

This issue is caused by the expired certificate of the rancher webhook.
 

Additional Information

The issue is tracked in GitHub issue 35068

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020415
  • Creation Date: 27-Oct-2021
  • Modified Date:05-Aug-2022
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center