-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Meta][Ingest Manager] Allow the elastic agent to upgrade itself and his artifacts #20205
Comments
@ruflin @michalpristas @blakerouse Meta issue for upgrade, can you create specifc issues for the items and link them to this one? |
@EricDavisX Upcoming test cases to add for 7.10 ^ |
@ph I would like to reassing |
@blakerouse I have assigned you as the owner of this feature. |
@ph Sounds good. I will ensure, it works! |
Added a point to document the path/files are installed. |
@michalpristas @blakerouse lets keep this issue updated. |
Hi Eric W have observed that changes for availability of upgrade agent option are not reflected on latest 7.10.0-SNAPSHOT cloud environment with following commit 2ace108bc8aab580c0db8b788e03f647fa4927bc. 7.10.0 agent: https://snapshots.elastic.co/7.10.0-bbfba61c/downloads/beats/elastic-agent/elastic-agent-7.10.0-SNAPSHOT-windows-x86_64.zip file Hence, we have reported bug #79644 for the same. We will test this ticket once the above bug is fixed. |
Hi Eric We have observed that changes for this ticket are not reflected on latest 8.10.0-SNAPSHOT cloud environment with commit 6f983728d7f8c2cf065a6d5099157a5cfdc3cd08 and 7.10.0-SNAPSHOT, 8.10.0-SNAPSHOT agents. Created 09 testcases and failed 09 testcases under the TestRun https://elastic.testrail.io/index.php?/runs/view/723&group_by=cases:section_id&group_order=asc We will test this ticket once the changes are reflected on latest Kibana cloud environment. |
@rahulgupta-qasource this is available for test, but as far as I know it can only be assessed via the API, and its not hard to do that, but we are confirming bugs and expectations for now and will post back details on testing. For now, here is a list of tasks / questions from Engineering Productivity side: Agent Upgrade
|
Hi Eric Thank you for sharing the feedback. Please find below the upgrade agent testcases location in Testrail https://elastic.testrail.io/index.php?/suites/view/27&group_by=cases:section_id&group_order=asc&group_id=8423 As per discussion in ingest weekly call, we will validate this ticket once agent is upgradable through UI. |
just posting a summary of what I have learned and relating info:
pre-requisites: With those pre-reqs in place: Via API, like in postman (or curl) you can pass in a specific version and even a specific webserver / download location (this won't be necessary in coming builds, after above work is finished), the call would look like a POST as: https://ericserver:9243/api/fleet/agents/adsf00a7-a185-4dfb-b654-18e5a71d71a7/upgrade
|
the fixes are starting to roll in for this, and we will be re-testing. I don't think all fixes will be in 7.10 BC3 so we can keep pushing and will test around it as possible (it needs 7.11 or 8.0 anyhow) and will chat with Michal about automation nuances for it in the e2e-testing repo (its an interesting one to automate) |
I did another quick end to end test and found we need one more fix - tagged here:
|
the feature was tested and was seen working end to end, with macOS. The 7.10 BC4 build has a signing problems on windows which prevent the feature from working, fyi. |
Hi @EricDavisX Thank you for sharing the feedback. We have validated the ticket for linux tar, deb and rpm under https://elastic.testrail.io/index.php?/plans/view/792 Testplan with latest 7.11-snapshot Kibana build(with commit 06278dcdec4e3d34df6b0b617b70e961aa630f15) and 7.10 BC4 agent: BC4 agents download location: Observations:
Query: After we have successfully upgraded the agent from 7.10.0 BC4 agent to 7.11.0-SNAPSHOT agent on latest 7.11.0-SNAPSHOT Kibana build, how to know the hash of upgraded 7.11.0-SNAPSHOT agent to verify it has upgraded to the latest 7.11.0-SNAPSHOT agent hash currently available on 7.11.0-SNAPSHOT artifact link page. |
@rahulgupta-qasource As posted elsewhere... let us re-do all tests on the next 7.10 snapshot Agent, updating to the next 7.11 (or 8.0) snapshot build. This will get feedback faster than waiting on the BC. From your observations, #22296 - should not relate further to the upgrade testing (not urgently at least), but it seems a bug indeed! we need more info, too, please. #22304 - not a bug, but a good negative test case we can formalize. #22306 - a real bug! That we are surprised by but have put a work-around fix into the Agent. To your query: |
Hi Eric Thank you for sharing the feedback. We have reexecuted the above tests for windows x64 zip, Mac tar, Linux tar, Linux deb and rpm under TestPlan https://elastic.testrail.io/index.php?/plans/view/798 with latest 7.10 agent snapshot and 7.11-0-snapshot kibana cloud environment. We have also reported bug elastic/kibana#82259 for the same. Please let us know if anything is missing from our end. |
I put a PR in to our private elastic/siem-team repo in support of testing this in our demo environment, fyi |
@EricDavisX @michalpristas Can we close this? |
closed is great - thanks PH. |
Overall
Design
Ingest Manager
Elastic Agent
Documentation
Endpoint
Other feature
The text was updated successfully, but these errors were encountered: