[Spacewalk-list] Problems Syncing SLES Channels in Spacewalk 2.6

Flores, Javier (D4\INF\IT ID) Javier.Flores at gmz.migros.ch
Fri Dec 9 08:12:52 UTC 2016


I got the sync working again by messing a bit in /usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py

I just got rid of everything behind the '?' in the relative URL.

This seems to do the trick:

                relative_url = '_'.join(url.split('://')[1].split('/')[1:])
                my_url = relative_url.split("?")[0]
                # plugin_name = relative_url.replace("?", "_").replace("&", "_").replace("=", "_")
                plugin_name = my_url.replace("?", "_").replace("&", "_").replace("=", "_")

Repository sync works but I don't know if this has an impact on other areas of spacewalk. Use with caution.

Regards,
Javier

Von: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] Im Auftrag von Flores, Javier (D4\INF\IT ID)
Gesendet: Freitag, 9. Dezember 2016 08:34
An: 'spacewalk-list at redhat.com'
Betreff: [Spacewalk-list] Problems Syncing SLES Channels in Spacewalk 2.6

Hello,

I just updated my test server to Spacewalk 2.6 and now I have problems syncing Suse channels. The problem seems to be that spacewalk-repo-sync changed the way it is naming the cache directories.

What used to be /var/cache/rhn/reposync/sle-module-adv-systems-management-12 is now  /var/cache/rhn/reposync/SUSE_Products_SLE-Module-Adv-Systems-Management_12_x86_64_product_(225-character-long-suse-token)

I checked on Spacewalk 2.4 and there the directory name is the same as the channel name, with Spacewalk 2.6 however, the directory name is generated from the repository URL. With a filename limit of 255 characters on a ext4 filesystem the 225 character long Suse token doesn't leave much space for the rest.

The error message is:
ERROR: Error making cache directory: /var/cache/rhn/reposync/SUSE_Products_SLE-Module-Adv-Systems-Management_12_x86_64_product_(225-character-long-suse-token) error was: [Errno 36] File name too long

Is there a way to tell spacewalk-repo-sync not to generate the directory name from the url of the repository but to take the repository label instead?

Regards,
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20161209/ef2905bb/attachment.htm>


More information about the Spacewalk-list mailing list