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

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

Open
m0rbo opened this issue May 17, 2024 · 2 comments
Open

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

m0rbo opened this issue May 17, 2024 · 2 comments
Assignees
Labels
5.0 Bug Something isn't working docs backlog In the docs backlog enhancement New feature or request manager-4.3 uyuni

Comments

@m0rbo
Copy link

m0rbo commented May 17, 2024

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 keichwa added Bug Something isn't working enhancement New feature or request manager-4.3 5.0 uyuni docs backlog In the docs backlog labels May 21, 2024
@keichwa
Copy link
Contributor

keichwa commented May 21, 2024

Thank you for feedback and input!

@admd
Copy link
Contributor

admd commented Sep 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 Bug Something isn't working docs backlog In the docs backlog enhancement New feature or request manager-4.3 uyuni
Projects
None yet
Development

No branches or pull requests

4 participants