-
Notifications
You must be signed in to change notification settings - Fork 458
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
[apache_tomcat] [microsoft_sqlserver] [stan] Errors when testing with Elastic Agent wolfi images #10999
Comments
It should be possible to fix this with Wolfi by doing This will be the same thing users need to do it make this work. |
We could set these data streams as requiring root (see the relevant part of the package spec here) but I don't think this is strictly required, it depends on the user the services are run as most likely. We could also look at changing the service users to not be root, although for Apache it may legitimately be root when run to bind to privileged ports. |
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
hi 👋 just thinking out loud here since elastic-agent needs to read files owned by root, and given that we would like to avoid making part of the root group, can't we just give to it the permission |
@cmacknz It could be set that just for those tests agent:
user: root I could update the PR #11007 to apply those settings. That would still be using the Wolfi images for tests in those packages (but the Elastic Agent container running as root). Tested here (commit 17fdeab) : https://buildkite.com/elastic/integrations/builds/15513 |
@mrodm using root instead of any other user make sense to me here. |
Perfect, I'll update then the PR, thanks @jlind23 ! |
Testing to run system tests using Elastic Agent docker images based on Wolfi images #10933, raised the issue that system tests are failing for these packages (apache_tomcat, microsoft_sqlserver and stan).
The errors that comes from the buildkite build are that
elastic-package
could not find hits in the data stream:For these packages, documents were not ingested due to permission errors while reading those files by Elastic Agent.
Permission of the files for easch package:
It is needed to check if the permissions of these files could be changed somehow in tests so Elastic Agent user could read those.
As a workarounds, there could be some different approaches:
agent.base_image: systemd
).agent.user: root
).This elastic-package issue elastic/elastic-package#1852 could be related to avoid permission errors related to the parent folder, but probably the packages would have to change the user that writes the logs.
The text was updated successfully, but these errors were encountered: