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

[Ingest Manager] Fix agent version check to work with SNAPSHOT versions #70796

Merged
merged 2 commits into from
Jul 6, 2020

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Jul 6, 2020

Summary

Fix a bug introduced here #70339
Resolved #70726

During enrollment we check that the kibana version is >= to the agent version, this was not working with prerelease tag.
This PR fix that and add the tests to ensure it's working as expected.

the semver module has an option includePrerelease: true|false but this seems to doesn't work as expected, so I just removed the prelease tag manually.

@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 v7.9.0 Team:Fleet Team label for Observability Data Collection Fleet team labels Jul 6, 2020
@nchaulet nchaulet requested review from jfsiii and a team July 6, 2020 13:25
@nchaulet nchaulet self-assigned this Jul 6, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

Copy link
Contributor

@jfsiii jfsiii left a comment

Choose a reason for hiding this comment

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

Works for me. Thanks for the tests and comments.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

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 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ingest Manager] Enroll of agent call fails with 400 - at this route: /api/ingest_manager/fleet/agents/enroll
4 participants