Skip to content

Instantly share code, notes, and snippets.

@LalatenduMohanty
Created April 19, 2021 20:28
Show Gist options
  • Save LalatenduMohanty/e5ab8f9891b1845d2c44562474267e6b to your computer and use it in GitHub Desktop.
Save LalatenduMohanty/e5ab8f9891b1845d2c44562474267e6b to your computer and use it in GitHub Desktop.
$ make func-test
Deploying Update Service operator
hack/deploy.sh
namespace/openshift-updateservice created
serviceaccount/updateservice-operator created
clusterrole.rbac.authorization.k8s.io/updateservice-operator created
rolebinding.rbac.authorization.k8s.io/updateservice-operator created
clusterrolebinding.rbac.authorization.k8s.io/updateservice-operator created
service/updateservice-operator-metrics created
deployment.apps/updateservice-operator created
W0418 15:34:48.796513 1069995 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W0418 15:34:48.850945 1069995 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
customresourcedefinition.apiextensions.k8s.io/updateservices.updateservice.operator.openshift.io created
Running functional test suite
go test -v ./functests/...
=== RUN TestCustomResource
I0418 15:35:20.603195 1070189 utils.go:113] Deployment updateservice-operator available (1/1)
I0418 15:35:50.701924 1070189 utils.go:134] Service updateservice-operator-metrics available
I0418 15:35:51.803989 1070189 utils.go:86] updateservice.updateservice.operator.openshift.io/example created
I0418 15:36:22.009204 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:36:52.031553 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:37:22.010094 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:37:52.007934 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:38:22.008995 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:38:52.023518 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:39:22.011458 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:39:52.001931 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:40:22.080428 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:40:52.108700 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:41:22.007633 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:41:52.010832 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:42:21.999792 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:42:52.012295 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:43:22.007554 1070189 utils.go:106] Waiting for full availability of example deployment (0/1)
I0418 15:43:52.012012 1070189 utils.go:113] Deployment example available (1/1)
I0418 15:44:22.110596 1070189 utils.go:134] Service example-graph-builder available
panic: test timed out after 10m0s
goroutine 132 [running]:
testing.(*M).startAlarm.func1()
/usr/local/go/src/testing/testing.go:1618 +0xe5
created by time.goFunc
/usr/local/go/src/time/sleep.go:167 +0x45
goroutine 1 [chan receive, 9 minutes]:
testing.(*T).Run(0xc00030a480, 0x154c33b, 0x12, 0x15e27c0, 0x4980c6)
/usr/local/go/src/testing/testing.go:1169 +0x2da
testing.runTests.func1(0xc00030a300)
/usr/local/go/src/testing/testing.go:1439 +0x78
testing.tRunner(0xc00030a300, 0xc000107de0)
/usr/local/go/src/testing/testing.go:1123 +0xef
testing.runTests(0xc000350740, 0x1f16420, 0x1, 0x1, 0xc01740ec82d91a16, 0x8bb31ffc42, 0x1f30c40, 0x40f590)
/usr/local/go/src/testing/testing.go:1437 +0x2fe
testing.(*M).Run(0xc0002ab700, 0x0)
/usr/local/go/src/testing/testing.go:1345 +0x1eb
main.main()
_testmain.go:43 +0x138
goroutine 19 [chan receive]:
k8s.io/klog.(*loggingT).flushDaemon(0x1f30f60)
/home/lmohanty/go/pkg/mod/k8s.io/[email protected]/klog.go:1010 +0x8b
created by k8s.io/klog.init.0
/home/lmohanty/go/pkg/mod/k8s.io/[email protected]/klog.go:411 +0xd8
goroutine 20 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x1f31040)
/home/lmohanty/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:1131 +0x8b
created by k8s.io/klog/v2.init.0
/home/lmohanty/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:416 +0xd8
goroutine 21 [select]:
k8s.io/apimachinery/pkg/util/wait.WaitFor(0xc000421ce0, 0xc000661778, 0xc0000b61e0, 0x0, 0x0)
/home/lmohanty/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:539 +0x11d
k8s.io/apimachinery/pkg/util/wait.pollInternal(0xc000421ce0, 0xc000661778, 0x0, 0x0)
/home/lmohanty/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:427 +0x87
k8s.io/apimachinery/pkg/util/wait.Poll(0x6fc23ac00, 0x8bb2c97000, 0xc000661778, 0x15, 0xc000661768)
/home/lmohanty/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:421 +0x4d
github.com/openshift/cincinnati-operator/functests.waitForService(0x16f09e0, 0xc0000ca010, 0xc00030f1e0, 0x154f543, 0x15, 0x0, 0x0)
/home/lmohanty/code/openshift/cincinnati-operator/functests/utils.go:120 +0xac
github.com/openshift/cincinnati-operator/functests.TestCustomResource(0xc00030a480)
/home/lmohanty/code/openshift/cincinnati-operator/functests/updateservice_creation_test.go:116 +0xbee
testing.tRunner(0xc00030a480, 0x15e27c0)
/usr/local/go/src/testing/testing.go:1123 +0xef
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1168 +0x2b3
goroutine 52 [IO wait]:
internal/poll.runtime_pollWait(0x7f7585240418, 0x72, 0x16c1d40)
/usr/local/go/src/runtime/netpoll.go:222 +0x55
internal/poll.(*pollDesc).wait(0xc000118198, 0x72, 0x16c1d00, 0x1eb25f8, 0x0)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000118180, 0xc000648000, 0x74f0, 0x74f0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:159 +0x1a5
net.(*netFD).Read(0xc000118180, 0xc000648000, 0x74f0, 0x74f0, 0x203000, 0x74dbfb, 0xc0003184e0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000010010, 0xc000648000, 0x74f0, 0x74f0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:182 +0x8e
crypto/tls.(*atLeastReader).Read(0xc00043f140, 0xc000648000, 0x74f0, 0x74f0, 0x646, 0x74eb, 0xc00008d708)
/usr/local/go/src/crypto/tls/conn.go:779 +0x62
bytes.(*Buffer).ReadFrom(0xc000318600, 0x16bf040, 0xc00043f140, 0x40d2a5, 0x13e4ae0, 0x14e9d20)
/usr/local/go/src/bytes/buffer.go:204 +0xb1
crypto/tls.(*Conn).readFromUntil(0xc000318380, 0x16c0b40, 0xc000010010, 0x5, 0xc000010010, 0x635)
/usr/local/go/src/crypto/tls/conn.go:801 +0xf3
crypto/tls.(*Conn).readRecordOrCCS(0xc000318380, 0x0, 0x0, 0xc000464840)
/usr/local/go/src/crypto/tls/conn.go:608 +0x115
crypto/tls.(*Conn).readRecord(...)
/usr/local/go/src/crypto/tls/conn.go:576
crypto/tls.(*Conn).Read(0xc000318380, 0xc00013d000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/crypto/tls/conn.go:1252 +0x15f
bufio.(*Reader).Read(0xc0000ceba0, 0xc0001381f8, 0x9, 0x9, 0xc0001f6420, 0xc00008dd18, 0x15e4700)
/usr/local/go/src/bufio/bufio.go:227 +0x222
io.ReadAtLeast(0x16beec0, 0xc0000ceba0, 0xc0001381f8, 0x9, 0x9, 0x9, 0xc00046e4b0, 0xc0000c0030, 0x0)
/usr/local/go/src/io/io.go:314 +0x87
io.ReadFull(...)
/usr/local/go/src/io/io.go:333
golang.org/x/net/http2.readFrameHeader(0xc0001381f8, 0x9, 0x9, 0x16beec0, 0xc0000ceba0, 0x0, 0x0, 0xc0005a8510, 0x0)
/home/lmohanty/go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:237 +0x89
golang.org/x/net/http2.(*Framer).ReadFrame(0xc0001381c0, 0xc0005a8510, 0x0, 0x0, 0x0)
/home/lmohanty/go/pkg/mod/golang.org/x/[email protected]/http2/frame.go:492 +0xa5
golang.org/x/net/http2.(*clientConnReadLoop).run(0xc00008dfa8, 0x0, 0x0)
/home/lmohanty/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:1794 +0xd8
golang.org/x/net/http2.(*ClientConn).readLoop(0xc000482a80)
/home/lmohanty/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:1716 +0x6f
created by golang.org/x/net/http2.(*Transport).newClientConn
/home/lmohanty/go/pkg/mod/golang.org/x/[email protected]/http2/transport.go:695 +0x66e
goroutine 131 [select]:
k8s.io/apimachinery/pkg/util/wait.poller.func1.1(0xc0000b6420, 0x6fc23ac00, 0x8bb2c97000, 0xc0000b6300)
/home/lmohanty/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:588 +0x17b
created by k8s.io/apimachinery/pkg/util/wait.poller.func1
/home/lmohanty/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:571 +0x8c
FAIL github.com/openshift/cincinnati-operator/functests 600.013s
FAIL
make: *** [Makefile:54: func-test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment