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

podman upgrade fixes #491

Merged
merged 2 commits into from
Nov 13, 2024
Merged

podman upgrade fixes #491

merged 2 commits into from
Nov 13, 2024

Conversation

cbosdo
Copy link
Contributor

@cbosdo cbosdo commented Nov 12, 2024

What does this PR change?

  • Fixes the way the coco and hub services are restarted after upgrade with and without providing the replicas numbers.
  • Adds a missing systemctl daemon-reload

Test coverage

  • No tests: still needs some more mockable layers to be working.

  • DONE

Links

Issue(s): https://github.com/SUSE/spacewalk/issues/25770 https://github.com/SUSE/spacewalk/issues/25771

  • DONE

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

  • No changelog needed

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Before you merge

Check How to branch and merge properly!

Hub upgrade was restarting the existing instance, which is fine for cases where
the user didn't set any replica for it. Coco's upgrade was scaling to
the number of replicas passed as parameters, which doesn't work if the
user didn't set any and has running instances.

This merges both: if no replica is set, just restart the enabled ones.
Otherwise scale to whatever the user provided.
The systemd config needs to be reloaded between the config files
cleanup step and the service upgrade as that one starts with a systemctl
cat.
@cbosdo cbosdo merged commit 5583d8e into uyuni-project:main Nov 13, 2024
7 checks passed
@cbosdo cbosdo deleted the upgrade-fix branch November 13, 2024 07:47
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.

2 participants