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]: TestFleetManagedUpgrade - failed to fix permissions: [...]: no such file or directory #3331

Closed
AndersonQ opened this issue Aug 30, 2023 · 3 comments
Labels
backport-skip flaky-test Unstable or unreliable test cases. skip-changelog Team:Elastic-Agent Label for the Agent team

Comments

@AndersonQ
Copy link
Member

Flaky Test

Stack Trace

    upgrade_test.go:132: Enrolling Elastic Agent...
    fixture.go:365: >> running agent with: [/tmp/TestFleetManagedUpgradeUpgrade_managed_agent_from_7.17.12_to_8.11.0-SNAPSHOT2609877102/001/elastic-agent-7.17.12-linux-x86_64/elastic-agent install --force --url https://c366f9b35d7e47d6a7d4a04a7878fb8b.fleet.us-central1.gcp.qa.cld.elstc.co:443 --enrollment-token MUlZYlE0b0JZWWRaQ3A5YlE2WFE6bnNoYXhKeFlTVGV2NHRkaUVOeVFMdw==]
    upgrade_test.go:147: 2023-08-29T21:02:59.842Z	INFO	cmd/enroll_cmd.go:454	Starting enrollment to URL: https://c366f9b35d7e47d6a7d4a04a7878fb8b.fleet.us-central1.gcp.qa.cld.elstc.co:443/
        Error: failed to fix permissions: chown /opt/Elastic/Agent/elastic-agent: no such file or directory
        For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.17/fleet-troubleshooting.html
        Error: enroll command failed with exit code: 1
        For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.17/fleet-troubleshooting.html
        
    upgrade_test.go:149: 
        	Error Trace:	/home/ubuntu/agent/testing/integration/upgrade_test.go:149
        	            				/home/ubuntu/agent/testing/integration/upgrade_test.go:99
        	Error:      	Received unexpected error:
        	            	error running agent install command: exit status 1
        	Test:       	TestFleetManagedUpgrade/Upgrade_managed_agent_from_7.17.12_to_8.11.0-SNAPSHOT
--- FAIL: TestFleetManagedUpgrade/Upgrade_managed_agent_from_7.17.12_to_8.11.0-SNAPSHOT (119.80s)
@AndersonQ AndersonQ added Team:Elastic-Agent Label for the Agent team flaky-test Unstable or unreliable test cases. labels Aug 30, 2023
@elasticmachine
Copy link
Contributor

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

@AndersonQ AndersonQ changed the title Flaky test: TestFleetManagedUpgrade - failed to fix permissions: chown /opt/Elastic/Agent/elastic-agent: no such file or directory [Flaky test]: TestFleetManagedUpgrade - failed to fix permissions: chown ...: no such file or directory Aug 30, 2023
@AndersonQ AndersonQ changed the title [Flaky test]: TestFleetManagedUpgrade - failed to fix permissions: chown ...: no such file or directory [Flaky test]: TestFleetManagedUpgrade - failed to fix permissions: [...]: no such file or directory Aug 30, 2023
@blakerouse
Copy link
Contributor

The tests are not flaky, the tests have discovered an actual bug in the Elastic Agent. I have filed the issue that is causing the tests failures here - #3371

@AndersonQ
Copy link
Member Author

The tests are not flaky, the tests have discovered an actual bug in the Elastic Agent. I have filed the issue that is causing the tests failures here - #3371

Closing this issue then. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-skip flaky-test Unstable or unreliable test cases. skip-changelog Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

3 participants