Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

[Fleet] Test full upgrade migration scenarios #1133

Open
ruflin opened this issue May 5, 2021 · 3 comments
Open

[Fleet] Test full upgrade migration scenarios #1133

ruflin opened this issue May 5, 2021 · 3 comments
Labels
Team:Fleet Label for the Fleet team Testing

Comments

@ruflin
Copy link

ruflin commented May 5, 2021

Fleet has many movable parts and it is tricky to test all upgrade scenarios manually. The most common upgrade scenario likely looks as following:

  • Upgrade Elasticsearch / Kibana
  • Upgrade Elastic Agent with Fleet Server
  • Upgrade packages
  • Upgrade Elastic Agents

But it could well be, that the packages are upgraded before fleet-server or Elastic Agent is upgrade. It would be nice to have multiple upgrade scenarios where the exact versions before and after the migration of the different components can be passed in to see if it works e2e. I'll use the system package as the example below as it is the one I think we should test first.

Scenario

  • Spin up Elastic Stack with Elastic Agent and System package in version 7.13
  • Check if data is shipping
  • Upgrade Elasticsearch and Kibana to 7.14
  • Check data that is still shipping and Elastic Agents / Fleet Server are healthy
  • Upgrade Elastic Agent with Fleet Server to 7.14 through API call to Kibana to trigger upgrade
  • Check healthy and data shipping
  • Upgrade Elastic Agents to 7.14 through API call to Kibana to trigger upgrade
  • Check healthy and data shipping
  • Upgrade System package to latest version
  • Check healthy and data shipping

Every version above could be replaced through a variable. It would be nice if the setup would allow to pass in the variables to run. This would make it very easy to reproduce a certain scenario where a bug has been reported.

There are also variations to the above scenario

  • Skip a minor release for the Elastic Stack upgrade
  • Upgrade packages first before Elastic Agents are upgrade
  • Upgrade Elastic Agents manually instead of through Fleet
  • Try error scenarios for upgrade order that should not work, like upgrading the Elastic Agent first
@mdelapenya mdelapenya added area:test Anything related to the Test automation priority:medium Important work, but not urgent or blocking. size:M 1-5 days Team:Automation Label for the Observability productivity team Team:Fleet Label for the Fleet team triaged Triaged issues will end up in Backlog column in Robots GH Project size:L 1-2 weeks and removed size:M 1-5 days labels May 5, 2021
@EricDavisX EricDavisX changed the title [Fleet] Test full migration scenarios [Fleet] Test full upgrade migration scenarios May 6, 2021
@kuisathaverat kuisathaverat added Testing and removed Team:Automation Label for the Observability productivity team area:test Anything related to the Test automation priority:medium Important work, but not urgent or blocking. size:L 1-2 weeks triaged Triaged issues will end up in Backlog column in Robots GH Project labels Dec 30, 2022
@kuisathaverat
Copy link
Contributor

@cachedout I am not sure if we should move this issue to other repo

@cachedout
Copy link
Contributor

@kuisathaverat Which repo were you thinking of?

@kuisathaverat
Copy link
Contributor

kuisathaverat commented Feb 12, 2024

@cachedout I am not sure, the issue is related to the e2e framework, we have deprecated it so if we plan to do something about upgrades testing we should move it to the robots repo or oblt clusters. An upgrade test is pretty straightforward, the only part to implement is the verifications we want to put in place.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Team:Fleet Label for the Fleet team Testing
Projects
None yet
Development

No branches or pull requests

4 participants