Project

General

Profile

Actions

Bug #33281

closed

Restore should run "upgrade" steps after the data restore finished

Added by Evgeni Golov about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When you restore a backup, you need to restore "the same version", however, this is not as easy as it sounds as you might have a 2.5.2 backup, but restoring to a 2.5.3 as that's the latest release available.
This can result in certain upgrade steps not being run and thus diverge application and database.

To ease that scenario, f-m should run the installer after the config files and databases etc are in place and whatever else "upgrade" steps are defined (for foreman before 2.1 you'd run installer --upgrade and be done, in newer foremans you run installer and then foreman-rake upgrade:run if Katello is present)

To save time, we could look at the metadata of the backup, and only add the upgrade steps if the versions don't match.


Related issues 1 (0 open1 closed)

Has duplicate Foreman Maintain - Bug #33307: Restore should run the installer after data was restoredDuplicateActions
Actions #1

Updated by Evgeni Golov about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Evgeni Golov about 3 years ago

Ref: https://docs.theforeman.org/nightly/Administering_Red_Hat_Satellite/index-foreman-el.html#restoring-from-a-full-backup_admin says " The Foreman instance must have the same host name, configuration, and be the same minor version (X.Y) as the original system." (emphasis mine), so it's not even required to have the same .z

Actions #3

Updated by Evgeni Golov almost 3 years ago

  • Has duplicate Bug #33307: Restore should run the installer after data was restored added
Actions #4

Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Evgeni Golov
  • Pull request https://github.com/theforeman/foreman_maintain/pull/553 added
Actions #5

Updated by Evgeni Golov almost 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF