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:
sudo bin/subscription-manager list --installed --matches rhel*
If you provide an unquoted string to --matches, and the shell expands it, it
is difficult to detect.
Not sure of a good way to detect that in the general case, but for the case of the filter string not matching anything, it would be useful if the filter string was included in the error:
[subscription-manager (master % u=)]$ sudo bin/subscription-manager list --installed --matches rhel*
No installed products were found that match the matches search string "rhel7_repos_list.txt"
multiple matches trigger arg parse warnings ala:
[subscription-manager (master % u=)]$ sudo bin/subscription-manager list --installed --matches subs*
cannot parse argument: subscription-manager.spec
That could be better (it doesn't show the first word in the expanded shell glob) but get's the point across.
Version-Release number of selected component (if applicable):
subscription-manager-1.13.6-1.el7.x86_64
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
commit 2884e33acb35ab4e336fe12dc23de7ab26cc0572
Author: Chris Rog <crog>
Date: Mon Dec 8 13:39:58 2014 -0500
1159348: Improved list error output when using list criteria
- Specifying a service level or filter expression that filters all
subscriptions or products will now print the criteria used in the
query.
Retested on ,
# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.26.4-1
subscription management rules: 5.11
subscription-manager: 1.13.12-1.el7
python-rhsm: 1.13.8-1.el7
# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.1 Beta
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 10/05/2011
Ends: 12/31/2021
# subscription-manager list --installed --matches rhel*
No installed products were found matching the expression "rhel*".
# subscription-manager list --installed --matches subs*
No installed products were found matching the expression "subs*".
# subscription-manager list --consumed --matches Self*
No consumed subscription pools were found matching the expression "Self*".
# subscription-manager list --consumed --matches Premium
No consumed subscription pools were found matching the expression "Premium".
Now list error output(using list criteria) prints the criteria used in the query in the error message.
Moving to Verified!!
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://rhn.redhat.com/errata/RHBA-2015-0502.html