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

Installing Elastic Defend in tests can fail: Transform with id [endpoint.metadata_current-default-8.9.0] could not be found #3524

Closed
cmacknz opened this issue Oct 4, 2023 · 4 comments · Fixed by #3668
Labels
Team:Elastic-Agent Label for the Agent team

Comments

@cmacknz
Copy link
Member

cmacknz commented Oct 4, 2023

Flaky Test

Stack Trace

endpoint_security_test.go:362: Error installing fleet package: Error installing endpoint 8.9.0: resource_not_found_exception
        	Root causes:
        		resource_not_found_exception: Transform with id [endpoint.metadata_current-default-8.9.0] could not be found
    endpoint_security_test.go:363: 
        	Error Trace:	/home/ubuntu/agent/testing/integration/endpoint_security_test.go:363
        	            				/home/ubuntu/agent/testing/integration/endpoint_security_test.go:325
        	Error:      	Received unexpected error:
        	            	error installing fleet package: Error installing endpoint 8.9.0: resource_not_found_exception
        	            		Root causes:
        	            			resource_not_found_exception: Transform with id [endpoint.metadata_current-default-8.9.0] could not be found
        	Test:       	TestInstallWithEndpointSecurityAndRemoveEndpointIntegration/protected

In a following test:

    endpoint_security_test.go:362: Error installing fleet package: Error installing endpoint 8.9.0: runtime_exception
        	Caused by:
        		version_conflict_engine_exception: [data_frame_transform_state_and_stats-endpoint.metadata_current-default-8.9.0]: version conflict, document already exists (current version [1])
        	Root causes:
        		runtime_exception: Failed to persist transform statistics for transform [endpoint.metadata_current-default-8.9.0]
    endpoint_security_test.go:363: 
        	Error Trace:	/home/ubuntu/agent/testing/integration/endpoint_security_test.go:363
        	            				/home/ubuntu/agent/testing/integration/endpoint_security_test.go:325
        	Error:      	Received unexpected error:
        	            	error installing fleet package: Error installing endpoint 8.9.0: runtime_exception
        	            		Caused by:
        	            			version_conflict_engine_exception: [data_frame_transform_state_and_stats-endpoint.metadata_current-default-8.9.0]: version conflict, document already exists (current version [1])
        	            		Root causes:
        	            			runtime_exception: Failed to persist transform statistics for transform [endpoint.metadata_current-default-8.9.0]
        	Test:       	TestInstallWithEndpointSecurityAndRemoveEndpointIntegration/unprotected
        	Messages:   	Policy Response was: kibana.PackagePolicyResponse{Item:kibana.PackagePolicy{ID:"", Revision:0, Enabled:false, Inputs:[]map[string]interface {}(nil), Package:kibana.PackagePolicyRequestPackage{Name:"", Version:""}, Namespace:"", OutputID:"", PolicyID:"", Name:"", Description:""}}
@cmacknz cmacknz added the Team:Elastic-Agent Label for the Agent team label Oct 4, 2023
@elasticmachine
Copy link
Contributor

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

@cmacknz
Copy link
Member Author

cmacknz commented Oct 4, 2023

First thing to try is updating the version of the defend package we install https://github.com/elastic/endpoint-package/releases/tag/v8.11.0

@belimawr
Copy link
Contributor

I'm kind fixing this as part of my PR: #3465

@belimawr
Copy link
Contributor

If it fixes the issue I might just create a standalone PR to get it into main quicker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants