Skip to content

[Flaky Test]: TestEndpointSecurityCannotSwitchToUnprivileged – Error installing fleet package: Unable to remove package with existing package policy(s) in use by agent(s) #7641

@pchila

Description

@pchila

Failing test case

TestEndpointSecurityCannotSwitchToUnprivileged

Error message

endpoint_security_test.go:587: Error installing fleet package: Unable to remove package with existing package policy(s) in use by agent(s)

Build

https://buildkite.com/elastic/elastic-agent/builds/19363#0195ec35-a40a-4997-8b7d-9c46213237eb/340-1049

OS

Linux

Stacktrace and notes

endpoint_security_test.go:586: Installing Elastic Defend
    endpoint_security_test.go:587: Templating endpoint package policy request
    endpoint_security_test.go:587: POST /api/fleet/package_policies
    endpoint_security_test.go:587: Error installing fleet package: Unable to remove package with existing package policy(s) in use by agent(s)
    endpoint_security_test.go:588:
        	Error Trace:	/opt/buildkite-agent/builds/bk-agent-prod-gcp-1743425001311698431/elastic/elastic-agent/testing/integration/endpoint_security_test.go:588
        	Error:      	Received unexpected error:
        	            	error installing fleet package: Unable to remove package with existing package policy(s) in use by agent(s)
        	Test:       	TestEndpointSecurityCannotSwitchToUnprivileged
        	Messages:   	Policy Response was: {{ 0 false [] { }     }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Elastic-AgentLabel for the Agent teamflaky-testUnstable or unreliable test cases.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions