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

Fix the images handling in mgradm support ptf #469

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cbosdo
Copy link
Contributor

@cbosdo cbosdo commented Oct 16, 2024

What does this PR change?

The mgradm support ptf command has been designed with only the server image in mind, leave the coco and hub container untouched in such a case.

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

@cbosdo
Copy link
Contributor Author

cbosdo commented Oct 16, 2024

Detect if the coco or hub image has been built in the PTF and apply it if needed

Copy link
Member

@mbussolotto mbussolotto left a comment

Choose a reason for hiding this comment

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

LGTM

The mgradm support ptf command has been designed with only the server
image in mind, leave the coco and hub container untouched in such a
case.
Reading the systemd services files requires hard coding their path, and
would miss what the user could have added. To be on the safe side use
systemd cat to get the whole definition and search for UYUNI_IMAGE
value.
If the coco or hub image is built for a PTF, then we probably need to
install it.
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