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

Issues when running on satellite #31

Closed waldirio closed 8 months ago

waldirio commented 8 months ago

When running on satellite 6.14

[root@wallsat614 ~]# ./satellite_leapp_check -u admin -p redhat -v 8.6 -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
❌ 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)'),))
❌ Version detection failed
- Check the client's facts for a 'distribution::version
[root@wallsat614 ~]# 
waldirio commented 8 months ago

Hello @taftsanders

Only this section

❌ 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)'),))
taftsanders commented 8 months ago

@waldirio I'm not getting the same error you are when running this. Although, I am running as a python script and not a binary. Are you able to reproduce this issue when running as a python script?

NOTE: I have altered the wording on the error to make it more informative.

My results:

[root@wallsat614 taft]# python3 satellite_leapp_check.py -u admin -p redhat -v 8.6 -c waldirio-sat614-rhel9-node.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
Searching for host waldirio-sat614-rhel9-node.d.sysmgmt.cee.redhat.com
❌ Required major version detection failed
        Major version should be:
        - 6
        - 7
        - 8
        Satellite API shows your major version as 9
        Check the client's facts for a 'distribution::version
waldirio commented 8 months ago

Hello @taftsanders

This is the output that I got from your master

# python3 ./satellite_leapp_check.py -u admin -p redhat -v 8.6 -c waldirio-sat614-rhel9-node.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
Searching for host waldirio-sat614-rhel9-node.d.sysmgmt.cee.redhat.com
❌ Version detection failed
- Check the client's facts for a 'distribution::version
taftsanders commented 8 months ago

@waldirio try the latest from the branch for this issue: https://raw.githubusercontent.com/taftsanders/satellite-leapp-check/31-issues-when-running-on-satellite/satellite_leapp_check.py

waldirio commented 8 months ago

Hello @taftsanders

Thank you.

I tested on 2 env

// Sat 6.14 trying to move on rhel9

[root@wallsat614 taft]#  python3 ./satellite_leapp_check.py -u admin -p redhat -v 8.6 -c waldirio-sat614-rhel9-node.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
Searching for host waldirio-sat614-rhel9-node.d.sysmgmt.cee.redhat.com
❌ Required major version detection failed
    Major version should be:
    - 6
    - 7
    - 8
    Satellite API shows your client's major version as 9
    Check the client's facts for a 'distribution::version
[root@wallsat614 taft]#

// Sat 6.13 trying to move on rhel7 (first run)

[root@wallsat613 taft]#  python3 ./satellite_leapp_check.py -u admin -p redhat -v 8.6 -c waldirio-1234-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
Searching for host waldirio-1234-rhel7.d.sysmgmt.cee.redhat.com
✅ RHEL 7 version detected
❌ Organization ID 1 is missing Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs None
❌ Organization ID 1 is missing Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs None

// Sat 6.13 trying to move on rhel7 (second run)

[root@wallsat613 taft]#  python3 ./satellite_leapp_check.py -u admin -p redhat -v 8.6 -c waldirio-1234-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
Searching for host waldirio-1234-rhel7.d.sysmgmt.cee.redhat.com
✅ RHEL 7 version detected
❌ Organization ID 1 is missing Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs None
❌ Organization ID 1 is missing Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs None
[root@wallsat613 taft]# 

Note. Above, it should be AppStream and BaseOS?

waldirio commented 8 months ago

@taftsanders

Btw, if you believe this is a different issue, please, feel free to archive the current one and open a new issue for this specific behavior.

Thank you! Waldirio