Bug 670216 - rhn-channel should report error when adding/removing wrong channel
Summary: rhn-channel should report error when adding/removing wrong channel
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat Network
Classification: Retired
Component: RHN/Backend
Version: RHN Stable
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
Assignee: rhn-dev-list
QA Contact: Red Hat Network Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 582655 651789 651790 670214 715145
TreeView+ depends on / blocked
 
Reported: 2011-01-17 15:19 UTC by Miroslav Suchý
Modified: 2017-07-05 15:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 651789
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2011-01-17 15:19:55 UTC
+++ 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.

Comment 1 Miroslav Suchý 2011-01-17 15:21:16 UTC
You may watch progress in BZ 670214 and then cherrypick the result.

Comment 2 Thomas "Shea" DeAntonio 2017-07-05 15:15:38 UTC
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).

Comment 3 Thomas "Shea" DeAntonio 2017-07-05 15:15:47 UTC
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).


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