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

move configuration done during first installation from rpm to mgr-setup script #7452

Closed

Conversation

mbussolotto
Copy link
Member

@mbussolotto mbussolotto commented Aug 22, 2023

What does this PR change?

move configuration done during first installation from rpm to mgr-setup script

GUI diff

No difference.

Before:

After:

  • DONE

Documentation

Test coverage

  • No tests: add explanation

  • No tests: already covered

  • Unit tests were added

  • Cucumber tests were added

  • DONE

Links

Fixes https://github.com/SUSE/spacewalk/issues/22091

  • 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" (Test skipped, there are no changes to test)
  • Re-run test "schema_migration_test_pgsql"
  • Re-run test "susemanager_unittests"
  • Re-run test "javascript_lint"
  • Re-run test "spacecmd_unittests" (Test skipped, there are no changes to test)

cbosdo and others added 30 commits July 6, 2023 16:14
In the container world the hostname is private to the cluster and could
even contain random parts. This change avoids confusion between the
FQDN and HOST variables and offers a clean code path for containers.
Checking the socket doesnt work in the container world, using the tool
coming with postgres is much cleaner and works in both cases.
When running the setup in a container running on kubernetes we don't
have control on the hostname the user knows about. Rather that relying
on getting it from the system, allow reading it from the setup input
file.
When running the setup in a container we want to avoid the setup_env.sh
script and read the values from variables.
Running mgr-bootstrap in a containerized server cannot assume the
hostname is the user-facing FQDN.
The helm chart intentionnaly doesn't deploy the PersistentVolumes and the SSL
certificates for now.

The documentation has also been adapted to use the helm chart.

From now on the pod is running as a deployment
Document two different options to setup SSL for Uyuni server on k8s:
using `rhn-ssl-tool` and manual certificates configuration or using
`cert-manager` with automatically generated CA and certificates.
Since kubernetes uses the pod name as hostname the hostname ahdn
hostname -f returns non-sense on such servers. Use the java.hostname
from the rhn.conf as it has to be set to the publicly visible FQDN
anyway.
We don't want to get the internal IP address of the server container,
but the public one of the host, so use run_local.
The server hostname cannot be used in a kubernetes container as it is
set to the pod name, the FQDN and hostname need to be used from
`rhn.conf`
Enable monitoring in the container image to avoid the need of a few more
volumes.
- curl -O always stores file to its filename. When using wget if
  the file exists it will append .1 and so on to prevent overwriting
  local file
@mbussolotto mbussolotto changed the title WIP: Check that %post scripts are not changing files we persist move configuration done during first installation from rpm to mgr-setup script Aug 23, 2023
@mbussolotto mbussolotto force-pushed the post_check branch 2 times, most recently from cb4be58 to 8b360d7 Compare August 24, 2023 08:29
cbosdo and others added 10 commits August 24, 2023 17:24
When the report database is installed on the server we don't need and
can't use SSL to connect to it using localhost hostname. This comes in
handy to avoid hairpin requests in the container setup.
Under some circumstances like updating older unconfigured SUMA
system, tomcat.xml was not configured properly as source tomcat.xml
was not configured. Instead of relying if we are doing rpm update
or new install, check status or rhn.conf file.
@mbussolotto mbussolotto requested review from a team as code owners August 30, 2023 11:24
@mbussolotto mbussolotto requested review from mackdk and removed request for a team August 30, 2023 11:24
- features/core/srv_create_repository.feature
- features/reposync/srv_create_repository.feature
Copy link
Member

@srbarrios srbarrios Aug 30, 2023

Choose a reason for hiding this comment

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

Uhm, I'm not sure about this change. Maybe better have this kind of change in a different PR?

@mbussolotto mbussolotto removed request for a team, meaksh and mackdk August 30, 2023 12:02
@mbussolotto
Copy link
Member Author

closing the PR. changes no longer require

@srbarrios
Copy link
Member

closing the PR. changes no longer require

ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants