Bug 651790 - rhn-channel should report error when adding/removing wrong channel
Summary: rhn-channel should report error when adding/removing wrong channel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhn-client-tools
Version: 5.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Michael Mráka
QA Contact: Martin Minar
URL:
Whiteboard:
Depends On: 651789 670214 670216
Blocks: rhel56-sm-testing 715145
TreeView+ depends on / blocked
 
Reported: 2010-11-10 09:59 UTC by Petr Sklenar
Modified: 2016-07-04 00:55 UTC (History)
5 users (show)

Fixed In Version: rhn-client-tools-0.4.20-51.el5
Doc Type: Bug Fix
Doc Text:
When removing or adding a wrong channel, the rhn-channel utility incorrectly reported successfully completed operation. This has been fixed: rhn-channel now informs, that the wrong channel cannot be added or removed.
Clone Of: 651789
: 715145 (view as bug list)
Environment:
Last Closed: 2011-07-21 07:08:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0997 0 normal SHIPPED_LIVE rhn-client-tools bug fix and enhancement update 2011-07-20 15:44:52 UTC

Comment 1 Michael Mráka 2011-03-15 14:45:38 UTC
backported to RHEL5.7 (svn.rhndev) as
r201760 | mmraka | 2011-03-15 15:43:19 +0100 (Tue, 15 Mar 2011) | 6 lines
Changed paths:
   M /trunk/eng/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
   M /trunk/eng/client/rhel/rhn-client-tools/src/up2date_client/rhnChannel.py

651789 - fail if adding/removal of channels fail
    
print message to stderr in verbose mode
return non zero exit code
cherrypicked from ca2b95ea966d7a1f8efb56fd2569effed9e778d0

Comment 3 Miroslav Suchý 2011-04-06 07:51:42 UTC
Small typo during cherrypicking. See https://bugzilla.redhat.com/show_bug.cgi?id=651858#c3

Fixed in rev. 202372.

Comment 5 Miroslav Suchý 2011-04-07 08:24:21 UTC
Another indentation problem found.
rev. 202413.

Comment 7 Miroslav Suchý 2011-05-18 09:26:15 UTC
Martine, this happend only against hosted. And there is nothing I can do about it, I get from hosted successful return code. It is reported as bug 670216.

Against Satellite it should work.

Comment 9 Eliska Slobodova 2011-06-29 11:57:13 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
When removing or adding a wrong channel, the rhn-channel utility incorrectly reported successfully completed operation. This has been fixed: rhn-channel now informs, that the wrong channel cannot be added or removed.

Comment 10 errata-xmlrpc 2011-07-21 07:08:27 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0997.html


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