Bug 1890389 - /usr/lib/python2.7/site-packages/rhui/tools/cert_manager.py:291 verbage leads to confusion
Summary: /usr/lib/python2.7/site-packages/rhui/tools/cert_manager.py:291 verbage leads...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: Tools
Version: 3.1.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 4.1.1
: 4.x
Assignee: RHUI Bug List
QA Contact: Radek Bíba
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-22 04:50 UTC by Taft Sanders
Modified: 2022-07-19 13:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-19 13:03:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHUI-218 0 None None None 2022-03-10 16:51:08 UTC
Red Hat Product Errata RHSA-2022:5602 0 None None None 2022-07-19 13:04:27 UTC

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


Note You need to log in before you can comment on or make changes to this bug.