[Spacewalk-list] (no subject)

Gerald Buttitta gbuttitta at gci.com
Thu May 10 20:25:52 UTC 2012


To the post:
Hi,

Background to previous post:

I'm using https://fedorahosted.org/spacewalk/wiki/CertCreation#InstallGPGkeysintowebapp



I am at Signing the Certificate.

I downloaded and ran gen-oss-sat-cert.pl

./scripts_gen-oss-sat-cert.pl --orgid 1 --owner guser --signer guser  --output /usr/share/spacewalk/setup/spacewalk-public.cert --expires 2022-04-22 --slots 20000 --provisioning-slots 20000 --satellite-version 1.7

   gpg: Signature made Fri 04 May 2012 11:51:12 AM AKDT using RSA key ID 30D3829B
   gpg: Good signature from "guser (spacewalk 1) <guser ggg com>"
   Signatures validation succeeded.
   Certificate saved as /usr/share/spacewalk/setup/spacewalk-public.cert



It appears to have worked.



However, spacewalk-servce restart causes osa-dispatcher error:

Starting osa-dispatcher: RHN 27121 2012/05/07 12:06:50 -08:00: ('Traceback (most recent call last):\n  File "/usr/share/rhn/osad/jabber_lib.py", line 252, in setup_connection\n    c = self._get_jabber_client(js)\n  File "/usr/share/rhn/osad/jabber_lib.py", line 309, in _get_jabber_client\n    c.connect()\n  File "/usr/share/rhn/osad/jabber_lib.py", line 567, in connect\n    jabber.Client.connect(self)\n  File "/usr/lib/python2.6/site-packages/jabber/xmlstream.py", line 488, in connect\n    raise socket.error("Unable to connect to the host and port specified")\nerror: Unable to connect to the host and port specified\n',)

 and



the gui now gives http Status 500-

java.lang.NumberFormatException: null
 java.lang.Long.parseLong(Long.java:401)
 java.lang.Long.parseLong(Long.java:478)
 com.redhat.rhn.manager.session.SessionManager.lifetimeValue(SessionManager.java:65)
 com.redhat.rhn.frontend.servlets.PxtSessionDelegateImpl.createPxtSession(PxtSessionDelegateImpl.java:167)
 com.redhat.rhn.frontend.servlets.PxtSessionDelegateImpl.loadPxtSession(PxtSessionDelegateImpl.java:113)
 com.redhat.rhn.frontend.servlets.PxtSessionDelegateImpl.getPxtSession(PxtSessionDelegateImpl.java:46)
 com.redhat.rhn.frontend.struts.RequestContext.getWebSession(RequestContext.java:532)
 com.redhat.rhn.frontend.struts.RequestContext.getLoggedInUser(RequestContext.java:172)
 com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.initializeContext(LocalizedEnvironmentFilter.java:78)
 com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(LocalizedEnvironmentFilter.java:66)
 com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFilter.java:108)
 com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java:55)
 com.redhat.rhn.frontend.servlets.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:97)



I am not using oracle.  I am using postgre so it's not the oracle bug.

You Replied:

On the satellite host, check the hostname for /etc/sysconfig/rhn/osad.conf, make sure hostname matches the cert you are using from the spacewalk core server.

New Reply:

I asume you are refering to the box spacewalk is installed on, and not a virtualized host that it does sit on.
In osad.conf I didn't find any reference for a host name.
I had added:
# Use a different certificate from what up2date is using
# This should point to the satellite certificate for
# server_name
#glb
osa_ssl_cert = /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
and the cert does show the correct name: sat-svr-centos1
The line: "Use a different certificate from what up2date is using" bothers me.
Am I possibly point to the wrong cert?
Also, I thought the gpg cert was a possible problem so I recreated it.
I'm getting the same errors.
Any ideas?


Jerry Buttitta
OSS Administrator I
(907)868-5916



'Tis the gift to be simple, 'tis the gift to be free,
'Tis the gift to come down where we ought to be,
And when we find ourselves in the place just right,
'Twill be in the valley of love and delight.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120510/02b8045e/attachment.htm>


More information about the Spacewalk-list mailing list