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] Delete non existing streams in overrideInputs #116998

Merged

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Nov 1, 2021

Summary

Closes #116985

When you try to upgrade from 7.12 to 7.16 you get that error

Screen Shot 2021-10-29 at 11 56 51 AM

That error is here because we do not delete datastreams that do not exists anymore in the auto upgrade feature, that PR should change that.

@nchaulet nchaulet added bug Fixes for quality problems that affect the customer experience v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 v8.1.0 labels Nov 1, 2021
@nchaulet nchaulet self-assigned this Nov 1, 2021
@nchaulet nchaulet requested a review from a team as a code owner November 1, 2021 17:35
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@nchaulet nchaulet requested a review from kpollich November 1, 2021 19:49
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @nchaulet

Copy link
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@@ -1111,7 +1112,9 @@ export function overridePackageInputs(
}

if (override.vars) {
originalInput = deepMergeVars(originalInput, override) as NewPackagePolicyInput;
const indexOfInput = inputs.indexOf(originalInput);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh I see the issue. Nasty bug - thank you for tracking it down. We were mutating this object but never actually replacing it in the original array. Good catch!

@nchaulet nchaulet merged commit 63cf1d0 into elastic:main Nov 2, 2021
@nchaulet nchaulet deleted the fix-116985-delete-sttreams-in-override-input branch November 2, 2021 12:43
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 2, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 2, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0
7.16

The backport PRs will be merged automatically after passing CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.16.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] auto upgrade pacakge policies do not handle correctly stream deletion
4 participants