uyuni-project / uyuni-tools

Tools to work with containerized Uyuni server
Apache License 2.0
13 stars 14 forks source link

extract payg data after setup to prevent a race condition #337

Closed mcalmer closed 1 month ago

mcalmer commented 1 month ago

What does this PR change?

When setting up PAYG, the job which extract the data run every 10 minutes. When the container start up for the first time, it will not find the data and will behave like a standard installation. To prevent this race condition, call the extract script - if installed - after setup to have the data early available.

Test coverage

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:

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!

mcalmer commented 1 month ago

I tested it manually and it worked. @admd also a candidate for merging.