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.
Bug 918746 - multiple specifications of --disable does not throw error when repo id is invalid
Summary: multiple specifications of --disable does not throw error when repo id is inv...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2013-03-06 19:26 UTC by John Sefler
Modified: 2014-06-18 00:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:31:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2013-03-06 19:26:05 UTC
Description of problem:
As a follow-up to bug 846207, when specifying multiple invalid repos with --enable & --disable, some stdout feedback is dropped.


Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -q subscription-manager
subscription-manager-1.8.3-1.git.48.05ca71b.el7.x86_64


How reproducible:


Steps to Reproduce:
[root@jsefler-7 ~]# subscription-manager repos --disable=huey --disable=duey
Error: huey is not a valid repo ID. Use --list option to see valid repos.
Error: duey is not a valid repo ID. Use --list option to see valid repos.

^ Those results are correct.

[root@jsefler-7 ~]# subscription-manager repos --disable=huey --disable=duey --enable=luey
Error: luey is not a valid repo ID. Use --list option to see valid repos.

^ That result is insufficient.

Expected results:
[root@jsefler-7 ~]# subscription-manager repos --disable=huey --disable=duey --enable=luey
Error: huey is not a valid repo ID. Use --list option to see valid repos.
Error: duey is not a valid repo ID. Use --list option to see valid repos.
Error: luey is not a valid repo ID. Use --list option to see valid repos.

Comment 2 Carter Kozak 2013-03-21 14:49:46 UTC
commit 455f880dcaadcae427ad5f969fad656f37a4e138
Author: Carter Kozak <ckozak>
Date:   Thu Mar 21 10:04:56 2013 -0400

    918746: Switched or ordering for disabling repos.  Will now print all repository validation errors

Comment 3 Shwetha Kallesh 2013-04-05 07:21:40 UTC
Verified 

Verifying version:
[root@localhost ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.8.1-1
subscription-manager: 1.8.5-1.el7
python-rhsm: 1.8.8-1.el7

[root@localhost ~]# subscription-manager repos --disable=huey --disable=duey --enable=luey
Error: luey is not a valid repo ID. Use --list option to see valid repos.
Error: huey is not a valid repo ID. Use --list option to see valid repos.
Error: duey is not a valid repo ID. Use --list option to see valid repos.

Comment 4 Ludek Smid 2014-06-13 09:31:29 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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