@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 Define upgrades rules and behavior. (Limit to upgrades, what happens on failure) @ruflin to @blakerouse or @michalpristas if you don't mind?
@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:
to test this, the Agent must be installed... with the Agent 'install' subcommand (not by just 'running' it)
to test this, the current deployed Agent version must be greater or equal to 7.10 (first support in Agent)
to test this, the Kibana version must be greater than the Agent version installed (so... test with a 7.11 Kibana and 7.10 Agent)
With those pre-reqs in place:
Via the UI, you should see the option to upgrade is available if Kibana version is > than current Agent version. Then when you click that option for that agent, it should automatically download the new Agent and install it. #easy
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
with a body of: {"source_uri":"https://snapshots.elastic.co/7.11.0-8a4554fc/downloads/","version":"7.11.0-SNAPSHOT"}
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:
https://github.com/elastic/beats/issues/21971
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:
Linux rpm: https://staging.elastic.co/7.10.0-c650b297/downloads/beats/elastic-agent/elastic-agent-7.10.0-x86_64.rpm
Linux deb: https://staging.elastic.co/7.10.0-c650b297/downloads/beats/elastic-agent/elastic-agent-7.10.0-amd64.deb
Linux tar: https://staging.elastic.co/7.10.0-c650b297/summary-7.10.0.html/elastic-agent-7.10.0-linux-x86_64.tar.gz
Observations:
Query:
Could you please look into our following 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,
To your query:
How to know the hash of upgraded 7.11.0-SNAPSHOT agent?
Answer: I think we can traverse Agent logs to look for the url it is downloading from and match that to the current one. We can do that manually one time, now to check it - and then in the test content we can assume that if the version increments as seen in the UI to the next version (from 7.10.0 to 7.11.0 for example), that this is enough validation for the UI based suites.
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 https://github.com/elastic/kibana/issues/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
Most helpful comment
@ph Sounds good. I will ensure, it works!