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

[Fleet] Add ability to force install while creating agent policy #137450

Closed
hop-dev opened this issue Jul 28, 2022 · 2 comments · Fixed by #176738
Closed

[Fleet] Add ability to force install while creating agent policy #137450

hop-dev opened this issue Jul 28, 2022 · 2 comments · Fixed by #176738
Assignees
Labels
Feature:Fleet Fleet team's agent central management project Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@hop-dev
Copy link
Contributor

hop-dev commented Jul 28, 2022

Since the addition of package verification in 8.4 (#133822), an unverified package can only be installed if the force flag is supplied.

When creating an agent policy, we install the agent integration if it isnt alread, and if sys_monitoring is enabled then we also install the system integration. Currently, there is no way to force install these integrations during agent policy creation so the agent policy will always fail.

The workaround is to force install the packages before creating the agent policy. This is interfering with our API integration tests as all regustry packages are unverified, e.g I have had to skip this test.

@hop-dev hop-dev added the Feature:Fleet Fleet team's agent central management project label Jul 28, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Feature:Fleet)

@botelastic botelastic bot added the needs-team Issues missing a team label label Jul 28, 2022
@hop-dev hop-dev added the Team:Fleet Team label for Observability Data Collection Fleet team label Jul 28, 2022
@botelastic botelastic bot removed the needs-team Issues missing a team label label Jul 28, 2022
@nchaulet
Copy link
Member

@jen-huang Yes those tests are still skipped, I think using package fixture will be the same issue as you cannot install an upload a package when creating a policy.

I think the fix mark proposed here is still relevant to have a flag to force install or ignore verification errors when creating a policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Fleet Fleet team's agent central management project Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants