Added infinite loop to allow user to specify leapp version if not provided with command.
Example:
[root@wallsat613 taft]# python3 satellite_leapp_check.py -c waldirio-03646176-rhel7.d.sysmgmt.cee.redhat.com
Thanks for using satellite_leapp_check.
Please report all bugs or issues found to https://github.com/taftsanders/satellite-leapp-check/issues
This script is used in determining the availability of the correct repositories for a client for leapp upgrade
This script currently only supports RHEL 7 to 8 upgrade for x86_64 Intel architecture
satellite-installer package detected on executing server
Calling the Satellite API for information on the specified client
Enter your Satellite Username: admin
Enter your Password:
Searching for host waldirio-03646176-rhel7.d.sysmgmt.cee.redhat.com
Leapp version should be either '8.6', '8.8', '8.9', or '8.10'
Enter the RHEL version you plan to leapp to: 8.7
You have entered 8.7
This version of RHEL is not found in the expected Leapp versions
Please try again
Enter the RHEL version you plan to leapp to: 8.7
You have entered 8.7
This version of RHEL is not found in the expected Leapp versions
Please try again
Enter the RHEL version you plan to leapp to: 8.4
You have entered 8.4
This version of RHEL is not found in the expected Leapp versions
Please try again
Enter the RHEL version you plan to leapp to: 89
You have entered 89
This version of RHEL is not found in the expected Leapp versions
Please try again
Enter the RHEL version you plan to leapp to: 86
You have entered 86
This version of RHEL is not found in the expected Leapp versions
Please try again
Enter the RHEL version you plan to leapp to: 8x6
You have entered 8x6
This version of RHEL is not found in the expected Leapp versions
Please try again
Enter the RHEL version you plan to leapp to: 8.6
✅ RHEL 7 version detected
✅ Organization ID 1 has the required repos enabled
Checking client's content view for repo availability
You are using the Default Organization View
Checking that the repos contain content
❌ The following repos were found to have 0 RPMs
- Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64
- Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8.6
- Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8.6
Please sync the repositories listed above again.
Added infinite loop to allow user to specify leapp version if not provided with command.
Example: