[Spacewalk-list] Spacewalk Client Install on Solaris 10

Lopez, Abel abelopez at tribune.com
Wed Oct 6 20:07:20 UTC 2010


Try this:
export PATH=/opt/redhat/rhn/solaris/bin:/opt/redhat/rhn/solaris/usr/bin:/opt/redhat/rhn/solaris/usr/sbin:$PATH

I was having the same issue because the scripts were calling the native python. Once I put the redhat directories first in my path, it worked fine.
I put this in a file that I source only when I'm going to work with rhn on solaris.

--Abe
On Oct 6, 2010, at 12:30 PM, <spopov at sympatico.ca<mailto:spopov at sympatico.ca>> <spopov at sympatico.ca<mailto:spopov at sympatico.ca>> wrote:

Hi

I've installed the spacewalk client on Solaris 10, but attempts to register to the spacewalk server fail.  Hopefully someone will tell me what very small thing I have to do to make this work. Here are the details

1 a)The error registering the Solaris10 client
# rhnreg_ks --force --serverUrl=http://myspacewalkserver/XMLRPC --activationkey=1-TestKey
Traceback (most recent call last):
  File "/opt/redhat/rhn/solaris/usr/sbin/rhnreg_ks", line 28, in ?
    from rhn.client.translate import _
  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/__init__.py", line 11, in ?
    import rpclib
  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/rpclib.py", line 14, in ?
    import transports
  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/transports.py", line 24, in ?
    import connections
  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/connections.py", line 14, in ?
    import SSL
  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/SSL.py", line 15, in ?
    from OpenSSL import SSL, crypto
  File "/opt/redhat/rhn/solaris/lib/python2.4/site-packages/OpenSSL/__init__.py", line 11, in ?
    import rand, crypto, SSL, tsafe
ImportError: ld.so.1: python: fatal: relocation error: file /opt/redhat/rhn/solaris/lib/python2.4/site-packages/OpenSSL/crypto.so: symbol PyUnicodeUCS4_Decode: referenced symbol not found

1 a)Just for reference this registration works from my RHEL5 client
#rhnreg_ks --force --serverUrl=http://myspacewalkserver/XMLRPC --activationkey=1-TestKey
This system is not subscribed to any channels.
RHN channel support will be disabled.
[

2)The effective path for the registration session
#echo $PATH
/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/samba/sbin:/usr/local/samba/bin:/usr/ccs/bin:/opt/redhat/rhn/solaris/bin:/opt/redhat/rhn/solaris/usr/bin:/opt/redhat/rhn/solaris/usr/sbin

3)The effective library paths
#crle -c /var/ld/ld.config
Configuration file [version 4]: /var/ld/ld.config
  Default Library Path (ELF):   /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib:/opt/redhat/rhn/solaris/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)
Command line:
  crle -c /var/ld/ld.config -l /lib:/usr/lib:/usr/local/lib:/usr/sfw/lib:/opt/redhat/rhn/solaris/lib

4)Supporting packages installed
#pkginfo SUNWzlib SUNWgccruntime
system      SUNWgccruntime GCC Runtime libraries
system      SUNWzlib       The Zip compression library
# pkginfo |grep -i openssl
utility     RHATpossl                        pyOpenSSL 0.6
application SMCossl                          openssl
system      SUNWopenssl-commands             OpenSSL Commands (Usr)
system      SUNWopenssl-include              OpenSSL Header Files
system      SUNWopenssl-libraries            OpenSSL Libraries (Usr)
system      SUNWopenssl-man                  OpenSSL Manual Pages
system      SUNWopensslr                     OpenSSL (Root)

5)Spacewalk packages i<mailto:installedroot at winfrasol1>
#pkginfo|grep RHAT
utility     RHATpossl                        pyOpenSSL 0.6
utility     RHATpythn                        python 2.4.1
utility     RHATrcfg                         rhncfg 5.1.0
utility     RHATrcfga                        rhncfg-actions 5.1.0
utility     RHATrcfgc                        rhncfg-client 5.1.0
utility     RHATrcfgm                        rhncfg-management 5.1.0
utility     RHATrhnc                         rhnclient 5.1.0
utility     RHATrhnl                         rhnlib 1.8
utility     RHATrpush                        rhnpush 5.1.1
utility     RHATsmart                        smartpm 5.1.1

6)The server
 uname  -a
SunOS myservername 5.10 Generic_142901-10 i86pc i386 i86pc

<ATT00001..txt>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20101006/92121ad0/attachment.htm>


More information about the Spacewalk-list mailing list