-
Notifications
You must be signed in to change notification settings - Fork 107
add tumbleweed migration for uyuni #4437
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
Changes from 2 commits
020868c
1f8f855
7433e21
287250c
350bcf0
85bd638
8d48183
75455b7
71cca52
e32c0e2
af2359d
b44ecb5
a6598ea
e3f13aa
9fbacd1
26830c8
092fdad
55cc51b
b43ef3f
f4d9773
3be32b7
3fb5914
70ac793
5a0604b
9481984
471a551
7d91d7d
9ed6575
8bcb35e
d4ec7cd
4d40546
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,204 @@ | ||
| = Migrate {productname} Proxy from SUSE Micro 5.5 to Tumbleweed | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| :revdate: 2025-10-27 | ||
| :page-revdate: {revdate} | ||
| :description: This page describes how to migrate a {productname} Proxy host from SUSE Micro 5.5 to a fresh openSUSE Tumbleweed installation using the proxy administration tool [command]``mgrpxy``. | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ifeval::[{mlm-content} == true] | ||
|
|
||
| :noindex: | ||
| endif::[] | ||
|
|
||
| This page describes how to migrate a {productname} Proxy host from SUSE Micro 5.5 to a fresh openSUSE Tumbleweed installation using the proxy administration tool [command]``mgrpxy``. | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| This guide was tested on Tumbleweed only. There is no known reason it wouldn’t work on other supported bases, but always validate in a test environment before production. | ||
| ==== | ||
|
|
||
|
|
||
|
|
||
| == Overview of the Proxy Migration Process | ||
|
|
||
| You will: | ||
|
|
||
| * Save proxy configuration from the old system (including Apache/Squid tuning). | ||
| * Reinstall the host with openSUSE Tumbleweed. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May be you want to precise that the |
||
| * Re-register the host using the system reactivation key. | ||
| * Install [command]``mgrpxy`` (and Podman if needed). | ||
| * Restore configuration and run [command]``mgrpxy install podman`` with optional tuning files. | ||
|
|
||
|
|
||
| == Requirements and Considerations | ||
|
|
||
| * Keep the same hostname/FQDN and IP when possible so the server and clients interact with the proxy as before. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will add the fix in the next batch. I do not think this is breaking (though possibly misleading). |
||
| * Ensure you have the “system reactivation key” for the existing proxy system (UI: Systems > select the proxy > Details > Reactivation). | ||
| * Ensure SSH/scp access to move configuration archives off and onto the machine. | ||
|
|
||
| == Migration Procedure | ||
|
|
||
| === Step 1: Save Proxy Configuration and Tuning Files | ||
|
|
||
| .Procedure: Save Proxy Configuration and Tuning Files | ||
| [role="procedure"] | ||
| ____ | ||
| . Copy the Uyuni proxy configuration directory to a safe location: | ||
| + | ||
| [source,shell] | ||
| ---- | ||
| scp -r /etc/uyuni <USER>@<HOST>:/some/where/safe/ | ||
| ---- | ||
| . Identify Apache and Squid tuning files currently in use by the legacy proxy services: | ||
| + | ||
| [source,shell] | ||
| ---- | ||
| systemctl cat uyuni-proxy-httpd.service | grep EXTRA_CONF= | sed 's/.*=-v\([^:]\+\):.*/\1/' | ||
| systemctl cat uyuni-proxy-squid.service | grep EXTRA_CONF= | sed 's/.*=-v\([^:]\+\):.*/\1/' | ||
| ---- | ||
| . Copy those tuning files to the same safe location as well. | ||
| [TIP] | ||
| ==== | ||
| Typical default paths after you copy them back will be: | ||
| * Apache tuning: [path]``/etc/uyuni/proxy/apache.conf`` | ||
| * Squid tuning: [path]``/etc/uyuni/proxy/squid.conf`` | ||
| ==== | ||
| ____ | ||
|
|
||
| === Step 2: Reinstall the Host with openSUSE Tumbleweed | ||
| .Procedure: Reinstall the Host with openSUSE Tumbleweed | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [role="procedure"] | ||
| ____ | ||
| . Reinstall the machine with openSUSE Tumbleweed (server profile recommended). | ||
| . Set the same hostname/FQDN and IP as before when possible. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing with the |
||
| ____ | ||
|
|
||
|
|
||
|
|
||
| === Step 3: Re-register the Host with the Reactivation Key | ||
|
|
||
| .Procedure: Re-register the Host with the Reactivation Key | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [role="procedure"] | ||
| ____ | ||
| . From the {productname} Web UI, obtain the system reactivation key for the existing proxy system record (Systems > Details > Reactivation). | ||
| . Bootstrap/re-register the Tumbleweed host using that reactivation key so it claims the existing system entry. | ||
| [NOTE] | ||
| ==== | ||
| Use your standard bootstrapping process for Tumbleweed hosts in your environment (for example, the bootstrap script or your configuration management), ensuring the reactivation key is applied. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't check, but do we document the possible ways to do this? I know that the bootstrap script works, but not sure this is possible from the UI for example |
||
| ==== | ||
| ____ | ||
|
|
||
|
|
||
|
|
||
| === Step 4: Install {productname} Proxy Tools and Podman | ||
|
|
||
| .Procedure: Install Proxy Tools and Podman | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [role="procedure"] | ||
| ____ | ||
| . Add the Uyuni Master repository and install tools: | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| + | ||
| [source,shell] | ||
| ---- | ||
| zypper ar https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Master/images/repo/Uyuni-Server-POOL-x86_64-Media1 uyuni-server-master | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| zypper ref | ||
| zypper in mgrpxy mgrctl mgradm-bash-completion mgrctl-bash-completion | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ---- | ||
| . Ensure Podman is installed (required to run containers): | ||
| + | ||
| [source,shell] | ||
| ---- | ||
| zypper in podman | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can squash |
||
| ---- | ||
| ____ | ||
|
|
||
|
|
||
|
|
||
| === Step 5: Restore Configuration and Install the Proxy | ||
|
|
||
| .Procedure: Restore Configuration and Install the Proxy | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [role="procedure"] | ||
| ____ | ||
| . Copy back the saved configuration directory to the new host: | ||
| + | ||
| [source,shell] | ||
| ---- | ||
| scp -r <USER>@<HOST>:/some/where/safe/uyuni /etc/ | ||
| ---- | ||
| . If you saved Apache/Squid tuning files, place them at the expected default paths or note their locations for parameters in the next command: | ||
| + | ||
| [source,shell] | ||
| ---- | ||
| # Default paths expected by mgrpxy parameters (adjust/move your files accordingly) | ||
| # Apache tuning: /etc/uyuni/proxy/apache.conf | ||
| # Squid tuning: /etc/uyuni/proxy/squid.conf | ||
| ---- | ||
| . Run the proxy installation with Podman. If you do not use tuning files, omit the corresponding parameters: | ||
| + | ||
| [source,shell] | ||
| ---- | ||
| # With tuning files | ||
| mgrpxy install podman \ | ||
| --tuning-httpd /etc/uyuni/proxy/apache.conf \ | ||
| --tuning-squid /etc/uyuni/proxy/squid.conf | ||
| # If you have no tuning files, remove the tuning parameters: | ||
| # mgrpxy install podman | ||
| ---- | ||
| [NOTE] | ||
| ==== | ||
| In an upcoming release, if tuning files are placed at the default paths noted above, the explicit parameters will not be required. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change is already merged: uyuni-project/uyuni-tools#669. It may even part of the release shipped with this doc. |
||
| ==== | ||
| ____ | ||
|
|
||
|
|
||
| === Step 6: Verify the Proxy | ||
|
|
||
| .Procedure: Verify the Proxy | ||
jcayouette marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [role="procedure"] | ||
| ____ | ||
| . Check containers are running: | ||
| + | ||
| [source,shell] | ||
| ---- | ||
| mgrctl ps | ||
| # or | ||
| podman ps | ||
| ---- | ||
| . Confirm the proxy appears healthy in the {productname} Web UI and that clients using this proxy operate normally. | ||
| ____ | ||
|
|
||
| == Troubleshooting | ||
|
|
||
| * If Podman was missing, install it and rerun the [command]``mgrpxy install`` step. | ||
| * Verify the host’s time, hostname, and IP match expectations. | ||
| * If the host did not reattach to the existing system record, confirm you used the correct reactivation key and repeat the bootstrap. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.