<div dir="ltr">Hello guys,<div><br></div><div>I'm currently trying to install/configure spacewalk in a lab environment and see if I can manage RHEL, SUSE and Ubuntu servers from one place.</div><div><br></div><div>I installed spacewalk on RHEL 6.5 64 bits.</div>
<div>Then I needed to synchronise RHN rpm's and feed spacewalk channels with them. I found a script which seems to answer precisely to my needs : <a href="https://github.com/angrox/spacewalk-api-scripts/tree/master/spacewalk-rhn-sync">https://github.com/angrox/spacewalk-api-scripts/tree/master/spacewalk-rhn-sync</a></div>
<div><br></div><div>It is bases on mrepo so I installed it.</div><div><br></div><div>When  trying to generate a system id for downloading a RHN channel (with gensystemid), I got a python traceback :</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">gensystemid -r 6Server -a x86_64 /srv/mrepo/rhel6s-x86_64</span></div>
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">/usr/share/mrepo/up2date_client/up2dateUtils.py:16: DeprecationWarning: the md5 module is deprecated; use hashlib instead</span></div>
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">import md5</span></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">RHN Username: </span><a href="mailto:xxxxxxxxxxxxxxxx@xxxxx.xxx" style="color:rgb(65,131,196);text-decoration:none;font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px;background-image:initial;background-repeat:initial">xxxxxxxxxxxxxxxx@xxxxx.xxx</a></div>
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">RHN Password: </span></div><div>
<span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">Traceback (most recent call last):</span></div>
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">File "/usr/bin/gensystemid", line 274, in </span></div>
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">main()</span></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">File "/usr/bin/gensystemid", line 241, in main</span></div>
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">except rpclib.Fault, f:</span></div>
<div><span style="color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:14px;line-height:23.799999237060547px">AttributeError: 'module' object has no attribute 'Fault'</span></div>
</blockquote><div><br></div><div>I opened a ticket in the mrepo bug tracker:</div><div><a href="https://github.com/dagwieers/mrepo/issues/74">https://github.com/dagwieers/mrepo/issues/74</a></div><div><br></div><div>After some more analysis, I found that the python RHN library provided by the spacewalk repository (2.5.69) mask the older one provided by the RHEL baseline (2.5.22). __ AND the API has changed __</div>
<div><br></div><div>So mrepo which probably rely on the "official" rhn library provided by the basline of Centos and RHEL is not working anymore with the one provided by spacewalk.</div><div><br></div><div>My conclusion : if spacewalk provides a library with the same name than another one provided by the baseline, and it breaks it, it is not a clean solution.</div>
<div><br></div><div>That said, I'm a newb with spacewalk and I would be glad to know if something is wrong with my argumentation or the solution I try to implement.</div><div><br></div><div>What's your thoughts?</div>
<div><div><br></div>-- <br>Nicolas MICHEL
</div></div>