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]: TestComponentBuildHashInDiagnostics – error starting service #4687

Open
ycombinator opened this issue May 7, 2024 · 3 comments
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@ycombinator
Copy link
Contributor

Failing test case

TestComponentBuildHashInDiagnostics

Error message

error starting service: failed to start service (Elastic Agent): The service did not respond to the start or control request in a timely fashion.

Build

https://buildkite.com/elastic/elastic-agent/builds/8717

OS

Windows

Stacktrace and notes

>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): === FAIL: testing/integration TestComponentBuildHashInDiagnostics (20.08s)
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): fixture.go:281: Extracting artifact elastic-agent-8.14.0-SNAPSHOT-windows-x86_64.zip to C:\Users\windows\AppData\Local\Temp\TestComponentBuildHashInDiagnostics3135167776\001
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): fixture.go:299: Completed extraction of artifact elastic-agent-8.14.0-SNAPSHOT-windows-x86_64.zip to C:\Users\windows\AppData\Local\Temp\TestComponentBuildHashInDiagnostics3135167776\001
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): fixture.go:900: Components were not modified from the fetched artifact
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): package_version_test.go:80: Installing Elastic Agent...
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): fixture_install.go:110: [test TestComponentBuildHashInDiagnostics] Inside fixture install function
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): fixture_install.go:136: [test TestComponentBuildHashInDiagnostics] Inside fixture installNoPkgManager function
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): fixture.go:656: >> running binary with: [C:\Users\windows\AppData\Local\Temp\TestComponentBuildHashInDiagnostics3135167776\001\elastic-agent-8.14.0-SNAPSHOT-windows-x86_64\elastic-agent.exe install --force --non-interactive --unprivileged --url https://19eb67d40d5246bdba6641d5add812e5.fleet.us-west2.gcp.elastic-cloud.com:443 --enrollment-token ZXlaN1Q0OEJNTkF2MDJ1Q0dlSk06T2Y2QmdaeFlUU21CRGEyMENCS04zQQ==]
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): package_version_test.go:90:
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): Error Trace:	C:/Users/windows/agent/testing/integration/package_version_test.go:90
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): Error:      	Received unexpected error:
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): error running agent install command: exit status 1
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): Test:       	TestComponentBuildHashInDiagnostics
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): Messages:   	failed to install start agent [output: Unprivileged installation mode enabled; this is an experimental and currently unsupported feature.
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): Installing in non-interactive mode.
[=== ] Start Service failed, exiting...  [6s] Installation failed to start Elastic Agent service.[0s]
[====] Uninstalled  [7s] Error uninstalling. Printing logs: [=== ] Uninstalling  [6s]
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install]	Loaded configuration from C:\Users\windows\AppData\Local\Temp\TestComponentBuildHashInDiagnostics3135167776\001\elastic-agent-8.14.0-SNAPSHOT-windows-x86_64\elastic-agent.yml
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install]	Merged configuration from C:\Users\windows\AppData\Local\Temp\TestComponentBuildHashInDiagnostics3135167776\001\elastic-agent-8.14.0-SNAPSHOT-windows-x86_64\elastic-agent.yml into result
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install]	Merged all configuration files from [C:\Users\windows\AppData\Local\Temp\TestComponentBuildHashInDiagnostics3135167776\001\elastic-agent-8.14.0-SNAPSHOT-windows-x86_64\elastic-agent.yml], no external input files
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install.composable]	Starting controller for composable inputs
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install.composable]	Started controller for composable inputs
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install.composable]	Kubernetes leaderelection provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install.composable]	kubernetes_secrets provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install.composable.providers.kubernetes]	Kubernetes provider for resource pod skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install.composable.providers.kubernetes]	Kubernetes provider for resource node skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	INFO	[install.composable.providers.docker]	Docker provider skipped, unable to connect: protocol not available
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.187Z	DEBUG	[install.composable]	Variable state changed for composable inputs; debounce started
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.298Z	DEBUG	[install.composable]	Computing new variable state for composable inputs
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.298Z	DEBUG	[install.composable]	Stopping controller for composable inputs
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): 2024-05-06T19:57:08.393Z	DEBUG	[install.composable]	Stopped controller for composable inputs
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): Error: error starting service: failed to start service (Elastic Agent): The service did not respond to the start or control request in a timely fashion.
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.14/fleet-troubleshooting.html
>>> (windows-amd64-2022-fleet) Test output (sudo) (stdout): ]
@ycombinator ycombinator added Team:Elastic-Agent Label for the Agent team flaky-test Unstable or unreliable test cases. labels May 7, 2024
@elasticmachine
Copy link
Collaborator

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

@ycombinator ycombinator added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label May 7, 2024
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@cmacknz
Copy link
Member

cmacknz commented May 8, 2024

Same failure as #4686, likely the root cause is the same.

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 Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

3 participants