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

chore(e2e): add test for Prometheus trait #1547 #1849

Merged
merged 2 commits into from
Dec 10, 2020

Conversation

tadayosi
Copy link
Member

@tadayosi tadayosi commented Dec 8, 2020

It passes fine on OCP but there is a known issue with Minikube #1848.

Release Note

NONE

@astefanutti
Copy link
Member

Hi @tadayosi, the tests fail because the ServiceMonitor CRD is not installed:

error executing post actions: error during replace resource: could not create or replace resource java: no matches for kind \"ServiceMonitor\" in version \"monitoring.coreos.com/v1\"

It fails also on OpenShift 3.11 for the same reason. The -t prometheus.service-monitor=false option should probably be passed to the kamel run command.

Copy link
Member

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

e2e/common/prometheus_test.go Outdated Show resolved Hide resolved
@tadayosi
Copy link
Member Author

tadayosi commented Dec 8, 2020

@astefanutti Thanks for your feedback. I'm not certain what's really happening with the openshift integration test though, as the output log shows that it didn't run on OpenShift according to:

--- SKIP: TestPlatformlessRun (0.00s)
Error:     platformless_run_test.go:41: This test is for OpenShift only and cannot work when a custom platform configuration is needed

So I have an impression that it's failing just due to #1848. It makes sense to add -t prometheus.service-monitor=false and suppress checking of ServiceMonitor creation for the time being but we may still see the same errors.

@astefanutti
Copy link
Member

@astefanutti Thanks for your feedback. I'm not certain what's really happening with the openshift integration test though, as the output log shows that it didn't run on OpenShift according to:

--- SKIP: TestPlatformlessRun (0.00s)
Error: platformless_run_test.go:41: This test is for OpenShift only and cannot work when a custom platform configuration is needed

This is the TestPlatformlessRun test.

So I have an impression that it's failing just due to #1848. It makes sense to add -t prometheus.service-monitor=false and suppress checking of ServiceMonitor creation for the time being but we may still see the same errors.

It fails also on OpenShift workflow, because that is OpenShift 3.11 and the Prometheus operator isn't installed OOTB, as opposed to OCP 4.

@tadayosi
Copy link
Member Author

tadayosi commented Dec 8, 2020

@astefanutti Ah you are right. I was confused on TestPlatformlessRun, where I thought it's skipped because ocp != true but it rather seems because needsExternalRepo != nil.

Let me try adding -t prometheus.service-monitor=false to see if we could remove the CI errors.

@tadayosi
Copy link
Member Author

tadayosi commented Dec 8, 2020

Hmm, so it appears that what blocks the test now is #1848. It seems Prometheus trait doesn't deploy not only on k8s but also OCP 3.11.

@astefanutti
Copy link
Member

Minikube doesn't have the Prometheus operator installed OOTB either, so it fails with the same error. The option to disable the creation of the ServiceMonitor should also be added on vanilla Kubernetes.

@tadayosi
Copy link
Member Author

tadayosi commented Dec 9, 2020

I'm trying to fix #1848 first.

@astefanutti
Copy link
Member

This can be rebased as #1848 has been merged.

@tadayosi tadayosi merged commit 8b62436 into apache:master Dec 10, 2020
@nicolaferraro nicolaferraro mentioned this pull request Dec 22, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants