etcd tests fail due to expired certificate
wadells opened this issue · 1 comments
wadells commented
Description
As seen at https://drone.platform.teleport.sh/gravitational/gravity/734/1/8
FAIL: etcd_test.go:114: ESuite.TearDownTest
etcd_test.go:120:
c.Assert(err, IsNil)
... value *trace.TraceErr =
ERROR REPORT:
Original Error: x509.CertificateInvalidError x509: certificate has expired or is not yet valid: current time 2022-09-20T21:16:32Z is after 2022-07-08T20:17:00Z
Stack Trace:
/gopath/src/github.com/gravitational/gravity/lib/storage/keyval/etcd_test.go:64 github.com/gravitational/gravity/lib/storage/keyval.(*tempBackend).Delete
/gopath/src/github.com/gravitational/gravity/lib/storage/keyval/etcd_test.go:116 github.com/gravitational/gravity/lib/storage/keyval.(*ESuite).TearDownTest
/go/src/reflect/value.go:543 reflect.Value.call
/go/src/reflect/value.go:339 reflect.Value.Call
/gopath/src/github.com/gravitational/gravity/vendor/gopkg.in/check.v1/check.go:730 gopkg.in/check%2ev1.(*suiteRunner).runFixture.func1
/gopath/src/github.com/gravitational/gravity/vendor/gopkg.in/check.v1/check.go:675 gopkg.in/check%2ev1.(*suiteRunner).forkCall.func1
/go/src/runtime/asm_amd64.s:1581 runtime.goexit
User Message: x509: certificate has expired or is not yet valid: current time 2022-09-20T21:16:32Z is after 2022-07-08T20:17:00Z ("x509: certificate has expired or is not yet valid: current time 2022-09-20T21:16:32Z is after 2022-07-08T20:17:00Z")
wadells commented
Looks like it was the CA expiring that did it:
walt@work:~/git/gravity/assets/certs$ openssl x509 -noout -dates -in ca.pem
notBefore=Jul 9 20:17:00 2017 GMT
notAfter=Jul 8 20:17:00 2022 GMT
walt@work:~/git/gravity/assets/certs$ ls *.pem | xargs -n1 openssl x509 -noout -enddate -in 2>/dev/null
notAfter=Jul 8 20:17:00 2022 GMT
notAfter=Mar 27 23:09:46 2023 GMT
notAfter=Mar 27 23:09:46 2023 GMT
notAfter=Mar 27 23:09:46 2023 GMT
notAfter=Mar 27 23:09:46 2023 GMT