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] Cannot create an orphaned integration policy #198165

Closed
rdner opened this issue Oct 29, 2024 · 2 comments · Fixed by #201051
Closed

[Fleet] Cannot create an orphaned integration policy #198165

rdner opened this issue Oct 29, 2024 · 2 comments · Fixed by #201051
Assignees
Labels
Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@rdner
Copy link
Member

rdner commented Oct 29, 2024

Kibana version:
8.16 BC2

Browser version:
Safari 18.0.1 (19619.1.26.111.11, 19619)

Browser OS version:
Mac OS 14.7 (23H124)

Original install method (e.g. download page, yum, from source, etc.):
Cloud deployment.

Describe the bug:

Not able to create an orphaned integration policy despite removing existing hosts.

Steps to reproduce:

Video https://github.com/user-attachments/assets/2d78fcce-0a20-4cde-9b3f-28b0c5886d36

  1. Create a 8.16 deployment with the Observability solution view
  2. Go to Management->Integrations
  3. Find the System integration
  4. Note, there is no Integration policies tab available on a fresh deployment. (another bug?)
  5. Click Add system button
  6. Click `Add integration only (skip agent installation)
  7. Scroll down and click on Existing hosts and remove agent policies
  8. Click Save and continue
  9. See the modal dialog that says this integration policy won't be added to any of agent policies and click Save changes.
  10. Despite what the modal stated, "My first agent policy" got created and the system integration got added to it.

Expected behavior:

  • The created system integration policy should not have created "My first agent policy"
  • The create system integration policy should've remained orphaned and not added to any policies

cc @jen-huang

@rdner rdner added bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team labels Oct 29, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kpollich kpollich removed the Team:Fleet Team label for Observability Data Collection Fleet team label Oct 29, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 29, 2024
@kpollich kpollich added Team:Fleet Team label for Observability Data Collection Fleet team and removed bug Fixes for quality problems that affect the customer experience needs-team Issues missing a team label labels Oct 29, 2024
@kpollich kpollich changed the title Cannot create an orphaned integration policy [Fleet] Cannot create an orphaned integration policy Oct 29, 2024
@jen-huang
Copy link
Contributor

Note, there is no Integration policies tab available on a fresh deployment. (another bug?)

FYI this tab only shows once an integration has been installed, so it is expected behavior at this point :)

Thanks for filing!

@jen-huang jen-huang self-assigned this Nov 20, 2024
jen-huang added a commit that referenced this issue Nov 22, 2024
)

## Summary

Resolves #198165. This PR fixes an issue where `policy_ids` array was
not able to be cleared behind the scenes to create an orphaned
integration policy, even when cluster is able to use the multiple agent
policies feature.
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 22, 2024
…tic#201051)

## Summary

Resolves elastic#198165. This PR fixes an issue where `policy_ids` array was
not able to be cleared behind the scenes to create an orphaned
integration policy, even when cluster is able to use the multiple agent
policies feature.

(cherry picked from commit 3952dea)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 22, 2024
…tic#201051)

## Summary

Resolves elastic#198165. This PR fixes an issue where `policy_ids` array was
not able to be cleared behind the scenes to create an orphaned
integration policy, even when cluster is able to use the multiple agent
policies feature.

(cherry picked from commit 3952dea)
kibanamachine added a commit that referenced this issue Nov 22, 2024
…#201051) (#201306)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[UII] Allow to create integration policy with no agent policies
(#201051)](#201051)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jen
Huang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T00:57:06Z","message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","v9.0.0","backport:prev-major"],"title":"[UII]
Allow to create integration policy with no agent
policies","number":201051,"url":"https://github.com/elastic/kibana/pull/201051","mergeCommit":{"message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201051","number":201051,"mergeCommit":{"message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4"}}]}]
BACKPORT-->

Co-authored-by: Jen Huang <[email protected]>
kibanamachine added a commit that referenced this issue Nov 22, 2024
#201051) (#201305)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[UII] Allow to create integration policy with no agent policies
(#201051)](#201051)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jen
Huang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T00:57:06Z","message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","v9.0.0","backport:prev-major"],"title":"[UII]
Allow to create integration policy with no agent
policies","number":201051,"url":"https://github.com/elastic/kibana/pull/201051","mergeCommit":{"message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201051","number":201051,"mergeCommit":{"message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4"}}]}]
BACKPORT-->

Co-authored-by: Jen Huang <[email protected]>
jen-huang added a commit to jen-huang/kibana that referenced this issue Nov 25, 2024
…tic#201051)

## Summary

Resolves elastic#198165. This PR fixes an issue where `policy_ids` array was
not able to be cleared behind the scenes to create an orphaned
integration policy, even when cluster is able to use the multiple agent
policies feature.

(cherry picked from commit 3952dea)

# Conflicts:
#	x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.test.tsx
jen-huang added a commit to jen-huang/kibana that referenced this issue Nov 25, 2024
…tic#201051)

## Summary

Resolves elastic#198165. This PR fixes an issue where `policy_ids` array was
not able to be cleared behind the scenes to create an orphaned
integration policy, even when cluster is able to use the multiple agent
policies feature.

(cherry picked from commit 3952dea)

# Conflicts:
#	x-pack/plugins/fleet/cypress/screens/integrations.ts
#	x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.test.tsx
#	x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/components/step_edit_hosts.tsx
jen-huang added a commit that referenced this issue Nov 25, 2024
#201051) (#201684)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[UII] Allow to create integration policy with no agent policies
(#201051)](#201051)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jen
Huang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T00:57:06Z","message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","v9.0.0","backport:prev-major","v8.17.0","v8.18.0"],"number":201051,"url":"https://github.com/elastic/kibana/pull/201051","mergeCommit":{"message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201051","number":201051,"mergeCommit":{"message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4"}},{"branch":"8.17","label":"v8.17.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/201305","number":201305,"state":"MERGED","mergeCommit":{"sha":"8eb67bd1883aad804d5c33df61d065f01f4398ca","message":"[8.17]
[UII] Allow to create integration policy with no agent policies
(#201051) (#201305)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.17`:\n- [[UII] Allow to create integration
policy with no agent
policies\n(#201051)](https://github.com/elastic/kibana/pull/201051)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Jen\nHuang\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-11-22T00:57:06Z\",\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.18.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:fix\",\"Team:Fleet\",\"v9.0.0\",\"backport:prev-major\"],\"title\":\"[UII]\nAllow
to create integration policy with no
agent\npolicies\",\"number\":201051,\"url\":\"https://github.com/elastic/kibana/pull/201051\",\"mergeCommit\":{\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/201051\",\"number\":201051,\"mergeCommit\":{\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Jen Huang
<[email protected]>"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/201306","number":201306,"state":"MERGED","mergeCommit":{"sha":"19059ee9c2d90d1da7cc21ce05c7c34e6a5b0578","message":"[8.x]
[UII] Allow to create integration policy with no agent policies
(#201051) (#201306)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.x`:\n- [[UII] Allow to create integration
policy with no agent
policies\n(#201051)](https://github.com/elastic/kibana/pull/201051)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Jen\nHuang\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-11-22T00:57:06Z\",\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.18.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:fix\",\"Team:Fleet\",\"v9.0.0\",\"backport:prev-major\"],\"title\":\"[UII]\nAllow
to create integration policy with no
agent\npolicies\",\"number\":201051,\"url\":\"https://github.com/elastic/kibana/pull/201051\",\"mergeCommit\":{\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/201051\",\"number\":201051,\"mergeCommit\":{\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Jen Huang <[email protected]>"}}]}] BACKPORT-->
jen-huang added a commit that referenced this issue Nov 26, 2024
#201051) (#201683)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[UII] Allow to create integration policy with no agent policies
(#201051)](#201051)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jen
Huang","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-22T00:57:06Z","message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","v9.0.0","backport:prev-major","v8.17.0","v8.18.0"],"number":201051,"url":"https://github.com/elastic/kibana/pull/201051","mergeCommit":{"message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201051","number":201051,"mergeCommit":{"message":"[UII]
Allow to create integration policy with no agent policies
(#201051)\n\n## Summary\r\n\r\nResolves #198165. This PR fixes an issue
where `policy_ids` array was\r\nnot able to be cleared behind the scenes
to create an orphaned\r\nintegration policy, even when cluster is able
to use the multiple agent\r\npolicies
feature.","sha":"3952dea3962c52dbd8d0cf01f7966670a64639d4"}},{"branch":"8.17","label":"v8.17.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/201305","number":201305,"state":"MERGED","mergeCommit":{"sha":"8eb67bd1883aad804d5c33df61d065f01f4398ca","message":"[8.17]
[UII] Allow to create integration policy with no agent policies
(#201051) (#201305)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.17`:\n- [[UII] Allow to create integration
policy with no agent
policies\n(#201051)](https://github.com/elastic/kibana/pull/201051)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Jen\nHuang\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-11-22T00:57:06Z\",\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.18.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:fix\",\"Team:Fleet\",\"v9.0.0\",\"backport:prev-major\"],\"title\":\"[UII]\nAllow
to create integration policy with no
agent\npolicies\",\"number\":201051,\"url\":\"https://github.com/elastic/kibana/pull/201051\",\"mergeCommit\":{\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/201051\",\"number\":201051,\"mergeCommit\":{\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Jen Huang
<[email protected]>"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/201306","number":201306,"state":"MERGED","mergeCommit":{"sha":"19059ee9c2d90d1da7cc21ce05c7c34e6a5b0578","message":"[8.x]
[UII] Allow to create integration policy with no agent policies
(#201051) (#201306)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.x`:\n- [[UII] Allow to create integration
policy with no agent
policies\n(#201051)](https://github.com/elastic/kibana/pull/201051)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Jen\nHuang\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-11-22T00:57:06Z\",\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.18.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:fix\",\"Team:Fleet\",\"v9.0.0\",\"backport:prev-major\"],\"title\":\"[UII]\nAllow
to create integration policy with no
agent\npolicies\",\"number\":201051,\"url\":\"https://github.com/elastic/kibana/pull/201051\",\"mergeCommit\":{\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/201051\",\"number\":201051,\"mergeCommit\":{\"message\":\"[UII]\nAllow
to create integration policy with no agent policies\n(#201051)\\n\\n##
Summary\\r\\n\\r\\nResolves #198165. This PR fixes an issue\nwhere
`policy_ids` array was\\r\\nnot able to be cleared behind the scenes\nto
create an orphaned\\r\\nintegration policy, even when cluster is
able\nto use the multiple
agent\\r\\npolicies\nfeature.\",\"sha\":\"3952dea3962c52dbd8d0cf01f7966670a64639d4\"}}]}]\nBACKPORT-->\n\nCo-authored-by:
Jen Huang <[email protected]>"}}]}] BACKPORT-->
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this issue Nov 26, 2024
…tic#201051)

## Summary

Resolves elastic#198165. This PR fixes an issue where `policy_ids` array was
not able to be cleared behind the scenes to create an orphaned
integration policy, even when cluster is able to use the multiple agent
policies feature.
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Dec 12, 2024
…tic#201051)

## Summary

Resolves elastic#198165. This PR fixes an issue where `policy_ids` array was
not able to be cleared behind the scenes to create an orphaned
integration policy, even when cluster is able to use the multiple agent
policies feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants