Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The --matches option on subscription-manager list --available is failing to filter any pools.
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. register to account with available subscription pools
2. run...
[root@jsefler-rhel7 ~]# subscription-manager list --available --matches="foobar"
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
Subscription Name: Admin OS Server Bundled (2 Sockets, Standard Support)
Provides: Awesome OS Server Bits
Clustering Bits
Load Balancing Bits
Shared Storage Bits
Large File Support Bits
Management Bits
Admin OS Premium Architecture Bits
Admin OS Developer Bits
SKU: adminos-server-2-socket-std
Contract: 1
Pool ID: 8a90860f5e9c2769015e9c28f81201b3
Provides Management: Yes
Available: 10
Suggested: 1
Service Level: Standard
Service Type: L1-L3
Subscription Type: Standard
Ends: 09/18/2018
System Type: Physical
<...snip...>
Actual results:
all of the available pools are listed without any regard for --matches
Expected results:
No available subscription pools were found matching the expression "foobar".
Additional info:
[root@jsefler-rhel7 ~]# tail -f /var/log/rhsm/rhsm.log
2017-09-20 14:22:40,089 [DEBUG] subscription-manager:11974:MainThread @connection.py:515 - Making request: GET /candlepin/owners/admin/pools?consumer=5d02bfaf-4b49-4ebc-ac52-1ee2b6bf426e
2017-09-20 14:22:40,415 [INFO] subscription-manager:11974:MainThread @connection.py:556 - Response: status=200, requestUuid=4ca6ae04-ddf5-4e0d-b208-e2aadc85aa6f, request="GET /candlepin/owners/admin/pools?consumer=5d02bfaf-4b49-4ebc-ac52-1ee2b6bf426e"
2017-09-20 14:22:40,418 [DEBUG] subscription-manager:11974:MainThread @managerlib.py:544 - Filtering 0 total pools
2017-09-20 14:22:40,418 [DEBUG] subscription-manager:11974:MainThread @managerlib.py:550 - Removed 0 incompatible pools
2017-09-20 14:22:40,418 [DEBUG] subscription-manager:11974:MainThread @managerlib.py:583 - 23 pools to display, -23 filtered out
Using git bisect, I found the offending commit for this regression behavior was...
da72dfcbbb2c3a44393edb9e46e1583d05cc140a is the first bad commit
commit da72dfcbbb2c3a44393edb9e46e1583d05cc140a
Author: Alex Wood <awood>
Date: Mon Jul 31 16:29:29 2017 -0400
Add an entitlement service and use it in the CLI and DBus.
Verified!!
[root@hp-ms-01-c02 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 2.2.0-1
subscription management rules: 5.26
subscription-manager: 1.20.5-1.el7
[root@hp-ms-01-c02 ~]# subscription-manager list --available --matches="foobar"
No available subscription pools were found matching the expression "foobar".
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, 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/RHBA-2018:0681
Description of problem: The --matches option on subscription-manager list --available is failing to filter any pools. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. register to account with available subscription pools 2. run... [root@jsefler-rhel7 ~]# subscription-manager list --available --matches="foobar" +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Admin OS Server Bundled (2 Sockets, Standard Support) Provides: Awesome OS Server Bits Clustering Bits Load Balancing Bits Shared Storage Bits Large File Support Bits Management Bits Admin OS Premium Architecture Bits Admin OS Developer Bits SKU: adminos-server-2-socket-std Contract: 1 Pool ID: 8a90860f5e9c2769015e9c28f81201b3 Provides Management: Yes Available: 10 Suggested: 1 Service Level: Standard Service Type: L1-L3 Subscription Type: Standard Ends: 09/18/2018 System Type: Physical <...snip...> Actual results: all of the available pools are listed without any regard for --matches Expected results: No available subscription pools were found matching the expression "foobar". Additional info: [root@jsefler-rhel7 ~]# tail -f /var/log/rhsm/rhsm.log 2017-09-20 14:22:40,089 [DEBUG] subscription-manager:11974:MainThread @connection.py:515 - Making request: GET /candlepin/owners/admin/pools?consumer=5d02bfaf-4b49-4ebc-ac52-1ee2b6bf426e 2017-09-20 14:22:40,415 [INFO] subscription-manager:11974:MainThread @connection.py:556 - Response: status=200, requestUuid=4ca6ae04-ddf5-4e0d-b208-e2aadc85aa6f, request="GET /candlepin/owners/admin/pools?consumer=5d02bfaf-4b49-4ebc-ac52-1ee2b6bf426e" 2017-09-20 14:22:40,418 [DEBUG] subscription-manager:11974:MainThread @managerlib.py:544 - Filtering 0 total pools 2017-09-20 14:22:40,418 [DEBUG] subscription-manager:11974:MainThread @managerlib.py:550 - Removed 0 incompatible pools 2017-09-20 14:22:40,418 [DEBUG] subscription-manager:11974:MainThread @managerlib.py:583 - 23 pools to display, -23 filtered out