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] Adding an agent policy with a unique name triggers an error #118357

Closed
criamico opened this issue Nov 11, 2021 · 1 comment · Fixed by #118403
Closed

[Fleet] Adding an agent policy with a unique name triggers an error #118357

criamico opened this issue Nov 11, 2021 · 1 comment · Fixed by #118403
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team v8.0.0

Comments

@criamico
Copy link
Contributor

criamico commented Nov 11, 2021

Kibana version:
8.0.0

Describe the bug:
Adding an agent policy with "Collect system logs and metric" checkbox enabled triggers the error There is already a package with the same name. This doesn't happen when adding the first agent policy (like the first time the system gets setup), but happens subsequently, likely because the checkbox automatically adds a package policy for system.

Hence the logic adding thesystem package when system Monitoring is enabled needs to be updated to respect the new requirements (for instance by incrementing the number in the name, like here).

Steps to reproduce:

  1. Navigate to "add agent policy" fly out
  2. If it's the first time you set up the system, add an agent policy with name test , otherwise go to step 3
  3. Now add another agent policy with name test2, or any other name as long as is unique with "Collect system logs and metric" checked
  4. The error "There is already a package with the same name" will pop up, but the agent policy is added regardless

Expected behavior:
When the agent policy name is unique no error should appear.

Screenshots:

image

Notes
Bug caused by the merging of #115212, which modified the functionality around the naming of package policies (they should be unique across all agent policies).

@criamico criamico added bug Fixes for quality problems that affect the customer experience v8.0.0 Team:Fleet Team label for Observability Data Collection Fleet team labels Nov 11, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants