Bug 497887 - unable to register client via proxy
Summary: unable to register client via proxy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite Proxy 5
Classification: Red Hat
Component: Server
Version: 530
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Jan Pazdziora
URL: na
Whiteboard:
: 498974 (view as bug list)
Depends On:
Blocks: 456999 457079
TreeView+ depends on / blocked
 
Reported: 2009-04-27 18:03 UTC by wes hayutin
Modified: 2009-10-28 19:29 UTC (History)
4 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-10-28 19:29:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description wes hayutin 2009-04-27 18:03:18 UTC
Description of problem:

4/24.1 build
unable to register client via proxy

Exception reported from dhcp77-108.rhndev.redhat.com
Time: Mon Apr 27 08:17:07 2009
Exception type exceptions.OSError
Exception while handling function ProxyAuth.set_cached_token
Extra information about this error:
Caching of authentication token for proxy id 1000010003 failed!
Either the authentication caching daemon is experiencing
problems, isn't running, or the token is somehow corrupt.


Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/proxy/rhnProxyAuth.py", line 145, in set_cached_token
    shelf[self.__cache_proxy_key()] = token
  File "/usr/share/rhn/proxy/rhnProxyAuth.py", line 391, in __setitem__
    return rhnCache.set(rkey, val)
  File "/usr/share/rhn/common/rhnCache.py", line 83, in set
    cache.set(name, value, modified)
  File "/usr/share/rhn/common/rhnCache.py", line 354, in set
    self.cache.set(name, pickled, modified)
  File "/usr/share/rhn/common/rhnCache.py", line 248, in set
    fd = self.set_file(name, modified)
  File "/usr/share/rhn/common/rhnCache.py", line 280, in set_file
    fd = WriteLockedFile(name, modified)
  File "/usr/share/rhn/common/rhnCache.py", line 177, in __init__
    self.fd = self.get_fd(name)
  File "/usr/share/rhn/common/rhnCache.py", line 220, in get_fd
    fd = _safe_create(self.fname)
  File "/usr/share/rhn/common/rhnCache.py", line 151, in _safe_create
    fd = os.open(fname, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0644)
OSError: [Errno 13] Permission denied: '/var/cache/rhn/proxy-auth/p1000010003'

Local variables by frame
Frame _safe_create in /usr/share/rhn/common/rhnCache.py at line 158
                       tries = <type 'int'> 4
                     dirname = <type 'str'> /var/cache/rhn/proxy-auth
                           e = <type 'instance'> [Errno 13] Permission denied: '/var/cache/rhn/proxy-auth/p1000010003'
                       fname = <type 'str'> /var/cache/rhn/proxy-auth/p1000010003

Frame get_fd in /usr/share/rhn/common/rhnCache.py at line 222
                        self = <class 'common.rhnCache.WriteLockedFile'> <common.rhnCache.WriteLockedFile object at 0xb7ca83ec>
                        name = <type 'str'> proxy-auth/p1000010003

Frame __init__ in /usr/share/rhn/common/rhnCache.py at line 177
                        self = <class 'common.rhnCache.WriteLockedFile'> <common.rhnCache.WriteLockedFile object at 0xb7ca83ec>
                    modified = <type 'NoneType'> None
                        name = <type 'str'> proxy-auth/p1000010003

Frame set_file in /usr/share/rhn/common/rhnCache.py at line 280
                        self = <type 'instance'> <common.rhnCache.Cache instance at 0xb7c9deac>
                    modified = <type 'NoneType'> None
                        name = <type 'str'> proxy-auth/p1000010003

Frame set in /usr/share/rhn/common/rhnCache.py at line 248
                        self = <type 'instance'> <common.rhnCache.Cache instance at 0xb7c9deac>
                    modified = <type 'NoneType'> None
                       value = <type 'str'> UV1000010003::1240852604.8:21600.0:VrOKt0zl8D0vVXduU6trXQ==:dhcp77-108.rhndev.redhat.comq.
                        name = <type 'str'> proxy-auth/p1000010003

Frame set in /usr/share/rhn/common/rhnCache.py at line 354
                        name = <type 'str'> proxy-auth/p1000010003
                        self = <type 'instance'> <common.rhnCache.ObjectCache instance at 0xb7ca804c>
                     pickled = <type 'str'> UV1000010003::1240852604.8:21600.0:VrOKt0zl8D0vVXduU6trXQ==:dhcp77-108.rhndev.redhat.comq.
                       value = <type 'str'> 1000010003::1240852604.8:21600.0:VrOKt0zl8D0vVXduU6trXQ==:dhcp77-108.rhndev.redhat.com
                    modified = <type 'NoneType'> None

Frame set in /usr/share/rhn/common/rhnCache.py at line 83
                        name = <type 'str'> proxy-auth/p1000010003
                       cache = <type 'instance'> <common.rhnCache.ObjectCache instance at 0xb7ca804c>
                    modified = <type 'NoneType'> None
                       value = <type 'str'> 1000010003::1240852604.8:21600.0:VrOKt0zl8D0vVXduU6trXQ==:dhcp77-108.rhndev.redhat.com
                         raw = <type 'NoneType'> None
                  compressed = <type 'NoneType'> None

Frame __setitem__ in /usr/share/rhn/proxy/rhnProxyAuth.py at line 391
                        self = <type 'instance'> <proxy.rhnProxyAuth.AuthLocalBackend instance at 0xb7c9de6c>
                        rkey = <type 'str'> proxy-auth/p1000010003
                         key = <type 'str'> p1000010003
                         val = <type 'str'> 1000010003::1240852604.8:21600.0:VrOKt0zl8D0vVXduU6trXQ==:dhcp77-108.rhndev.redhat.com

Frame set_cached_token in /usr/share/rhn/proxy/rhnProxyAuth.py at line 152
                        text = <type 'str'> Caching of authentication token for proxy id 1000010003 failed!
Either the authentication caching daemon is experiencing
problems, isn't running, or the token is somehow corrupt.

                       token = <type 'str'> 1000010003::1240852604.8:21600.0:VrOKt0zl8D0vVXduU6trXQ==:dhcp77-108.rhndev.redhat.com
                        self = <type 'instance'> <proxy.rhnProxyAuth.ProxyAuth instance at 0xb7c7afac>
                       shelf = <type 'instance'> <proxy.rhnProxyAuth.AuthLocalBackend instance at 0xb7c9de6c>

Frame check_cached_token in /usr/share/rhn/proxy/rhnProxyAuth.py at line 122
                       token = <type 'str'> 1000010003::1240852604.8:21600.0:VrOKt0zl8D0vVXduU6trXQ==:dhcp77-108.rhndev.redhat.com
                forceRefresh = <type 'int'> 0
                    oldToken = <type 'NoneType'> None
                        self = <type 'instance'> <proxy.rhnProxyAuth.ProxyAuth instance at 0xb7c7afac>

Frame handler in /usr/share/rhn/proxy/broker/rhnBroker.py at line 180
                   client_ip = <type 'str'> 10.10.77.101
                     ip_path = <type 'str'> 10.10.77.101
                        _oto = <type 'instance'> {'content-length': '122', 'x-client-version': '1', 'accept-encoding': 'identity', 'x-transport-info': 'Extended Capabilities Transport (C) Red Hat, Inc (version 136589)', 'x-up2date-version': '0.4.19-17.el5', 'user-agent': 'rhn.rpclib.py/$Revision: 136589 $', 'x-rhn-ip-path': '10.10.77.101', 'host': 'dhcp77-108.rhndev.redhat.com:443', 'x-rhn-transport-capability': 'follow-redirects=3', 'x-info': 'RPC Processor (C) Red Hat, Inc (version 135431)', 'content-type': 'text/xml', 'x-rhn-client-capability': 'packages.verifyAll(1)=1,caneatCheese(1)=1,packages.extended_profile(1)=1,reboot.reboot(1)=1,packages.verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2,packages.rollBack(1)=1'}
                   getResult = <type 'NoneType'> None
                        self = <type 'instance'> <proxy.broker.rhnBroker.BrokerHandler instance at 0xb7c7a9ac>

Frame handler in /usr/share/rhn/proxy/apacheHandler.py at line 348
                  handlerObj = <type 'instance'> <proxy.broker.rhnBroker.BrokerHandler instance at 0xb7c7a9ac>
                        self = <type 'instance'> <proxy.apacheHandler.apacheHandler instance at 0xb7d21b2c>
                         req = <type 'mp_request'> <mp_request object at 0xb7efed2c>
                         ret = <type 'int'> 0
                   rhnBroker = <type 'module'> <module 'proxy.broker.rhnBroker' from '/usr/share/rhn/proxy/broker/rhnBroker.pyc'>

Frame __call__ in /usr/share/rhn/proxy/apacheServer.py at line 66
                        self = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0xb7e337ac>
                         req = <type 'mp_request'> <mp_request object at 0xb7efed2c>
                           f = <type 'instancemethod'> <bound method apacheHandler.handler of <proxy.apacheHandler.apacheHandler instance at 0xb7d21b2c>>

Frame HandlerDispatch in /usr/lib/python2.4/site-packages/mod_python/apache.py at line 299
                         req = <type 'mp_request'> <mp_request object at 0xb7efed2c>
                      config = <type 'mp_table'> {'PythonPath': 'sys.path+['/usr/share/rhn']'}
                        self = <type 'instance'> <mod_python.apache.CallBack instance at 0xb7f0c72c>
                      object = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0xb7e337ac>
                           l = <type 'list'> ['proxy.apacheServer', 'Handler']
                      module = <type 'module'> <module 'proxy.apacheServer' from '/usr/share/rhn/proxy/apacheServer.pyc'>
                       hlist = <type 'mp_hlist'> {'handler:'proxy.apacheServer::Handler','directory':'^/*/','silent':0}
                  object_str = <type 'str'> Handler
                       debug = <type 'int'> 0
                 module_name = <type 'str'> proxy.apacheServer
                  pathstring = <type 'str'> sys.path+['/usr/share/rhn']
                      result = <type 'int'> 500


Environment for PID=13839 on exception:
LANG = C
PATH = /sbin:/usr/sbin:/bin:/usr/bin
PWD = /
SHLVL = 2
TERM = xterm
_ = /usr/sbin/httpd



-----------------------------------------------------------
recreated on another server

Exception reported from rlx-3-06.rhndev.redhat.com
Time: Mon Apr 27 17:25:08 2009
Exception type exceptions.OSError
Exception while handling function ProxyAuth.set_cached_token
Extra information about this error:
Caching of authentication token for proxy id 1000010000 failed!
Either the authentication caching daemon is experiencing
problems, isn't running, or the token is somehow corrupt.


Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/proxy/rhnProxyAuth.py", line 145, in set_cached_token
    shelf[self.__cache_proxy_key()] = token
  File "/usr/share/rhn/proxy/rhnProxyAuth.py", line 391, in __setitem__
    return rhnCache.set(rkey, val)
  File "/usr/share/rhn/common/rhnCache.py", line 83, in set
    cache.set(name, value, modified)
  File "/usr/share/rhn/common/rhnCache.py", line 354, in set
    self.cache.set(name, pickled, modified)
  File "/usr/share/rhn/common/rhnCache.py", line 248, in set
    fd = self.set_file(name, modified)
  File "/usr/share/rhn/common/rhnCache.py", line 280, in set_file
    fd = WriteLockedFile(name, modified)
  File "/usr/share/rhn/common/rhnCache.py", line 177, in __init__
    self.fd = self.get_fd(name)
  File "/usr/share/rhn/common/rhnCache.py", line 220, in get_fd
    fd = _safe_create(self.fname)
  File "/usr/share/rhn/common/rhnCache.py", line 151, in _safe_create
    fd = os.open(fname, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0644)
OSError: [Errno 13] Permission denied: '/var/cache/rhn/proxy-auth/p1000010000'

Local variables by frame
Frame _safe_create in /usr/share/rhn/common/rhnCache.py at line 158
                       tries = <type 'int'> 4
                     dirname = <type 'str'> /var/cache/rhn/proxy-auth
                           e = <type 'instance'> [Errno 13] Permission denied: '/var/cache/rhn/proxy-auth/p1000010000'
                       fname = <type 'str'> /var/cache/rhn/proxy-auth/p1000010000

Frame get_fd in /usr/share/rhn/common/rhnCache.py at line 222
                        self = <class 'common.rhnCache.WriteLockedFile'> <common.rhnCache.WriteLockedFile object at 0xb7c4004c>
                        name = <type 'str'> proxy-auth/p1000010000

Frame __init__ in /usr/share/rhn/common/rhnCache.py at line 177
                        self = <class 'common.rhnCache.WriteLockedFile'> <common.rhnCache.WriteLockedFile object at 0xb7c4004c>
                    modified = <type 'NoneType'> None
                        name = <type 'str'> proxy-auth/p1000010000

Frame set_file in /usr/share/rhn/common/rhnCache.py at line 280
                        self = <type 'instance'> <common.rhnCache.Cache instance at 0xb7c35fac>
                    modified = <type 'NoneType'> None
                        name = <type 'str'> proxy-auth/p1000010000

Frame set in /usr/share/rhn/common/rhnCache.py at line 248
                        self = <type 'instance'> <common.rhnCache.Cache instance at 0xb7c35fac>
                    modified = <type 'NoneType'> None
                       value = <type 'str'> UU1000010000::1240853318.03:21600.0:gaasByXppeyTVI89qw2Cjg==:rlx-3-06.rhndev.redhat.comq.
                        name = <type 'str'> proxy-auth/p1000010000

Frame set in /usr/share/rhn/common/rhnCache.py at line 354
                        name = <type 'str'> proxy-auth/p1000010000
                        self = <type 'instance'> <common.rhnCache.ObjectCache instance at 0xb7c35fcc>
                     pickled = <type 'str'> UU1000010000::1240853318.03:21600.0:gaasByXppeyTVI89qw2Cjg==:rlx-3-06.rhndev.redhat.comq.
                       value = <type 'str'> 1000010000::1240853318.03:21600.0:gaasByXppeyTVI89qw2Cjg==:rlx-3-06.rhndev.redhat.com
                    modified = <type 'NoneType'> None

Frame set in /usr/share/rhn/common/rhnCache.py at line 83
                        name = <type 'str'> proxy-auth/p1000010000
                       cache = <type 'instance'> <common.rhnCache.ObjectCache instance at 0xb7c35fcc>
                    modified = <type 'NoneType'> None
                       value = <type 'str'> 1000010000::1240853318.03:21600.0:gaasByXppeyTVI89qw2Cjg==:rlx-3-06.rhndev.redhat.com
                         raw = <type 'NoneType'> None
                  compressed = <type 'NoneType'> None

Frame __setitem__ in /usr/share/rhn/proxy/rhnProxyAuth.py at line 391
                        self = <type 'instance'> <proxy.rhnProxyAuth.AuthLocalBackend instance at 0xb7c35e6c>
                        rkey = <type 'str'> proxy-auth/p1000010000
                         key = <type 'str'> p1000010000
                         val = <type 'str'> 1000010000::1240853318.03:21600.0:gaasByXppeyTVI89qw2Cjg==:rlx-3-06.rhndev.redhat.com

Frame set_cached_token in /usr/share/rhn/proxy/rhnProxyAuth.py at line 152
                        text = <type 'str'> Caching of authentication token for proxy id 1000010000 failed!
Either the authentication caching daemon is experiencing
problems, isn't running, or the token is somehow corrupt.

                       token = <type 'str'> 1000010000::1240853318.03:21600.0:gaasByXppeyTVI89qw2Cjg==:rlx-3-06.rhndev.redhat.com
                        self = <type 'instance'> <proxy.rhnProxyAuth.ProxyAuth instance at 0xb7c12f4c>
                       shelf = <type 'instance'> <proxy.rhnProxyAuth.AuthLocalBackend instance at 0xb7c35e6c>

Frame check_cached_token in /usr/share/rhn/proxy/rhnProxyAuth.py at line 122
                       token = <type 'str'> 1000010000::1240853318.03:21600.0:gaasByXppeyTVI89qw2Cjg==:rlx-3-06.rhndev.redhat.com
                forceRefresh = <type 'int'> 0
                    oldToken = <type 'NoneType'> None
                        self = <type 'instance'> <proxy.rhnProxyAuth.ProxyAuth instance at 0xb7c12f4c>

Frame handler in /usr/share/rhn/proxy/broker/rhnBroker.py at line 180
                   client_ip = <type 'str'> 10.11.228.65
                     ip_path = <type 'str'> 10.11.228.65
                        _oto = <type 'instance'> {'accept-language': 'en-us,en;q=0.5', 'accept-encoding': 'gzip,deflate', 'host': 'rlx-3-06.rhndev.redhat.com', 'accept': 'image/png,image/*;q=0.8,*/*;q=0.5', 'keep-alive': '300', 'x-rhn-ip-path': '10.11.228.65', 'accept-charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'connection': 'keep-alive', 'cookie': 'rh_omni_tc=70160000000H4AjAAK; s_vi=[CS]v1|48EA534700000B47-A3A083F00003B8C[CE]; s_cc=true; s_sq=%5B%5BB%5D%5D; rh_sso=0|S1F2AmIeYEIgaLpejfMTiTl4IyuqgbOQ9uy; rh_user=whayutin|Stephen3|member; rh_shared_auth=cd070a88f72370dd178b46abe67e2f1c277f3d27372f738a6576e44ba7fc781f587f8a271a66d5ec2b507729bd5f3ab5b946df0ac4d343109b7b5f71661701efb63cb92c455ca41453a45e0c7a266fc8', 'x-rhn-transport-capability': 'follow-redirects=3', 'user-agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.9) Gecko/2009041408 Red Hat/3.0.9-1.el5 Firefox/3.0.9'}
                   getResult = <type 'NoneType'> None
                        self = <type 'instance'> <proxy.broker.rhnBroker.BrokerHandler instance at 0xb7c129ec>

Frame handler in /usr/share/rhn/proxy/apacheHandler.py at line 348
                  handlerObj = <type 'instance'> <proxy.broker.rhnBroker.BrokerHandler instance at 0xb7c129ec>
                        self = <type 'instance'> <proxy.apacheHandler.apacheHandler instance at 0xb7cb9b2c>
                         req = <type 'mp_request'> <mp_request object at 0xb7e96d2c>
                         ret = <type 'int'> 0
                   rhnBroker = <type 'module'> <module 'proxy.broker.rhnBroker' from '/usr/share/rhn/proxy/broker/rhnBroker.pyc'>

Frame __call__ in /usr/share/rhn/proxy/apacheServer.py at line 66
                        self = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0xb7dcb7ac>
                         req = <type 'mp_request'> <mp_request object at 0xb7e96d2c>
                           f = <type 'instancemethod'> <bound method apacheHandler.handler of <proxy.apacheHandler.apacheHandler instance at 0xb7cb9b2c>>

Frame HandlerDispatch in /usr/lib/python2.4/site-packages/mod_python/apache.py at line 299
                         req = <type 'mp_request'> <mp_request object at 0xb7e96d2c>
                      config = <type 'mp_table'> {'PythonPath': 'sys.path+['/usr/share/rhn']'}
                        self = <type 'instance'> <mod_python.apache.CallBack instance at 0xb7ea472c>
                      object = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0xb7dcb7ac>
                           l = <type 'list'> ['proxy.apacheServer', 'Handler']
                      module = <type 'module'> <module 'proxy.apacheServer' from '/usr/share/rhn/proxy/apacheServer.pyc'>
                       hlist = <type 'mp_hlist'> {'handler:'proxy.apacheServer::Handler','directory':'^/*/','silent':0}
                  object_str = <type 'str'> Handler
                       debug = <type 'int'> 0
                 module_name = <type 'str'> proxy.apacheServer
                  pathstring = <type 'str'> sys.path+['/usr/share/rhn']
                      result = <type 'int'> 500


Environment for PID=4041 on exception:
LANG = C
PATH = /sbin:/usr/sbin:/bin:/usr/bin
PWD = /
SHLVL = 2
TERM = xterm
_ = /usr/sbin/httpd

Comment 1 wes hayutin 2009-04-27 18:32:43 UTC
looks like a selinux issue

type=AVC msg=audit(1240839148.057:41): avc:  denied  { write } for  pid=3348 comm="httpd" name="proxy-auth" dev=dm-0 ino=417963 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:var_t:s0 tclass=dir
type=SYSCALL msg=audit(1240839148.057:41): arch=40000003 syscall=5 success=no exit=-13 a0=983ee58 a1=80c1 a2=1a4 a3=80c1 items=0 ppid=3331 pid=3348 auid=0 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=2 comm="httpd" exe="/usr/sbin/httpd" subj=root:system_r:httpd_t:s0 key=(null)
type=AVC msg=audit(1240839148.067:42): avc:  denied  { read } for  pid=3475 comm="sendmail" path="eventpoll:[19693]" dev=eventpollfs ino=19693 scontext=root:system_r:system_mail_t:s0 tcontext=root:system_r:httpd_t:s0 tclass=file
type=SYSCALL msg=audit(1240839148.067:42): arch=40000003 syscall=11 success=yes exit=0 a0=9767b90 a1=983ce70 a2=bfcd98ac a3=9718838 items=0 ppid=3348 pid=3475 auid=0 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=51 sgid=51 fsgid=51 tty=(none) ses=2 comm="sendmail" exe="/usr/sbin/sendmail.sendmail" subj=root:system_r:system_mail_t:s0 key=(null)


on the client get..



Error Message:
    RHN Proxy error (auth caching issue). Please contact your system administrator.
Error Class Code: 1000
Error Class Info: RHN Proxy error.
Explanation: 
     An error has occurred while processing your request. If this problem
     persists please enter a bug report at bugzilla.redhat.com.
     If you choose to submit the bug report, please be sure to include
     details of what you were trying to do when this error occurred and
     details on how to reproduce this problem.

See /var/log/up2date for more information

Comment 3 wes hayutin 2009-05-04 16:15:18 UTC
may be dupe
https://bugzilla.redhat.com/show_bug.cgi?id=498974

Comment 4 Jan Pazdziora 2009-05-05 14:01:18 UTC
*** Bug 498974 has been marked as a duplicate of this bug. ***

Comment 5 Clifford Perry 2009-05-07 21:14:50 UTC
So if SELinux is not allowing proxy auth to write tokens to /var/cache/rhn/ sounds like update to SELinux policy is needed. Going to Assign to Tomas for review. 

Cliff

Comment 6 Jan Pazdziora 2009-05-27 11:12:18 UTC
Tomáš agreed to work on this one, utilizing hit backup hat.

Comment 7 Jan Pazdziora 2009-05-27 11:12:35 UTC
Tomáš agreed to work on this one, utilizing his backup hat.

Comment 8 Jan Pazdziora 2009-05-27 11:14:01 UTC
The page https://fedorahosted.org/spacewalk/wiki/Features/SELinux will probably be rather helpful for him.

Comment 9 Tomas Lestach 2009-05-28 09:50:31 UTC
What I did was:

I synced redhat-rhn-proxy-5.3-server-i386-5 channel (from satellite.rhn.webqa.redhat.com) to my sat (Satellite-5.3.0-RHEL5-re20090520.0-i386).

I took a fresh client install, set selinux to enforcing, then registered to sat, and installed a proxy v5.3 over WEBUI.

I set another client to register to proxy and run
# rhnreg_ks --user=<user> --password=<password> --force
# echo $?
0
#

I see my client registered to the sat over proxy on WEBUI.

The selinux proxy-auth type looks also good:
# ls -dZ /var/cache/rhn/proxy-auth/
drwxr-x---  apache root system_u:object_r:spacewalk_proxy_cache_t /var/cache/rhn/proxy-auth/


Are you sure you have a correct proxy installation?
Could you provide me with more precise reproducer?

Comment 10 Tomas Lestach 2009-05-28 10:07:57 UTC
And a file was successfully created in the proxy-auth directory:

# ls -Z /var/cache/rhn/proxy-auth/
-rw-r--r--  apache apache root:object_r:spacewalk_proxy_cache_t p1000010121

Comment 11 wes hayutin 2009-05-28 11:16:42 UTC
ya.. this bug is already a month old, and I think is fixed.. moving to on_qa to retest

Comment 13 Jan Pazdziora 2009-07-01 14:05:45 UTC
With Proxy versions

# rpm -qa | grep proxy
rhn-proxy-branding-5.3.0.24-1.el5sat
spacewalk-proxy-redirect-0.5.7-7.el5sat
spacewalk-proxy-monitoring-0.4.4-3.el5sat
spacewalk-proxy-installer-0.5.25-13.el5sat
spacewalk-proxy-docs-0.4.1-2.el5sat
spacewalk-proxy-common-0.5.7-7.el5sat
spacewalk-proxy-package-manager-0.5.7-7.el5sat
spacewalk-proxy-selinux-0.5.2-6.el5sat
spacewalk-proxy-broker-0.5.7-7.el5sat
spacewalk-proxy-management-0.5.7-7.el5sat

activation of client went without problems, the new system record appeared in Satellite's WebUI in the list of systems and also in Proxy's Systems Using Proxy tab. The record(s) in proxy-auth were created OK:

# ls -laZ /var/cache/rhn/proxy-auth/
drwxr-x---  apache root   system_u:object_r:spacewalk_proxy_cache_t .
drwxr-x---  apache root   system_u:object_r:var_t          ..
-rw-r--r--  apache apache root:object_r:spacewalk_proxy_cache_t 1000010020
-rw-r--r--  apache apache root:object_r:spacewalk_proxy_cache_t p1000010000

Marking as VERIFIED.

Comment 14 Petr Sklenar 2009-09-18 16:57:54 UTC
tried: RHN-Proxy-5.3.0-RHEL5-re20090820.0-x86_64
connected to Satellite-5.3.0-RHEL5-re20090820.1

== rhn-proxy ==
[root@xen70 ~]# getenforce 
Enforcing

[root@xen70 ~]# rpm -qa | grep proxy
spacewalk-proxy-monitoring-0.4.4-4.el5sat
spacewalk-proxy-broker-0.5.7-10.el5sat
spacewalk-proxy-management-0.5.7-10.el5sat
rhn-proxy-branding-5.3.0.27-1.el5sat
spacewalk-proxy-common-0.5.7-10.el5sat
spacewalk-proxy-package-manager-0.5.7-10.el5sat
spacewalk-proxy-redirect-0.5.7-10.el5sat
spacewalk-proxy-docs-0.4.1-2.el5sat
spacewalk-proxy-selinux-0.5.2-7.el5sat

[root@xen70 ~]# ls -laZ /var/cache/rhn/proxy-auth/
drwxr-x---  apache root   system_u:object_r:spacewalk_proxy_cache_t .
drwxr-x---  apache root   system_u:object_r:var_t          ..
-rw-r--r--  apache apache root:object_r:spacewalk_proxy_cache_t 1000010269
-rw-r--r--  apache apache root:object_r:spacewalk_proxy_cache_t 1000010424
-rw-r--r--  apache apache root:object_r:spacewalk_proxy_cache_t 1000010444
-rw-r--r--  apache apache root:object_r:spacewalk_proxy_cache_t p1000010404

== client ==
[root@dhcp-lab-234 ~]# rhnreg_ks --username=**** --pass=****  --serverUrl=http://xen70.englab.brq.redhat.com/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --force --profilename=through-proxy-2
[root@dhcp-lab-234 ~] rhn_register # :works

# I could download many packages from satellite's channel
# and system records were placed properly.

moved to release_pending

Comment 15 Clifford Perry 2009-10-28 19:29:52 UTC
Closing bug. 530 is GA and we somehow missed this one to close.


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