uyuni-project / uyuni-docs

Uyuni documentation sources. Uyuni docs are written in Asciidoc (Asciidoctor flavor).
https://www.uyuni-project.org/uyuni-docs/
Other
24 stars 101 forks source link

Example script to Service Pack migrate a system via API #3033

Open m0rbo opened 6 months ago

m0rbo commented 6 months ago

https://documentation.suse.com/suma/4.3/en/suse-manager/client-configuration/client-upgrades-product-migration.html https://documentation.suse.com/suma/4.3/api/suse-manager/api/scripts.html

The above links do not provide real world working examples for service pack migration. The example script below is meant to provide more details/content/info to the Service Pack migration via API process.

Documentation Update Required

This script provides a documented and detailed explanation of several API calls for accessing SUMA system info and initiating an migration. Especially for a migration to ignore/exclude repos that are not available for migration such as LTSS or old modules. These API examples explain the usage of these two booleans that also ignore LTSS and other repos the same as the WebUI allows. 'excludeTargetWhereMissingSuccessors' 'removeProductsWithNoSuccessorAfterMigration'

What does the documentation say now?

The documentation is not detailed enough and does not have detailed working examples.

This Python3 script is attached here: MigrateClientw.txt

keichwa commented 6 months ago

Thank you for feedback and input!

admd commented 2 months ago

@cbbayburt I have created a general issue for more scenario based API examples https://github.com/SUSE/spacewalk/issues/25227 . Feel free to extend.