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] Duplicate error coming when adding system integration with new agent policy #125968

Closed
juliaElastic opened this issue Feb 17, 2022 · 6 comments · Fixed by #126439
Closed
Assignees
Labels
bug Fixes for quality problems that affect the customer experience QA:Validated Issue has been validated by QA Team:Fleet Team label for Observability Data Collection Fleet team v8.1.1 v8.2.0

Comments

@juliaElastic
Copy link
Contributor

Kibana version: 8.1

Describe the bug:

Bug introduced by #108456

When trying to add system integration with default incremental name (e.g. system-3 if there are 2 of them already existing) and new agent policy, the result is an error message saying that system-3 already exists.
This is because the new agent policy comes with system integration added by default, which uses the same incremental name as the default name on the create integration page.

Steps to reproduce:

  1. Go to Add integration / System
  2. click on Save integration (with default name and default new policy)
  3. observe the error message saying an integration policy already exists with the same name

Expected behavior:
The error message shouldn't come and the Agent policy should be created with one system integration policy.

I think the right thing to do here is to have a check in the logic, not to create the agent policy with system monitoring, in case it is added for system integration.

Screenshots (if relevant):
image

@juliaElastic juliaElastic added bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team labels Feb 17, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@juliaElastic
Copy link
Contributor Author

@jen-huang what do you think about the severity of this bug? I'm not sure how frequently users are adding system integration specifically (with the default name). I'm thinking low or medium. I can fix this next week with a small effort I think.

@juliaElastic juliaElastic self-assigned this Feb 17, 2022
@crowens
Copy link

crowens commented Feb 17, 2022

I have a similar issue maybe, but seen on upgrade. I have an existing Agent Policy that I had before upgrading to 8.0. Now I see I have an upgrade available for the system integration in one of the policies, but trying to upgrade it fails with the same error seen above.

image
image

Not sure if it matters, but I have other integrations that already have upgraded system integrations:
image

@jen-huang
Copy link
Contributor

@crowens Thank a lot for raising that! @juliaElastic The initial report is a bit of an edge case, but the one reported by Chris is far more concerning to me, could you look into that?

@juliaElastic
Copy link
Contributor Author

@crowens @jen-huang the update issue reported by Chris is not related to this issue. The former happens in 8.0 and caused by having two integration policies named system-1 I think. The latter happens only in 8.1.

@amolnater-qasource
Copy link

Hi @juliaElastic
We have revalidated this issue on 8.1.0 BC-5 Kibana cloud environment and found it working fine.

  • On adding system integration from Integrations tab to a new agent policy, no duplicate integration error is observed.
  • Only one System integration is added the new Policy.

Build details:
VERSION: 8.1.0
BUILD: 50459
COMMIT: 23423b0

Screen Recording:

System.-.Integrations.-.Elastic.-.Google.Chrome.2022-03-03.12-21-36.mp4

Hence marking this as QA:Validated.

Thanks

@amolnater-qasource amolnater-qasource added QA:Validated Issue has been validated by QA and removed QA:Ready for Testing Code is merged and ready for QA to validate labels Mar 3, 2022
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 QA:Validated Issue has been validated by QA Team:Fleet Team label for Observability Data Collection Fleet team v8.1.1 v8.2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants