Hi Bernhard!

   Thanks so much for the FIX! While it's a hack, it's a working hack and I was 
able to login to RHN and see the system subscribed. Still have not sync'd yet 
but I got past the actual running and subscription stage. I really appreciate 
you stepping up and telling me your fix. I just wish the original author was 
still working on this rather than being a dead project. At least now it'll be 
able to be searched for and others will be able to fix this.

My system is:

RHEL 6.5
Spacewalk 2.2

I used the following rpm:

mrepo-0.8.8-0.pre1.el6.rft.noarch.rpm 
(ftp://ftp.pbone.net/mirror/dag.wieers.com/redhat/el6/en/x86_64/testing/RPMS/mrepo-0.8.8-0.pre1.el6.rft.noarch.rpm)

Here is the diff:

================================================================================================================
--- gensystemid 2011-07-30 08:51:08.000000000 -0700
+++ /usr/bin/gensystemid        2014-10-01 08:17:08.659223707 -0700
@@ -12,6 +12,8 @@
     print >>sys.stderr, 'rhnget: up2date libraries are not installed. Aborting 
execution'
     sys.exit(1)

+sys.path.insert(0, '/usr/share/mrepo/')
+
 from up2date_client import config, rpcServer, up2dateErrors
 from rhn import rpclib

================================================================================================================

I also too ran into an issue with the SSL certs. The up2date config, since it 
is running on the spacewalk server had the local spacewalk server's SSL cert. 
(sslCACert[comment]=The CA cert used to verify the ssl server) Once I changed 
the up2date config to use the original RHN cert I was able to subscribe the 
system. I hope there is no ramifications on the local server changing this.

Thanks again!

Glen Collins


----- Original Message -----
Hi,

I had to „patch“ /usr/bin/gensystemid on my spacewalk-server to resolve this 
error.

> [root@xxxxxx ~]# gensystemid --release=6Server /var/mrepo
> gensystemid: Architecture not supplied, using system architecture x86_64
> RHN Username: <username>
> RHN Password:
> Traceback (most recent call last):
>  File "/usr/bin/gensystemid", line 271, in <module>
>    main()
>  File "/usr/bin/gensystemid", line 238, in main
>    except rpclib.Fault, f:
> AttributeError: 'module' object has no attribute 'Fault'

I added the line

   sys.path.insert(0, '/usr/share/mrepo/')

above the line

   from up2date_client import config, rpcServer, up2dateErrors

to make sure, gensystemid uses the rpclib from mrepo and not from the spacewalk 
installation.

I am on Centos6 with python-2.6.6 and mrepo-0.8.8 


Regards,
Bernhard

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to