-
Notifications
You must be signed in to change notification settings - Fork 46
Add z stream and y stream instructions to user upgrade docs. #787
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
Open
aidenfine
wants to merge
3
commits into
theforeman:master
Choose a base branch
from
aidenfine:z-stream-upgrade-doc
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # Updating foremanctl | ||
|
|
||
| Foremanctl releases are locked to specific Foreman images with version-compatible dependencies and plugins. Your system's installed `foreman-release` repository configuration RPM locks your system to the correct foremanctl version, which in turn will pull the correct Foreman images. For nearly all install situations, upgrading your Foreman server should be approached through upgrading `foreman-release` and/or `foremanctl`. | ||
|
|
||
| Scroll to the correct procedure below which matches your installation environment type (RPM and disconnected RPM). | ||
|
|
||
| # Updating foremanctl z-stream (x.y.1, x.y.2) | ||
|
|
||
| ## Updating foremanctl from RPM install | ||
|
|
||
| All steps must be run as root user. | ||
|
|
||
| 1. Run `foremanctl health` to ensure your existing Foreman server is healthy. Correct any issues before continuing. | ||
| 2. Consider backing up your Foreman environment before update. See [Backup and Restore](backup-restore.md). | ||
| 3. update the foremanctl package: | ||
| - `dnf upgrade foremanctl` | ||
| 4. Pull updated container images: | ||
| - `foremanctl pull-images` | ||
| - z-stream updates do not change container image tags, but the images behind those tags are updated with bug fixes and security patches. This step ensures you get the latest images. | ||
| 5. Run update tasks by re-deploying your Foreman environment: | ||
| - `foremanctl deploy` | ||
| - Please see [Parameters](parameters.md) for additional deployment options. | ||
| 6. Restart foreman services | ||
| - `systemclt restart foreman.target` | ||
|
|
||
|
|
||
| ## Updating foremanctl from disconnected RPM install | ||
|
|
||
| All steps must be run as root user. | ||
|
|
||
| 1. On your disconnected environment, run `foremanctl health` to ensure your existing Foreman server is healthy. Correct any issues before continuing. | ||
| 2. Consider backing up your Foreman environment before update. See [Backup and Restore](backup-restore.md). | ||
| 3. On a connected machine, install the same Foreman Release repository as your disconnected environment: | ||
| - `dnf install https://yum.theforeman.org/releases/<current-version>/el9/x86_64/foreman-release.rpm` | ||
| 4. On a connected machine, create a local mirror of the foreman repository: | ||
| - `reposync -n -p /path/to/mirror --download-metadata --repoid=foreman` | ||
| 5. On a connected machine, install foremanctl and configure it identically to your disconnected environment: | ||
| - `dnf install foremanctl` | ||
| - Note the version of foremanctl which installed. | ||
| - Configure your connected foremanctl to use the same features as your disconnected environment. | ||
| 6. On a connected machine, pull updated container images: | ||
| - `foremanctl pull-images` | ||
| - z-stream updates do not change container image tags, but the images behind those tags are updated. This step ensures you get the latest images. | ||
| - Confirm the correct images were downloaded by running `podman images`. All images from your previous-version disconnected environment should be present on the connected environment. If images are missing, ensure foremanctl features parameters are identical between machines. | ||
| - Run `podman save $(podman images --format "{{.Repository}}:{{.Tag}}" | tr '\n' ' ') -o <filename>.tar` to export all downloaded images as a tarball. | ||
| 7. Using an available transport mechanism, move the following to your disconnected environment: | ||
| - The foreman repo mirror and contents (contains the updated foremanctl). | ||
| - The foremanctl container image tarball. | ||
| 8. On the disconnected environment, set up the repository mirrors: | ||
| - Copy the mirrored directory to a stable location (e.g., `/var/repos/foreman`). | ||
| - Redirect the existing repository configuration to use your local mirror: | ||
| - `dnf config-manager --setopt=foreman.baseurl=file:///var/repos/foreman --save` | ||
| - Verify the mirror is serving the correct package version with `dnf info foremanctl`. This version should match step 5. | ||
| 9. On the disconnected environment, stage the updated container images: | ||
| - `podman load -i <filename>.tar` | ||
| 10. On the disconnected environment, update the foremanctl package: | ||
| - `dnf upgrade foremanctl` | ||
| 11. Run update tasks by re-deploying your Foreman environment: | ||
| - `foremanctl deploy` | ||
| - Please see [Parameters](parameters.md) for additional deployment options. | ||
| 12. Restart foreman services | ||
| - `systemclt restart foreman.target` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 a great add. Love it.