wildfly / wildfly-operator

Kubernetes Operator for WildFly
http://docs.wildfly.org/wildfly-operator/
Apache License 2.0
32 stars 39 forks source link

E2E tests failing on Power - FATA[0004] Failed to build test binary #256

Open shreyakajbaje opened 1 year ago

shreyakajbaje commented 1 year ago

E2E tests running on Minikube setup throwing below error -

./operator-sdk test local ./test/e2e --verbose --debug --operator-namespace default --global-manifest ./deploy/crds/wildfly.org_wildflyservers_crd.yaml --namespaced-manifest ./deploy/operator.yaml --image "localhost:5000/wildfly-operator:latest" DEBU[0000] Debug logging is set INFO[0000] Testing operator locally. DEBU[0000] Running []string{"go", "test", "-mod=vendor", "./test/e2e/...", "-namespacedMan", "./deploy/operator.yaml", "-globalMan", "./deploy/crds/wildfly.org_wildflyservers_crd.yaml", "-root", "/home/go/src/github.com/wildfly/wildfly-operator", "-parallel=1", "-skipCleanupOnError=false"} time="2023-02-01T03:23:23Z" level=fatal msg="Failed to create framework: failed to build the kubeconfig: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable" FAIL github.com/wildfly/wildfly-operator/test/e2e 0.065s FAIL FATA[0004] Failed to build test binary: failed to exec []string{"go", "test", "-mod=vendor", "./test/e2e/...", "-namespacedMan", "./deploy/operator.yaml", "-globalMan", "./deploy/crds/wildfly.org_wildflyservers_crd.yaml", "-root", "/home/go/src/github.com/wildfly/wildfly-operator", "-parallel=1", "-skipCleanupOnError=false"}: exit status 1 make: *** [Makefile:73: test-e2e-minikube] Error 1

Minikube cluster configurartion -

looks quay.io images being used are not available for power. will it be possible to share dockerfiles for the same?

yersan commented 1 year ago

Hi @shreyakajbaje

It seems you are using an old branch. There is some documentation about how to run the Operator tests (either in local or deploy mode) with a local Minikube cluster: e.g https://github.com/wildfly/wildfly-operator#run-end-to-end-e2e-tests-in-local-mode

Did you follow the instructions described there?

shreyakajbaje commented 1 year ago

Hi @yersan, Thank you for your response. Yes I have followed these instructions for local mode.

yersan commented 1 year ago

Ok, that's weird, your error trace describes the uses of ./operator-sdk test local, which makes me think your branch is lagging behind the main. Can you double-check if you are using the main branch and if your local repository is up to date with the remote one?

shreyakajbaje commented 1 year ago

Yes repository is up to date