Skip to content

Use spacewalk-hostname-rename from uyuni-update-config service #10352

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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbosdo
Copy link
Contributor

@cbosdo cbosdo commented May 16, 2025

What does this PR change?

Watch out for UYUNI_HOSTNAME value change before starting services and rename the server if needed. (bsc#1229825)

In order to achieve this, the spacewalk-hostname-rename script had to be cleaned up.

GUI diff

No difference.

  • DONE

Documentation

Test coverage

  • No tests: hostname rename change to be tested in sync with uyuni-tools change.
  • DONE

Links

Issue(s): https://github.com/SUSE/spacewalk/issues/24412 https://github.com/SUSE/spacewalk/issues/25448
Port(s): # add downstream PR(s), if any

  • 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)

Re-run a test

If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run:

  • Re-run test "changelog_test"
  • Re-run test "backend_unittests_pgsql"
  • Re-run test "java_pgsql_tests"
  • Re-run test "schema_migration_test_pgsql"
  • Re-run test "susemanager_unittests"
  • Re-run test "javascript_lint"
  • Re-run test "spacecmd_unittests"

Before you merge

Check How to branch and merge properly!

@cbosdo cbosdo requested review from mcalmer and aaannz May 16, 2025 15:09
@cbosdo cbosdo force-pushed the hostname-rename branch from 493c40b to abaf40f Compare May 16, 2025 15:17
@cbosdo
Copy link
Contributor Author

cbosdo commented May 16, 2025

Requires uyuni-project/uyuni-tools#582

Watch out for UYUNI_HOSTNAME value change before starting services and
rename the server if needed. (bsc#1229825)

In order to achieve this, the spacewalk-hostname-rename script had to be
cleaned up.
@cbosdo cbosdo force-pushed the hostname-rename branch from abaf40f to fe4d5d3 Compare May 16, 2025 15:21
@cbosdo
Copy link
Contributor Author

cbosdo commented May 16, 2025

Note that I pondered moving the spacewalk-hostname-rename to spacewalk-admin: I believe it would make more sense in that package... but do we care in a single container?

@@ -186,14 +188,32 @@ def change_billing_data_service():
sys.stdout.write("billing-data-service sysconfig: changed LISTEN address\n")


def hostname_check():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function should not be named 'check' when it change something.

@rjmateus
Copy link
Member

@cbosdo could you elaborate on why to put it on the uyuni startup service instead of calling the command directly from mgradm?
To make the config changes loaded, the services would need to be restarted for sure.

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.

3 participants