[Fleet] Adding an agent policy with a unique name triggers an error #118357
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Fleet
Team label for Observability Data Collection Fleet team
v8.0.0
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 forsystem
.Hence the logic adding the
system
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:
test
, otherwise go to step 3test2
, or any other name as long as is unique with "Collect system logs and metric" checkedExpected behavior:
When the agent policy name is unique no error should appear.
Screenshots:
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).
The text was updated successfully, but these errors were encountered: