crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.26k stars 242 forks source link

[QE] certificate has expired or is not yet valid #4171

Open lsjshilly opened 6 months ago

lsjshilly commented 6 months ago

General information

CRC version

# Put `crc version` output here
4.8.12

CRC status

# Put `crc status --log-level debug` output here
$ oc logs  console-7f48bcc4fb-hjhwn -n openshift-console
W0521 03:40:12.226808       1 main.go:206] Flag inactivity-timeout is set to less then 300 seconds and will be ignored!
I0521 03:40:12.226876       1 main.go:278] cookies are secure!
E0521 03:40:12.243620       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:12Z is after 2024-01-05T12:01:35Z
E0521 03:40:22.248939       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:22Z is after 2024-01-05T12:01:35Z
E0521 03:40:32.255392       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:32Z is after 2024-01-05T12:01:35Z
E0521 03:40:42.263116       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:42Z is after 2024-01-05T12:01:35Z
E0521 03:40:52.269651       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:52Z is after 2024-01-05T12:01:35Z

CRC config

# Put `crc config view` output here

Host Operating System


Host Name:                 DESKTOP-F10TQ0P
OS Name:                   Microsoft Windows 11 专业版
OS Version:                10.0.22000 N/A Build 22000
OS Manufacturer:           Microsoft Corporation

Steps to reproduce

  1. Installing an Older Version of OpenShift Local (e.g., OpenShift 4.8/4.9) on Windows

Expected

The OpenShift console can run normally

Actual

The OpenShift console can run abnormal "The certificate under openshift-ingress namespace is expired."

Logs

 oc logs  console-7f48bcc4fb-hjhwn -n openshift-console
W0521 03:40:12.226808       1 main.go:206] Flag inactivity-timeout is set to less then 300 seconds and will be ignored!
I0521 03:40:12.226876       1 main.go:278] cookies are secure!
E0521 03:40:12.243620       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:12Z is after 2024-01-05T12:01:35Z
E0521 03:40:22.248939       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:22Z is after 2024-01-05T12:01:35Z
E0521 03:40:32.255392       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:32Z is after 2024-01-05T12:01:35Z
E0521 03:40:42.263116       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:42Z is after 2024-01-05T12:01:35Z
E0521 03:40:52.269651       1 auth.go:231] error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps-crc.testing/oauth/token failed: Head "https://oauth-openshift.apps-crc.testing": x509: certificate has expired or is not yet valid: current time 2024-05-21T03:40:52Z is after 2024-01-05T12:01:35Z
praveenkumar commented 5 months ago

@lsjshilly which version of crc? and also we usually support only latest version of crc since it is well tested.