-
Notifications
You must be signed in to change notification settings - Fork 106
Uyuni proxy upgrade keichwa #388
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9911d6b
start with proxy
keichwa a41c132
proxy upgrade procedure
keichwa 5242c65
eadd uyuni proxy entry
keichwa 20769cf
Update modules/upgrade/pages/proxy-uyuni.adoc
keichwa 038615d
upgrade uyuni server: webui and autoyast
keichwa 653fbad
rework according to feedback
keichwa 7a4bec1
disable proxy-autoyast-uyuni.adoc which is currently untested
keichwa 0448b58
Update modules/upgrade/pages/proxy-autoyast-uyuni.adoc
keichwa f26fe26
Update modules/upgrade/pages/proxy-uyuni.adoc
keichwa 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
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
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
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
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,51 @@ | ||
[[proxy-uyuni-upgrade]] | ||
= Proxy - Upgrade Procedure | ||
|
||
Before you perform any proxy update, schedule a maintenance window. | ||
The clients registered to {productname} through the proxy will not be able to connect to {productname} while the update is in progress. | ||
For more information about maintenance windows, see xref:administration:maintenance-window.adoc[]. | ||
|
||
|
||
|
||
== Upgrade the Proxy | ||
|
||
To upgrade a proxy you first stop the proxy service, then you replace the software repositories and update the software, and finally you restart the proxy service. | ||
|
||
|
||
|
||
.Procedure: Updating the {productname} Proxy | ||
. On the {productname} Proxy, stop the proxy service: | ||
+ | ||
---- | ||
spacewalk-proxy stop | ||
---- | ||
|
||
// there is no chance to fix any issues during migration, | ||
// make sure you have a backup before continuing. If you are | ||
// running Uyuni server on a virtual machine, it is advisable | ||
// to create a snapshot before performing the migration! | ||
|
||
. Replace and refresh software repositories: | ||
+ | ||
---- | ||
mv /etc/zypp/repos.d /etc/zypp/repos.d.old | ||
mkdir /etc/zypp/repos.d | ||
zypper ar -n "Main Repository" http://download.opensuse.org/distribution/leap/15.2/repo/oss repo-oss | ||
zypper ar -n "Main Update Repository" http://download.opensuse.org/update/leap/15.2/oss repo-update | ||
zypper ar -n "Non-OSS Repository" http://download.opensuse.org/distribution/leap/15.2/repo/non-oss repo-non-oss | ||
zypper ar -n "Update Repository (Non-Oss)" http://download.opensuse.org/update/leap/15.2/non-oss/ repo-update-non-oss | ||
zypper ar -n "Uyuni Server Stable" https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/images/repo/Uyuni-Server-POOL-x86_64-Media1/ uyuni-server-stable | ||
keichwa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
zypper ref | ||
---- | ||
|
||
. Update software packages: | ||
+ | ||
---- | ||
zypper -n dup --allow-vendor-change | ||
---- | ||
|
||
. Reboot the {productname} Proxy: | ||
+ | ||
---- | ||
shutdown -r now | ||
---- |
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.
Huh? what's this :-?
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.
It's creating a backup of the old repos directory but this is wrong. What if the user has some other repositories enabled?
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.
On a proxy, it should not. This is not what worries me most. The whole script is what worries me. I think it's the wrong way to do the uprade.
Uh oh!
There was an error while loading. Please reload this page.
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.
Funny enough it seems we tell people to install the Uyuni Proxy not as a client: https://www.uyuni-project.org/uyuni-docs/uyuni/installation/install-proxy-uyuni.html
I don't know why this is this way. To me it seems strange and wrong, but OK. For now it is how it is. So the script seems to make sense.
Uh oh!
There was an error while loading. Please reload this page.
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.
Ah now I understand it. You tell them to it that way, but then you say this: https://www.uyuni-project.org/uyuni-docs/uyuni/installation/uyuni-proxy-registration.html (BTW the channel name for
spacewalk-common-channels
is notuyuni-proxy-stable-leap-151
botuyuni-proxy-stable-leap
)So in the end this migration script is still wrong, as the proxies will be clients. If you run this script, yeah, the migration will work, but then the Server will still think the proxy is a Leap 15.1, so I guess it will crate a mess.
This what I suspect that needs to be done if you want to migrate:
spacewalk-common-channels opensuse_leap15_2 opensuse_leap15_2-non-oss opensuse_leap15_2-non-oss-updates opensuse_leap15_2-updates opensuse_leap15_2-uyuni-client uyuni-proxy-stable-leap-152
spacewalk-repo-sync -p opensuse_leap15_2-x86_64
(this will sync the parent and all children).spacewalk-proxy stop; zypper ref; zypper -n dup --allow-vendor-change; shutdown -r now
directly on the proxies).And that should be all.
As for the procedure to add the proxy, itself, I'd say its wrong. What should be required is: Clean openSUSE Leap 15.2 installed and 100% updated (now that we are switching), and then
Proxy Registration
and finallyUyuni Proxy Setup
(BTW the requirements still say Leap 15.1)BTW I just noticed we don't have
uyuni-proxy-stable-leap-152
, so time to create it.Uh oh!
There was an error while loading. Please reload this page.
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.
OK, I thought a little about all this mess. Let's do the following:
Sounds fair enough? That gives some more time to test the migration without that much pressure.
Please ACK tomorrow morning if we have an agreement.
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.
I answered too quickly yesterday. While this script probably would (sort of) work, the clean way to upgrade the proxy would be to initiate an autoyast upgrade from the server. This way all the information regarding the proxy would stay consistent. We even had this documented some time ago; biggest issue is providing a working autoyast file which is a bit tricky.
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.
Maybe this could even be fixed up by refreshing the information from the proxy, but yes, the only really clean way is to perform the upgrade via autoyast so the server is aware of any modifications done to the proxy.
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.
I think that providing manual instructions should be fine as well (if it is easier) as long as they are accurate. Something like what I described above.
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.
Yes, especially as it is much easier than to fiddle around with autoyast files. We just need to confirm that the changes in the proxy's system can be updated to the new state afterwards.