+++ This bug was initially created as a clone of Bug #651789 +++ Description of problem: I try remove or add channel which exists on hosted (rhel6 channel) but it is NOT designed for client (which is rhel5) then rhn-channel writes successfully removed or added. Version-Release number of selected component (if applicable): rpm -qf `which rhn-channel` rhn-setup-1.0.0-38.el6.noarch How reproducible: always Steps to Reproduce: 1. my machine is rhel5 with rhel-x86_64-server-5 # rhn-channel -l rhel-x86_64-server-5 2. try to add or remove rhel6 channel # rhn-channel -c rhn-tools-rhel-i386-workstation-6 -r -u qa -p redhatqa -v Channel(s): rhn-tools-rhel-i386-workstation-6 successfully removed # echo $? 0 # rhn-channel -c rhn-tools-rhel-i386-workstation-6 -a -u qa -p redhatqa -v Channel(s): rhn-tools-rhel-i386-workstation-6 successfully added # echo $? 0 Actual results: <wrong channel> successfully added/removed Expected results: <wrong channel> cannot be added/removed Additional info: --- Additional comment from msuchy on 2011-01-17 10:15:58 EST --- This is more difficult then it look. First. spacewalk-channel does not read returned code. Let solve it here. Let define return code: 0 - everything is OK, channel is added/removed 1 - some error, channel is *not* added/removed I will track client changes in this BZ. Second. rhnParent always send return code 0. No matter what happen there. So we have to do some change in both RHN Satellite and RHN hosted. I will clone this BZ to both RHN Satellite and RHN hosted to track the change in server parts.
You may watch progress in BZ 670214 and then cherrypick the result.
As you may already be aware, Red Hat is transitioning from the Red Hat Network (RHN) hosted interface to the Red Hat Subscription Management (RHSM) interface in July 2017. Red Hat has invested in and seen success from RHN for many years, and used that experience to build more robust technologies like RHSM. If you have not yet migrated your RHN systems to RHSM or you are a Red Hat Satellite customer, please review the information from. https://access.redhat.com/products/red-hat-subscription-management#migration. Since we are shutting down RHN, no further actions will be taken with this bug or enhancement request. You can find additional information at RHSM product page (https://access.redhat.com/products/red-hat-subscription-management). If you have further questions, please contact support (https://access.redhat.com/products/red-hat-subscription-management#support).