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

First iteration of a server container image #7619

Merged
merged 20 commits into from
Oct 10, 2023
Merged

First iteration of a server container image #7619

merged 20 commits into from
Oct 10, 2023

Conversation

cbosdo
Copy link
Contributor

@cbosdo cbosdo commented Oct 2, 2023

What does this PR change?

Image, helm chart, setup and testsuite changes to run the server in a podman or kubernetes container.

GUI diff

Not really GUI, but the tooling required to deploy and interact with the server is changing. The https://github.com/uyuni-project/uyuni-tools will be used with the container.

  • DONE

Documentation

Test coverage

  • Cucumber tests CI are now running also for podman and k3s container hosts.

  • DONE

Links

Fixes #
Tracks # add downstream PR, 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"

@cbosdo cbosdo force-pushed the server-container branch 3 times, most recently from 9bb7bc0 to 86581b7 Compare October 9, 2023 09:32
cbosdo and others added 20 commits October 10, 2023 07:46
This image is not needed for SUSE Manager as the BCI:Init image will be
used instead. Changed the push-packages-to-obs.sh to ignore it there.
Uses uyunictl to deploy on a server container running either in kubernetes or on podman.
Provide a helm chart to ease installation of the server container on kubernetes
cluster.
Signed-off-by: Ricardo Mateus <rmateus@suse.com>
In the kubernetes container the SSL connection is stopped at the ingress
level so localhost doesn't handle HTTPS.
In some cases mgr-sync seems to wait for ever for the user / password on
the input provided by `echo -e`. Using the `~/.mgr-sync` configuration
file is more reliable.
- UID and GIDs are made to match each other if possible
- IDs starts at 10550 to prevent conflicts with host system
  accounts
- postgres has to have login shell, required during configuration
Running the redfish mocked server on the server would require exposing
the 8443 port on the container, which is impossible when the pod is
running, and not desirable.

Moving the fake server to the controller works around this issue.
@jordimassaguerpla
Copy link
Contributor

acceptance tests pass now. I do not know what was that segmentation fault.

@cbosdo cbosdo merged commit 7b6c48f into master Oct 10, 2023
17 of 19 checks passed
@cbosdo cbosdo deleted the server-container branch October 10, 2023 11:49
@github-actions
Copy link
Contributor

⚠️ No changelog entry has been added. @cbosdo, please add necessary changelog entries with an additional PR.

sbluhm added a commit to sbluhm/uyuni-repo that referenced this pull request Oct 17, 2023
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.

9 participants