taftsanders / satellite-leapp-check

A script to run on the Satellite or the upgrading client to validate clients have the required repositories for the LEAPP upgrade process
GNU General Public License v3.0
4 stars 3 forks source link

leapp version required. #28

Closed waldirio closed 8 months ago

waldirio commented 8 months ago
[root@wallsat614 ~]# ./satellite_leapp_check -c waldirio-sat614-rhel9-node.d.sysmgmt.cee.redhat.com

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 is installed
Enter your Satellite Username: admin
Enter your Password: 
❌ A request test to the Satellite at: https://wallsat614.d.sysmgmt.cee.redhat.com failed with the following error: 
An error occurred: HTTPSConnectionPool(host='wallsat614.d.sysmgmt.cee.redhat.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),))
❌ RHEL version to leapp to not supplied
- Please use the "-v" option to specify a RHEL version to leapp to
- Example:
  # python satellite_leapp_check.py -c client.example.com -v 8.6 -u admin -p password
Traceback (most recent call last):
  File "satellite_leapp_check.py", line 639, in <module>
  File "satellite_leapp_check.py", line 630, in main
  File "satellite_leapp_check.py", line 575, in parse_client
  File "satellite_leapp_check.py", line 142, in determine_leapp_repos
  File "satellite_leapp_check.py", line 137, in get_leapp_version
UnboundLocalError: local variable 'LEAPP_VERSION' referenced before assignment
[571297] Failed to execute script 'satellite_leapp_check' due to unhandled exception!