Bug 697447 - API calls does not work through RHN Proxy 5.4.1 installed in RHEL6
Summary: API calls does not work through RHN Proxy 5.4.1 installed in RHEL6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: 540
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Dimitar Yordanov
URL:
Whiteboard:
Depends On:
Blocks: sat541-blockers sat541-rhel6-proxy
TreeView+ depends on / blocked
 
Reported: 2011-04-18 10:18 UTC by Dimitar Yordanov
Modified: 2011-06-17 06:23 UTC (History)
3 users (show)

Fixed In Version: spacewalk-proxy-1.2.2-7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-16 17:38:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dimitar Yordanov 2011-04-18 10:18:50 UTC
Description of problem:
API calls does not work through RHN Proxy 5.4.1 installed in RHEL6

Version-Release number of selected component (if applicable):
RHN Proxy 5.4.1
RHEAL 6.1

How reproducible:
Alwasy


Steps to Reproduce:
1. Install  RHN Proxy 5.4.1 on RHEL6 activated to SATELLITE 5.4
2. Register a SERVER to the Proxy
3. On that SERVER execute:
  export SAT_SERVER="SATELLITE"
  python -c "import xmlrpclib,os;\
        SERVER = os.environ['SAT_SERVER'];\
        client = xmlrpclib.Server('http://%s/rpc/api' % SERVER, verbose=0);\
        print client.api.systemVersion()" 
  
Actual results:
  Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.4/xmlrpclib.py", line 1137, in request
    headers
xmlrpclib.ProtocolError: <ProtocolError for hp-bl495cg5-01.rhts.bos.redhat.com/rpc/api: 404 Not Found>


Logs on RHN PROXY.
###  /var/log/httpd/access_log   ##########################################
10.16.64.151 - - [14/Apr/2011:05:37:22 -0400] "POST /rpc/api HTTP/1.0" 404 306 "-" "xmlrpclib.py/1.0.1 (by www.pythonware.com)"

###  /var/log/httpd/error_log   ##########################################
[Thu Apr 14 05:37:22 2011] [error] [client 10.16.64.151] File does not exist: /var/www/html/rpc

Expected results:
Success.

Additional info:

Comment 1 Miroslav Suchý 2011-04-18 15:49:30 UTC
Fixed in spacewalk.git as commit faafe8569387b70f7121c4cc950487fab61aa14c

Comment 4 Miroslav Suchý 2011-04-19 15:54:31 UTC
All other handlers added in 439f4c00f067c2b9ce73677729ca901d851d8554

Comment 5 Miroslav Suchý 2011-04-19 15:58:09 UTC
cherrypicked as 5e9549323f1e48e3a683a4591db0199776535e06
45087de93434f67d50ce069bf72d16eba4392e74

Comment 7 Dimitar Yordanov 2011-04-28 09:22:10 UTC
Verified.

Comment 9 Clifford Perry 2011-06-16 17:38:17 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/RHEA-2011-0876.html


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