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

Dedicated container for database #482

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nadvornik
Copy link
Contributor

@nadvornik nadvornik commented Oct 30, 2024

What does this PR change?

Current state:

Works with the image from uyuni-project/uyuni#9469
mgradm install podman --pgsql-image <image> --pgsql-tag <tag>
Uses workarounds for the issues discussed in https://github.com/SUSE/spacewalk/issues/25363
Missing kubernetes.

Test coverage

  • No tests: add explanation

  • No tests: already covered

  • Unit tests were added

  • DONE

Links

Issue(s): #

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

@nadvornik nadvornik force-pushed the postgres branch 2 times, most recently from fbf2549 to 10155ce Compare January 9, 2025 09:55
Copy link
Contributor

@aaannz aaannz left a comment

Choose a reason for hiding this comment

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

Couple comments, mostly typos.

Once this is merged, smdba autotune call can be also removed from mgr-setup and others.

Copy link
Member

@rjmateus rjmateus left a comment

Choose a reason for hiding this comment

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

overall looks good, just a few questions on this

if err != nil {
return err
}
err = podman.RunContainer("uyuni-db-migrate", pgsqlImage, utils.PgsqlRequiredVolumeMounts, []string{},
Copy link
Member

Choose a reason for hiding this comment

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

The updade command also deals with major version upgrade? I think that at version 5.0 Michele prepared the upgrade process with the upgrade container to allow major upgrades where the database version would. Is this taken into consideration?

@admd
Copy link

admd commented Feb 18, 2025

@nadvornik what's holding us here? will we be able to get this in for beta 1?

@cbosdo
Copy link
Contributor

cbosdo commented Feb 18, 2025

@nadvornik what's holding us here? will we be able to get this in for beta 1?

I'm working on getting this PR into shape.

@cbosdo cbosdo force-pushed the postgres branch 2 times, most recently from 2ac90ed to acc6f01 Compare March 4, 2025 16:29
Copy link
Contributor

@aaannz aaannz left a comment

Choose a reason for hiding this comment

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

LGTM

I have just few nitpicks

@cbosdo cbosdo force-pushed the postgres branch 2 times, most recently from f46f7fa to 329d086 Compare March 4, 2025 17:24
List of improvements:
- Use Secrets for SSL and DB credentials
- Add DB container support to uninstall, start, stop, restart and status
- Cleanup the setup from the now unneeded parameters
Copy link

sonarqubecloud bot commented Mar 4, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

5 participants