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

Add procedures to migrate from RHEL8to9 using backups #3103

Merged

Conversation

AkshayGadhaveRH
Copy link
Contributor

Backups can be used to migrate existing Project and Smart Proxy servers from RHEL8 to RHEL9. The backups from Project can be restored using the backup restore as well as clone method. The backups from Smart Proxies can only be restored using the backup restore method. Adding sections to backup and restore/clone.

JIRA link:
https://issues.redhat.com/browse/SAT-10790

  • I am okay with my commits getting squashed when you merge this PR.
  • I am familiar with the contributing guidelines.

Please cherry-pick my commits into:

  • Foreman 3.11/Katello 4.13
  • Foreman 3.10/Katello 4.12
  • Foreman 3.9/Katello 4.11 (Satellite 6.15; orcharhino 6.8)
  • Foreman 3.8/Katello 4.10
  • Foreman 3.7/Katello 4.9 (Satellite 6.14)
  • Foreman 3.6/Katello 4.8
  • Foreman 3.5/Katello 4.7 (Satellite 6.13; orcharhino 6.6/6.7)
  • We do not accept PRs for Foreman older than 3.5.

Copy link
Member

@evgeni evgeni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not mark all RHEL→EL changes, but you get the idea ;-)

@pr-processor pr-processor bot added the Waiting on contributor Requires an action from the author label Jul 1, 2024
@AkshayGadhaveRH AkshayGadhaveRH force-pushed the migrating_to_rhel9_using_backup branch from fd04755 to b5f8b9f Compare July 3, 2024 06:21
@pr-processor pr-processor bot added Needs re-review and removed Waiting on contributor Requires an action from the author labels Jul 3, 2024
@AkshayGadhaveRH AkshayGadhaveRH marked this pull request as ready for review July 9, 2024 04:52
@AkshayGadhaveRH AkshayGadhaveRH force-pushed the migrating_to_rhel9_using_backup branch from b5f8b9f to c4db3b1 Compare July 9, 2024 04:55
Copy link
Contributor

@asteflova asteflova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only have a two broad comments right now, but before I take a look at this PR in more detail, I'm wondering about the placement of the procedure. @apinnick can you please take a look here? Will users look for a migration procedure in a guide that is called "Upgrading"?

@apinnick
Copy link
Contributor

apinnick commented Jul 9, 2024

I only have a two broad comments right now, but before I take a look at this PR in more detail, I'm wondering about the placement of the procedure. @apinnick can you please take a look here? Will users look for a migration procedure in a guide that is called "Upgrading"?

@asteflova No, users would not expect to find this in an Upgrade guide.

This kind of migration is a sub-use case of backup/restore, so it belongs in the Administering guide, which has procedures for migrating databases and for backing up servers.

@AkshayGadhaveRH
Copy link
Contributor Author

@apinnick @asteflova so this procedure works as an alternative to the leapp upgrade of the OS which comes under the upgrade guide. Should I move the leapp section as well to Administering guide in that case? For 3.1, where we had EL7 -> EL8 upgrade using leapp, it was placed in the upgrade guide. But I see the point in moving it to Administering guide instead. @evgeni @Lennonka what do you think?

@evgeni
Copy link
Member

evgeni commented Jul 10, 2024

Please keep both (leapp and migration) upgrade paths in the upgrade guide.

@evgeni
Copy link
Member

evgeni commented Jul 10, 2024

This kind of migration is a sub-use case of backup/restore, so it belongs in the Administering guide, which has procedures for migrating databases and for backing up servers.

But it's a migration with the sole purpose of the upgrade of the underlying OS.

@apinnick
Copy link
Contributor

This kind of migration is a sub-use case of backup/restore, so it belongs in the Administering guide, which has procedures for migrating databases and for backing up servers.

But it's a migration with the sole purpose of the upgrade of the underlying OS.

@evgeni In that case, I recommend calling this an upgrade in the title.

It's OK to mention that the upgrade is also a migration, in the introduction. That would eliminate confusion.

@evgeni
Copy link
Member

evgeni commented Jul 10, 2024

So if the Leapp one is called "Upgrading {Project} or {SmartProxy} to {EL} 9 in-place by using Leapp" this one would be "Upgrading {Project} or {SmartProxy} to {EL} 9 by migrating"?

@AkshayGadhaveRH
Copy link
Contributor Author

@evgeni @apinnick maybe we can have a chapter for Upgrading from EL 8 to 9, and under it two separate chapters:

  1. Using LEAPP
  2. Using Backups

Though technically we are not upgrading using backups, so I'm not very sure about this.

@evgeni
Copy link
Member

evgeni commented Jul 10, 2024

I think that's a good idea!

@apinnick
Copy link
Contributor

So if the Leapp one is called "Upgrading {Project} or {SmartProxy} to {EL} 9 in-place by using Leapp" this one would be "Upgrading {Project} or {SmartProxy} to {EL} 9 by migrating"?

@evgeni
IMO, you don't need "by migrating" unless you have, say, lots of different ways to upgrade {EL}. If that were the case, then you might need "by using migration", to show a distinction between different ways to do the same thing.

In general, short titles are good. :-)
They're easier for the user to scan and they minimize the ugly wrap-around effect in the nav menu.

@apinnick
Copy link
Contributor

@evgeni @apinnick maybe we can have a chapter for Upgrading from EL 8 to 9, and under it two separate chapters:

1. Using LEAPP

2. Using Backups

Though technically we are not upgrading using backups, so I'm not very sure about this.

Ah, that's a totally different case! You do have two methods for upgrading EL, so it is appropriate to distinguish between the methods. "Using backups" is fine. I might have chosen "by backing up and restoring", but that is longer. Some repos allow "backup/restore". I don't recall whether our guidelines allow that. I'm sure whatever you choose will be fine.

Please ensure that there is a description of the use cases so that users know which upgrade method they should use.

@AkshayGadhaveRH AkshayGadhaveRH force-pushed the migrating_to_rhel9_using_backup branch from 7cebe81 to 8dbbc3b Compare July 12, 2024 08:53
Copy link
Contributor

@maximiliankolb maximiliankolb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made some suggestions to use attributes in favor of Satellite/Foreman server or Capsule/Smart Proxies.

@pr-processor pr-processor bot added Waiting on contributor Requires an action from the author and removed Needs re-review labels Jul 16, 2024
@AkshayGadhaveRH AkshayGadhaveRH force-pushed the migrating_to_rhel9_using_backup branch from 8dbbc3b to cfe2a88 Compare July 17, 2024 05:44
@pr-processor pr-processor bot added the Waiting on contributor Requires an action from the author label Aug 19, 2024
Akshay Gadhave added 14 commits August 20, 2024 12:52
Backups can be used to migrate existing Project and Smart Proxy servers from RHEL8 to RHEL9.
The backups from Project can be restored using the backup restore as well as clone method.
The backups from Smart Proxies can only be restored using the backup restore method.
Adding sections to backup and restore/clone.
Adding the section to upgrade using leapp

JIRA link:
https://issues.redhat.com/browse/SAT-10790
- Instead of including modules, inserted links to the Administering doc for the relevant sections.
- Applied conditionals to render for all builds except foreman-deb.
- Haven't removed the assembly created earlier.
The LEAPP and migration sections will be set under an overarching chapter, changing the structure accordingly.
Added some additional information about LEAPP vs migration and clone vs restore.
- Renamed file.
- Fixed typos.
- Reworded some sentences.
- Moved some lines from Leapp intro to the chapter intro.
- Fixed wording.
- Added the chapter to the disconnected guide.
Since cloning is done on a plain EL 9 system, adding information about that.
- Removed information that is already in the Prerequisites section.
- Fixed a link.
- Changed attribute.
@pr-processor pr-processor bot added Needs re-review and removed Waiting on contributor Requires an action from the author labels Aug 20, 2024
@Lennonka Lennonka merged commit 7e0db3a into theforeman:master Aug 20, 2024
9 checks passed
Lennonka pushed a commit that referenced this pull request Aug 20, 2024
Backups can be used to migrate existing Project and Smart Proxy servers from RHEL8 to RHEL9.
The backups from Project can be restored using the backup restore as well as clone method.
The backups from Smart Proxies can only be restored using the backup restore method.
Adding sections to backup and restore/clone.

JIRA link:
https://issues.redhat.com/browse/SAT-10790
@Lennonka
Copy link
Contributor

Cherry-picked:

@maximiliankolb
Copy link
Contributor

Thank you @AkshayGadhaveRH 🚀

ColeHiggins2 pushed a commit to ColeHiggins2/foreman-documentation that referenced this pull request Aug 21, 2024
Backups can be used to migrate existing Project and Smart Proxy servers from RHEL8 to RHEL9.
The backups from Project can be restored using the backup restore as well as clone method.
The backups from Smart Proxies can only be restored using the backup restore method.
Adding sections to backup and restore/clone.

JIRA link:
https://issues.redhat.com/browse/SAT-10790

(cherry picked from commit 7e0db3a)
asteflova pushed a commit that referenced this pull request Aug 22, 2024
Backups can be used to migrate existing Project and Smart Proxy servers from RHEL8 to RHEL9.
The backups from Project can be restored using the backup restore as well as clone method.
The backups from Smart Proxies can only be restored using the backup restore method.
Adding sections to backup and restore/clone.

JIRA link:
https://issues.redhat.com/browse/SAT-10790

(cherry picked from commit 7e0db3a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants