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] Avoid breaking setup when compatible package is not available in registry #125525

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

joshdover
Copy link
Contributor

@joshdover joshdover commented Feb 14, 2022

Summary

Fixes #125409

This changes our package fetching logic to avoid throwing errors when a (compatible) package is no longer available in the registry, but the cluster already has a version of the package installed.

It also introduces a new ignore_constraints parameter on the install package API which enables writing an automated test for this scenario easily, but may be useful in other scenarios as well.

You can test this with the following:

Checklist

Delete any items that are not applicable to this PR.

@joshdover joshdover added auto-backport Deprecated - use backport:version if exact versions are needed release_note:fix Team:Fleet Team label for Observability Data Collection Fleet team v8.0.1 v8.1.0 v8.2.0 labels Feb 15, 2022
@joshdover joshdover marked this pull request as ready for review February 15, 2022 13:30
@joshdover joshdover requested a review from a team as a code owner February 15, 2022 13:30
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

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.

LGTM 🚀

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

  • 💚 Build #23933 succeeded b0a73178791f16f09e744db3a407bc9010daaf85

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

@joshdover joshdover merged commit 928638e into elastic:main Feb 15, 2022
@joshdover joshdover deleted the fleet/fix-125409 branch February 15, 2022 15:20
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 15, 2022
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 15, 2022
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.1
8.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 16, 2022
…ilable in registry (#125525) (#125672)

* [Fleet] Avoid breaking setup when compatible package is not available in registry (#125525)

(cherry picked from commit 928638e)

* [Fleet] Use registry version check on main (#125495)

* [Fleet] Get package info should not store the whole package (#123509)

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
kibanamachine added a commit that referenced this pull request Feb 16, 2022
…ilable in registry (#125525) (#125671)

* [Fleet] Avoid breaking setup when compatible package is not available in registry (#125525)

(cherry picked from commit 928638e)

* [Fleet] Get package info should not store the whole package (#123509)

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
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 release_note:fix Team:Fleet Team label for Observability Data Collection Fleet team v8.0.1 v8.1.0 v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Fleet setup fails if package was previously installed that is no longer compatible
5 participants