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

TestFleetAgentWithoutTLS/ES_data_should_pass_validations flaky in 8-0-1 #6956

Closed
thbkrkr opened this issue Jun 26, 2023 · 2 comments · Fixed by #6957
Closed

TestFleetAgentWithoutTLS/ES_data_should_pass_validations flaky in 8-0-1 #6956

thbkrkr opened this issue Jun 26, 2023 · 2 comments · Fixed by #6957

Comments

@thbkrkr
Copy link
Contributor

thbkrkr commented Jun 26, 2023

cloud-on-k8s-operator-nightly/builds/219

🐞 TestFleetAgentWithoutTLS/ES_data_should_pass_validations ~ stack-8-0-1

=== RUN   TestFleetAgentWithoutTLS/ES_data_should_pass_validations
Retries (30m0s timeout): ....................................
  step.go:51: 
    Error Trace:	/go/src/github.com/elastic/cloud-on-k8s/test/e2e/test/utils.go:94
    Error:      	Received unexpected error:
      elasticsearch client failed for http://test-fleet-agent-notls-69s4-es-internal-http.e2e-zczhn-mercury.svc:9200/_data_stream/logs-elastic_agent.filebeat-default: 
      404 Not Found: Reason:no such index [logs-elastic_agent.filebeat-default] Type:index_not_found_exception 
@thbkrkr thbkrkr changed the title TestFleetAgentWithoutTLS/ES_data_should_pass_validations TestFleetAgentWithoutTLS/ES_data_should_pass_validations flaky in 8-0-1 Jun 26, 2023
@thbkrkr
Copy link
Contributor Author

thbkrkr commented Jun 26, 2023

Seems caused by Error: [Elastic Agent on ECK policy] could not be added. in Kibana.

Pod log:

> grep "ERROR.*plugins" eckdiag/e2e-zczhn-mercury/pod/test-fleet-agent-notls-kcvx-kb-6bdf5d4f6f-hncrc/logs.txt

[2023-06-23T22:45:13.186+00:00][ERROR][plugins.fleet] uninstalling kubernetes-1.17.3 after error installing: 
  [Error: Encountered 2 errors creating saved objects: [
      {"type":"index-pattern","id":"logs-*","error":{"type":"conflict"}},
      {"type":"index-pattern","id":"metrics-*","error":{"type":"conflict"}}]]

[2023-06-23T22:45:15.311+00:00][ERROR][plugins.fleet] failed to uninstall or rollback package after installation error Error: 
  Saved object [epm-packages/kubernetes] not found

[2023-06-23T22:45:37.043+00:00][ERROR][plugins.fleet] Error: [Elastic Agent on ECK policy] could not be added. 
  [kubernetes] could not be installed due to error: [Error: Encountered 2 errors creating saved objects: [
      {"type":"index-pattern","id":"logs-*","error":{"type":"conflict"}},
      {"type":"index-pattern","id":"metrics-*","error":{"type":"conflict"}}]]

@thbkrkr
Copy link
Contributor Author

thbkrkr commented Jun 26, 2023

This is the bug:

Fixed in 8.1.x

We already hit it and disabled the tests:

Then we re-enabled them:

Edit: I forgot that we run tests with recipes only for the latest stack version.

What about TestFleetAgentWithoutTLS ? It has been added after, so it is run in 8.0.1 💥:

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

Successfully merging a pull request may close this issue.

1 participant