Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1890389

Summary: /usr/lib/python2.7/site-packages/rhui/tools/cert_manager.py:291 verbage leads to confusion
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Taft Sanders <tasander>
Component: ToolsAssignee: RHUI Bug List <rhui-bugs>
Status: CLOSED ERRATA QA Contact: Radek Bíba <rbiba>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.1.7CC: gtanzill
Target Milestone: 4.1.1Keywords: Triaged
Target Release: 4.x   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-19 13:03:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Taft Sanders 2020-10-22 04:50:04 UTC
Description of problem:
Error message leads to confusion when hit here. As it is seen in the logs, it sounds as though the issue is related to the "entitlement path". So something to do with the subscription or entitlement being used or uploaded and its path.

Version-Release number of selected component (if applicable):
rh-rhui-tools-3.1.7-1.el7ui.noarch

How reproducible:
n/a

Steps to Reproduce:
1.
2.
3.

Actual results:
289         for e in entitlements:
290             if not _is_valid_download_url(e.download_url):
291                 LOG.warn("Invalid entitlement path %s found", e.download_url)
292             else:
293                 found_valid_entitlement = True


Expected results:
289         for e in entitlements:
290             if not _is_valid_download_url(e.download_url):
291                 LOG.warn("Invalid repository download URL: %s provided", e.download_url)
292             else:
293                 found_valid_entitlement = True


Additional info:
The error message should reflect the artifact that we are actually comparing which is the download URL to a regex:
VALID_URL_PATTERN = '*content/*/rhui/*'
def _is_valid_download_url(download_url):
    return fnmatch.fnmatch(download_url, VALID_URL_PATTERN)

Comment 6 errata-xmlrpc 2022-07-19 13:03:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: RHUI 4.1.1 release - Security Fixes and Enhancement Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5602