uyuni-project / uyuni-tools

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

Allow installing with existing volumes #356

Open aaannz opened 3 weeks ago

aaannz commented 3 weeks ago

What does this PR change?

This PR add check for existing uyuni-server service and if exists, refuse installation. It also add check for existing volume and display warning that not all installation options are preserved and make sure correct passwords are used.

At the end this PR adds new API call to try to verify if existing organization from pre existing volumes matches what would be created.

One small unrelated change is to use directly SUSEConnect instead of transactional-update --register. For plain status check, which is r/o operation, calling directly SUSEConnect is fine and we don't spend unnecessary time creating and discarding snapshots.

Test coverage

Links

Issue(s): https://github.com/uyuni-project/uyuni-tools/issues/347

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!

aaannz commented 3 weeks ago

Adapted: