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

[rancher-backup] resourceSet is left in the old version if the rancher-backup app is already the latest in a upgrade-rollback-upgrade scenario #34495

Closed
sowmyav27 opened this issue Aug 26, 2021 · 4 comments
Assignees
Labels
area/backup-recover feature/charts-backup-restore kind/bug Issues that are defects reported by users or that we know have reached a real release priority/2 release-note Note this issue in the milestone's release notes status/cannot-reproduce team/area3

Comments

@sowmyav27
Copy link
Contributor

sowmyav27 commented Aug 26, 2021

Steps:

  1. run rancher 2.5.9
  2. install the rancher-backup 1.0.400
  3. make a backup, name it backup-1
  4. upgrade rancher to 2.6.0
  5. upgrade the rancher-backup to 2.0.0
  6. restore the backup
  7. upgrade rancher to 2.6.0 again

Results:
The resourceSet in the cluster is the one designed for 2.5.9

Expected Results:
The resourceSet in the cluster should be the one for 2.6.0

Reasons:
Since the default resourceSet named rancher-resource-set is in the backup file, so it is restored to the version for Rancher 2.5.9 at step 6. But since the rancher-backup app is already in its latest version, rancher-resource-set is untouched even we upgrade rancher to Rancher 2.6.0 again at step 7.

As the result, we are running the rancher-backup app 2.0.0 with an old version of the resourceSet.
If we make new backups now, the backups will NOT contain any new resources that are defined in new resourceSet in rancher-backup 2.0.0

Workaround:
Edit and upgrade the rancher-backup app to trigger a correction on the resourceSet

SURE-5348

@sowmyav27 sowmyav27 added the kind/bug Issues that are defects reported by users or that we know have reached a real release label Aug 26, 2021
@sowmyav27 sowmyav27 added this to the v2.6 milestone Aug 26, 2021
@sowmyav27 sowmyav27 changed the title Rancher backup backs up resourceset Rancher backup backs up resourceset which causes a mismatch in rancher backup version and its corresponding resourceset on an upgrade/rollback and upgrade of rancher Aug 26, 2021
@jiaqiluo
Copy link
Member

jiaqiluo commented Aug 26, 2021

It is expected to restore the resouceSet as part of the rancher-restoring process because the resoureSet needs to match the current status of Rancher and other apps in the cluster. For example, we restore the backup of rancher 2.5.9, the resourceSet should also be the one designed for rancher 2.5.9, not the one for 2.6.0, although we are running a newer version of the rancher-backup app.


UPDATE:
The above explanation is still valid.
But The issue is edited to reflect another issue that is found in this scenario.

@Jono-SUSE-Rancher Jono-SUSE-Rancher added [zube]: To Triage release-note Note this issue in the milestone's release notes and removed status/final-release-blocker labels Aug 26, 2021
@Jono-SUSE-Rancher Jono-SUSE-Rancher modified the milestones: v2.6, v2.6.1 Aug 26, 2021
@jiaqiluo jiaqiluo changed the title Rancher backup backs up resourceset which causes a mismatch in rancher backup version and its corresponding resourceset on an upgrade/rollback and upgrade of rancher [rancher-backup] resourceSet is left in the old version if the rancher-backup app is already the latest in a upgrade-rollback-upgrade scenario Aug 26, 2021
@cbron cbron modified the milestones: v2.6.1, v2.6.2 Sep 1, 2021
@Jono-SUSE-Rancher Jono-SUSE-Rancher modified the milestones: v2.6.2, v2.6.3 Oct 18, 2021
@sowmyav27 sowmyav27 assigned anupama2501 and unassigned sowmyav27 Oct 19, 2021
@cbron cbron modified the milestones: v2.6.3, v2.6.4 Nov 8, 2021
@zube zube bot changed the title [rancher-backup] resourceSet is left in the old version if the rancher-backup app is already the latest in a upgrade-rollback-upgrade scenario [rancher-backup] resourceSet is left in the old version if the rancher-backup app is already the latest in a upgrade-rollback-upgrade scenario Oct 5, 2022
@zube zube bot modified the milestones: v2.7.1, v2.7.x Oct 7, 2022
@MKlimuszka MKlimuszka removed this from the v2.7.x milestone Jan 23, 2023
@MKlimuszka
Copy link
Collaborator

There was a design meeting in October with a work-around discussed that Eli was supposed to check on with QA.

Otherwise, this needs to be reproduced in 2023-Q1-2.6x and 2023-Q1-2.7x

@eliyamlevy
Copy link
Contributor

eliyamlevy commented Feb 13, 2023

@MKlimuszka Tried to reproduce this issue by upgrading from rancher v2.6.0 and rancher-backups v2.0.0 to rancher v2.7-head and rancher-backups v3.0.0 and the issue did not occur.

The resourceSet was updated after upgrading the backups charts on the upgraded rancher. Since rancher v2.5 is EOL I believe we can cose the backport issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backup-recover feature/charts-backup-restore kind/bug Issues that are defects reported by users or that we know have reached a real release priority/2 release-note Note this issue in the milestone's release notes status/cannot-reproduce team/area3
Projects
None yet
Development

No branches or pull requests