-
Notifications
You must be signed in to change notification settings - Fork 97
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
Docs to upgrade disconnected foreman/sat #3636
base: master
Are you sure you want to change the base?
Conversation
The PR preview for 3d347e6 is available at theforeman-foreman-documentation-preview-pr-3636.surge.sh The following output files are affected by this PR: |
guides/common/modules/proc_updating-disconnected-server-on-EL9.adoc
Outdated
Show resolved
Hide resolved
guides/common/modules/proc_updating-disconnected-server-on-EL9.adoc
Outdated
Show resolved
Hide resolved
* {RepoRHEL8BaseOS} | ||
* {RepoRHEL8AppStream} | ||
* {RepoRHEL8ServerSatelliteServerProjectVersion} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be the RHEL9 repos, not RHEL8.
Also need to add a prerequisite that your disconnected 6.16 Satellite must already be on RHEL9 before upgrading. (Can link to the LEAPP documentation as well.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metadata_expire=-1 | ||
gpgcheck=0 | ||
cost=500 | ||
baseurl=file:///<baseos location>/content/dist/rhel8/8/x86_64/baseos/os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
baseurl=file:///<baseos location>/content/dist/rhel8/8/x86_64/baseos/os | |
baseurl=file:///<baseos location>/content/dist/rhel9/9/x86_64/baseos/os |
metadata_expire=-1 | ||
gpgcheck=0 | ||
cost=500 | ||
baseurl=file:///<appstream location>/content/dist/rhel8/8/x86_64/appstream/os |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
baseurl=file:///<appstream location>/content/dist/rhel8/8/x86_64/appstream/os | |
baseurl=file:///<appstream location>/content/dist/rhel9/9/x86_64/appstream/os |
metadata_expire=-1 | ||
gpgcheck=0 | ||
cost=500 | ||
baseurl=file:///<foreman location>/content/dist/layered/rhel8/x86_64/satellite/6.15/os/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
baseurl=file:///<foreman location>/content/dist/layered/rhel8/x86_64/satellite/6.15/os/ | |
baseurl=file:///<foreman location>/content/dist/layered/rhel9/x86_64/satellite/6.17/os/ |
We will need to add a link or reference https://access.redhat.com/solutions/7030156 in section 2.2 and have them upgrade to RHEL 9 before starting with the Satellite part |
Updates the instructions to upgrade 'in-place' for disconnected environments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make the instructions more RHEL-neutral for upstream?
. Download the debug certificate of the organization and store it locally at `/etc/pki/katello/certs/org-debug-cert.pem` or a location of your choosing. | ||
For more information, see {AdministeringDocURL}Creating_an_Organization_Debug_Certificate_admin[Creating an Organization Debug Certificate] in _{AdministeringDocTitle}_. | ||
. Create a Yum configuration file under `/etc/yum.repos.d`, such as `_{project-context}-disconnected_.repo`, with the following contents: | ||
. Export these repositories via Syncable format. `hammer content-export complete repository --id=<repo_id> --format=syncable` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. Export these repositories via Syncable format. `hammer content-export complete repository --id=<repo_id> --format=syncable` | |
. Export these repositories by using syncable format: | |
+ | |
[options="nowrap" subs="+quotes,verbatim,attributes"] | |
---- | |
$ hammer content-export complete repository --id=_Repo_ID_ --format=syncable | |
---- |
.Procedure on the disconnected {ProjectServer} | ||
. Copy the exported directories over to your disconnected {ProjectServer} | ||
|
||
[options="nowrap" subs="+quotes"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[options="nowrap" subs="+quotes"] |
You probably don't need this here. This introduces a code block.
+ | ||
[options="nowrap" subs="+quotes,verbatim,attributes"] | ||
[options="nowrap" subs="+quotes"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[options="nowrap" subs="+quotes"] | |
[options="nowrap" subs="+quotes,attributes"] |
You still need attributes
because you're using attributes in the code below.
[Satellite] | ||
name=Satellite | ||
mediaid=None | ||
metadata_expire=-1 | ||
gpgcheck=0 | ||
cost=500 | ||
baseurl=file:///<export location>/content/dist/layered/rhel8/x86_64/satellite/{ProjectVersion}/os/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Satellite] | |
name=Satellite | |
mediaid=None | |
metadata_expire=-1 | |
gpgcheck=0 | |
cost=500 | |
baseurl=file:///<export location>/content/dist/layered/rhel8/x86_64/satellite/{ProjectVersion}/os/ | |
[{Project}] | |
name={Project} | |
mediaid=None | |
metadata_expire=-1 | |
gpgcheck=0 | |
cost=500 | |
baseurl=file:///<export location>/content/dist/layered/rhel8/x86_64/{project-context}/{ProjectVersion}/os/ |
Can we upstreamize this? Will it work for Foreman on EL?
. Use the health check option to determine if the system is ready for update. | ||
On first use of this command, `{foreman-maintain}` prompts you to enter the hammer admin user credentials and saves them in the `/etc/foreman-maintain/foreman-maintain-hammer.yml` file. | ||
+ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ |
This is needed for proper formatting.
Updates the instructions to upgrade 'in-place' for disconnected environments.
What changes are you introducing?
Adds steps on repositories needed to update a satellite in place for both RHel 8 and 9.
Why are you introducing these changes? (Explanation, links to references, issues, etc.)
The existing instructions for this upgrade is outdated. The existing ones are only relevant upto sat 6.11. 6.12 on wards we have what are called "syncable" exports which is more straight forward.
This commit specifically addresses the latest project version. Another PR will be submitted for 6.16 and before.
Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
Checklists
Please cherry-pick my commits into: