uyuni-project / uyuni-tools

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

Add --prepare option to migrate command #377

Open nadvornik opened 1 week ago

nadvornik commented 1 week ago

What does this PR change?

This PR adds --prepare option to migrate command. With this option, the migration does not stop the services on source server and ends after syncing the data.

Test coverage

Links

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

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!

rjmateus commented 1 week ago

I if we set the prepare command we should stop just after the rsync of each volume. All the config changes (and probably the distribution copy) should be done only on final migrate. The goal is to start copy the major data folder to speed migration.

nadvornik commented 1 week ago

I think it is safe to let the migration scrip run till the end. All the config changes it does will be overwritten by the final run, but it can help to spot potential problems earlier, before stopping the old server.

nadvornik commented 1 week ago

I have added kubernetes fixes - scale to 0 and skip traefik installation.