Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e tests are working only on pristine clusters #355

Closed
jpkrohling opened this issue Apr 3, 2019 · 4 comments
Closed

e2e tests are working only on pristine clusters #355

jpkrohling opened this issue Apr 3, 2019 · 4 comments

Comments

@jpkrohling
Copy link
Contributor

jpkrohling commented Apr 3, 2019

The e2e tests are currently working only when executed against a clean cluster.

Steps to reproduce:

  1. minikube start
  2. Run make e2e-tests -- it should pass
  3. Run it again -- it fails already in the smoke tests. In the operator logs, this can be seen:
time="2019-04-03T12:41:29Z" level=error msg="failed to apply the changes" error="no matches for kind \"Elasticsearch\" in version \"logging.openshift.io/v1alpha1\"" execution="2019-04-03 12:41:29.381660248 +0000 UTC" instance=agent-as-sidecar namespace=smoke-smoke-sidecar-1554295279

Interestingly, I see the ES operator deployed, which shouldn't be there for Kubernetes:

$ kubectl get deployments --all-namespaces
NAMESPACE                          NAME                       READY     UP-TO-DATE   AVAILABLE   AGE
kube-system                        coredns                    2/2       2            2           14m
kube-system                        default-http-backend       1/1       1            1           14m
kube-system                        nginx-ingress-controller   1/1       1            1           14m
openshift-logging                  elasticsearch-operator     1/1       1            1           4m24s
smoke-smoke-daemonset-1554295154   jaeger-operator            1/1       1            1           95s
@jpkrohling jpkrohling changed the title e2e tests are working only in the first time e2e tests are working only on pristine clusters Apr 3, 2019
@jpkrohling
Copy link
Contributor Author

Disabling the goal e2e-tests-self-provisioned-es made it work again.

cc @pavolloffay

@pavolloffay
Copy link
Member

Interestingly, I see the ES operator deployed, which shouldn't be there for Kubernetes:

The es-operator deploy goal runs always. It's deployed via make. I am not sure how hard it would be to deploy it in go test or alternatively find out if we are on OCP in makefile

@pavolloffay
Copy link
Member

@jpkrohling I was able to repetitively run e2e tests on minikube without problems.

@jpkrohling
Copy link
Contributor Author

This was fixed by #366. Looks like my "Fixes" comment there didn't close this one :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants