Bug 508939

Summary: proxy_channel_not_found error even if proxy channel present
Product: Red Hat Satellite Proxy 5 Reporter: Tomas Lestach <tlestach>
Component: InstallerAssignee: Miroslav Suchý <msuchy>
Status: CLOSED DUPLICATE QA Contact: Jeff Browning <jbrownin>
Severity: medium Docs Contact:
Priority: high    
Version: 530CC: cperry, jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-01 13:15:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 456999, 486216    
Attachments:
Description Flags
configure-proxy.sh answers none

Description Tomas Lestach 2009-06-30 15:37:19 UTC
Created attachment 349964 [details]
configure-proxy.sh answers

Description of problem:
When installing RHN proxy using CLI, there's a problem with proxy activation:

There was a problem activating the RHN Proxy entitlement:
ERROR: upon entitlement/activation attempt: unknown error - <Fault 1046: 'redstone.xmlrpc.XmlRpcFault: proxy_channel_not_found'>

even if the proxy channel is available.

Version-Release number of selected component (if applicable):
Satellite-5.3.0-RHEL5-re20090625.0
RHN Proxy 5.3.0 synced from WEBQA
spacewalk-proxy-installer-0.5.25-13.el5sat

How reproducible:
always

Steps to Reproduce:
1. Install satellite and sync following three channels from WEBQA:
*rhel-i386-server-5
*rhn-tools-rhel-i386-server-5
*redhat-rhn-proxy-5.3-server-i386-5
2. prepare client for proxy installation using CLI:
- register client to the server
- run # yum update -y
- enable provisioning and subscribe the client to the rhn-tools channel 
- run # yum install -y rhncfg-actions rhns-certs-tools
- run # rhn-actions-control --enable-all
- run # yum install -y spacewalk-proxy-installer
3. run configure-proxy.sh and try to finish proxy configuration
  
Actual results:
...
Proxy version to activate []: 5.3
...
State []: CZ
Country code []: CZ
Email [<email>@redhat.com]: 
API version: 5.3.0

There was a problem activating the RHN Proxy entitlement:
ERROR: upon entitlement/activation attempt: unknown error - <Fault 1046: 'redstone.xmlrpc.XmlRpcFault: proxy_channel_not_found'>
Proxy activation failed! Installation interrupted.
API version: 5.3.0
RHN Proxy successfully deactivated.

(Whole configuration info attached.)

Expected results:
You finish proxy activation successfully.

Additional info:
Note that the "Proxy version to activate" was not detected.
We reproduced the behaviour on three different pairs: satellite-client.
Note that it doesn't matter, if you run configure-proxy.sh in the interactive mode or using an answer file.

Comment 1 Miroslav Suchý 2009-07-01 12:10:22 UTC
On my satellite where this problem do not exist:
SQL> select label, CHANNEL_PRODUCT_ID from rhnchannel where label='redhat-rhn-proxy-5.3-server-i386-5';

LABEL
--------------------------------------------------------------------------------
CHANNEL_PRODUCT_ID
------------------
redhat-rhn-proxy-5.3-server-i386-5
                 2

On vmware139.englab.brq where this problem exist:
SQL> select label, CHANNEL_PRODUCT_ID from rhnchannel where label='redhat-rhn-proxy-5.3-server-i386-5';

LABEL
--------------------------------------------------------------------------------
CHANNEL_PRODUCT_ID
------------------
redhat-rhn-proxy-5.3-server-i386-5

So it does not have relation to table RHNCHANNELPRODUCT. It seems that sat sync do not create this relation. Reason is currently unknown to me.

Comment 2 Miroslav Suchý 2009-07-01 13:15:19 UTC
Already fixed by commit ec7816a6e6ef615d3612c34abedd7ed04e048b62.

*** This bug has been marked as a duplicate of bug 506264 ***