Tuesday, June 17, 2014

Steps to reactivate Redhat Proxy Server

If you are getting following error in your Redhat Proxy Serve log /var/log/rhn/rhn_proxy_broker.log, you need to re-activate your Redhat Proxy Server (provided you have enough license)

proxy/rhnProxyAuth.login('ERROR', '
Server\\n    

Step to Re-activate Redhat Proxy Server

>> On Redhat Proxy: Get SYSTEM_ID of Redhat Proxy Server

# grep ID /etc/sysconfig/rhn/systemid
ID-1234567890

>> On Redhat Proxy: Remove all child channels (leave parents)

# rhn-channel -l
custom-rhel-x86_64-server-7
custom-rhel-x86_64-7-myorg
custom-rhel-x86_64-7-mydb
custom-rhel-x86_64-7-myapp
# rhn-channel --remove -c custom-rhel-x86_64-7-myapp -u user_name

>> On redhat Satellite: change parrent channel to rhel-x86_64-server-7. ( use correct SYSTEM_ID)

# spacewalk-api --server=satellite.company.com system.setBaseChannel "%session%" 1234567890  rhel-x86_64-server-7 -u user_name 

>> On Web UI, subscribe system to "RHN Tools" software  channel.

>> On Redhat Proxy: Ensure spacewalk-proxy-installer is installed and install required ssl certificates

# rpm -qa |grep spacewalk-proxy-installer
# ls -l /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT

>> On RPS: Activate satellite

# rhn-proxy-activate --server=satellite.company.com --version=5.4 --ca-cert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--server (RHN parent):  satellite.company.com
--http-proxy:
--http-proxy-username:
--http-proxy-password:
--ca-cert:              /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
--no-ssl:               false
--version:              5.4

>> On any client using Redhat Proxy, run below

# yum check-update

>> On Redhat Proxy : check logs to confirm it works

# tailf /var/log/rhn/rhn_proxy_broker.log

References

* Redhat KB
* Proxy Installation Document




No comments:

Post a Comment