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

[Flaky Test]: TestBeatsServerless/TestSetupDashboards – error importing Kibana dashboards #4538

Closed
rdner opened this issue Apr 8, 2024 · 4 comments
Assignees
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team

Comments

@rdner
Copy link
Member

rdner commented Apr 8, 2024

Failing test case

TestBeatsServerless/TestSetupDashboards

Error message

error importing Kibana dashboards

Build

https://buildkite.com/elastic/elastic-agent/builds/8118#018eae17-30fe-418a-aafa-74560b090baf

OS

Linux

Stacktrace and notes

>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): Test:       	TestBeatsServerless/TestSetupDashboards
>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): beats_serverless_test.go:215: got response from dashboard setup: Loading dashboards (Kibana must be running and reachable)
>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): Exiting: error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /tmp/TestBeatsServerless20915224/001/metricbeat-8.14.0-SNAPSHOT-linux-x86_64/kibana: Failed to import dashboard: Failed to load directory /tmp/TestBeatsServerless20915224/001/metricbeat-8.14.0-SNAPSHOT-linux-x86_64/kibana/7:
>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): error loading /tmp/TestBeatsServerless20915224/001/metricbeat-8.14.0-SNAPSHOT-linux-x86_64/kibana/7/dashboard/a3f4d080-c7d3-11ec-891a-5f50c7522a3a.json: error dashboard asset: returned 500 to import file: An internal server error occurred. Check Kibana server logs for details.. Response: {"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred. Check Kibana server logs for details."}
>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): beats_serverless_test.go:216:
>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): Error Trace:	/home/ubuntu/agent/testing/integration/beats_serverless_test.go:216
>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): Error:      	Should be true
>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): Test:       	TestBeatsServerless/TestSetupDashboards
>>> (linux-amd64-ubuntu-2204-default) Test output (sudo) (stdout): === FAIL: testing/integration TestBeatsServerless (321.08s)

First failure was around
2024-04-05 12:32:42 UTC

Serverless project:
stack_id: 8140-SNAPSHOT, deployment_id: a009bf2e816f42cd88e45d45d15c833b

This is the dashboard that causes the error https://github.com/elastic/beats/blob/main/x-pack/metricbeat/module/oracle/_meta/kibana/7/dashboard/a3f4d080-c7d3-11ec-891a-5f50c7522a3a.json

@rdner rdner added Team:Elastic-Agent Label for the Agent team flaky-test Unstable or unreliable test cases. labels Apr 8, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@rdner
Copy link
Member Author

rdner commented Apr 8, 2024

Another failure https://buildkite.com/elastic/elastic-agent/builds/8165#018eb9f8-47cd-4cf1-8c68-d481385740c7

2024-04-07 19:32:41 UTC
Deployment becfa6cde22f4920b9d47c3acf73b534

@rdner rdner self-assigned this Apr 8, 2024
@rdner
Copy link
Member Author

rdner commented Apr 22, 2024

The investigation led to some failed requests from Kibana to Elasticsearch. Will still observe for a couple of weeks, if there is no another occurrence, we can close this as a temporary connectivity issue.

@rdner
Copy link
Member Author

rdner commented Apr 26, 2024

Seems to be a temporary issue, no re-occurrence in weeks.

@rdner rdner closed this as completed Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

2 participants