-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 /Enhance Enrollment version checks for Agent v Kibana #75176
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@ph to review |
@EricDavisX Would be great to get a test case for this. Also testing that 7.9.1 Elastic Agent works with 7.9.0 Kibana as bugfix releases are allowed. |
I'm catching up on tickets, can I ask that we clean up the spec here? Some explicit examples would help with the full semantic version cited. It is a bit confusing to me, thanks so much! @ph @mostlyjason thanks. If we're clear, we can easily do a manual test and we can look into how to automate it, if feasible / worthwhile for the cost. @rahulgupta-qasource can you track this and write a test please? |
Here a few examples: The following Agent - Kibana versions should work: Agent 7.9.0. - Kibana 7.9.0 The following combinations should NOT work: Agent 7.10.0. - Kibana 7.9.0 |
Hi @EricDavisX /@ruflin /@mostlyjason Thank you for the update. We have validated this ticket and below are our observations:- Observations:
Moreover, we have created 02 general testcases for the same :- Queries:-
Expected error message as per #75176_description : Enrollment failed because the Kibana version must be greater than or equal to the major and minor version of Elastic Agent. We recommend you upgrade your Kibana version or use an Elastic Agent of the same version. Please share your feedback.
Please share your feedback.
Please share your feedback and let us know if anything is missing from our end. |
Yes we have a strict |
@ph Some time ago we agree, that bugfix not in sync should be ok. I thin we should loosen this up for 7.10. |
Thanks Ruflin, that was very helpful. @rahulgupta-qasource The feature-bug-fix has not been implemented yet so what you are seeing is as expected. The most interesting case to note is that the version restriction changes made thus far were after 7.8 and the changes were on the Kibana side, so the case of 7.9 Agent connected to 7.8 Kibana scenario is possible, however it is not supported or intended. Also then, it is expected behavior as of now. We will need more than 2 test cases, tho this is a good start! ;)
The following version comparisons need tests written, tho most can be automated and we will plan to do so (timeframe tbd) but for now let us get manual test coverage confirmed and we can update it later on. section 1) very close versions, only patch release differences - all combos should work section 2) somewhat close versions, Agent minor release is 1 or 2 versions back and is older than the stack: section 3) versions where Agent is a minor version or major version greater (newer) than the stack should not work: @ruflin @ph does that look fully correct and complete enough? |
@jfsiii Can you take a look at this issue to loosen up for bug fixes release? We can target that for 7.9.1 too. :) |
@EricDavisX This does look correct, but for section 2) and section 3) we would need to simulate the case with a curl command. |
Ack. We can manage that. The automation test issue to create this support is here: elastic/e2e-testing#243 |
I confirmed with Rahul that we'll re-test this when the feature work / fixes land. We're aware, and this is still a helpful report to confirm where the product behaviors are currently. |
Hi @EricDavisX Thank you for the feedback. We have updated the following 03 testcases and executed them under Fix /Enhance Enrollment version checks for Agent v Kibana TestRun(as per current behavior). https://elastic.testrail.io/index.php?/cases/view/27049 Sure we will re-validate this ticket once feature fix is merged. Please let us know if anything is missing from our end. |
Hi @EricDavisX / @jfsiii We have re-validated this ticket on 7.10.0-SNAPSHOT Kibana cloud environment as feature fix #76238 is merged. Executed 06 and Blocked 01 testcase for agent patch version greater than Kibana patch version under Fix /Enhance Enrollment version checks for Agent v Kibana TestRun due to 7.10.1 artifacts not available. We have also reported 01 bug #76613 while validating this ticket. Query: Please share your feedback and let us know if anything is missing from our end. |
This looks good to me @rahulgupta-qasource . As the fix is Kibana side, I don't see a need to re-do the tests with different Agent flavors, but it does imply that we've confirmed the Agent flavors are all returning the correct version # and format. |
fwiw I was unable to enroll an agent running 7.9.3 with Kibana running 7.9.0. I upgraded Kibana to 7.9.3 and was able to successfully enroll. |
We'd like to add a restriction on enrollment of Elastic Agents where the agent minor version is greater than the kibana minor version. This allows us to make upgrades to the agent while maintaining backwards compatibility for older agent versions (eg. 7.9 agent is not compatible with 7.8 kibana). It also allows us to ship patch updates to fix critical bugs in the agent without requiring the user to upgrade the entire stack.
When the user attempts to enroll an Agent with a higher version, it should print an error message in the log and on the console saying something like "Enrollment failed because the Kibana version must be greater than or equal to the major and minor version of Elastic Agent. We recommend you upgrade your Kibana version or use an Elastic Agent of the same version."
The text was updated successfully, but these errors were encountered: