Hello Michael,
correct. The code is checking for both (first) treeinfo and .treeinfo.
My question is more along the lines if the kickstart sync is actually intended to be supported in Uyuni. Then I would dig deeper on the issue.
The way the error message and the variable "path" looks to me below is, that urlgrabber is trying to download the treeinfo file locally from /root/treeinfo. Not sure where treeinfo (or .treeinfo) really should come from (local HDD or repo URL). After repo sync, there is no .treeinfo or treeinfo anywhere on my server (I guess only rpms are downloaded).
Best wishes,
Stefan
----- Ursprüngliche Mail -----
Von: "Michael Calmer"
Hello all,
is syncing a CentOS 8 kickstart tree (or syncing kickstart trees in general) supported on SUSE Leap 15.2 with Uyuni master? I could not find the reference to the kickstart sync function in the documentation.
Running reposync on http://msync.centos.org/centos/8/BaseOS/x86_64/os/ gives me this error:
# /usr/bin/spacewalk-repo-sync --channel centos8-baseos-x86_64 --type yum --non-interactive --sync-kickstart 08:09:43 ====================================== 08:09:43 | Channel: centos8-baseos-x86_64 08:09:43 ====================================== 08:09:43 Sync of channel started. Metadaten von Repository 'centos8-baseos-x86_64' abrufen ..................................................................................................................................................[fertig] Cache für Repository 'centos8-baseos-x86_64' erzeugen .....................................................................................................................................................[fertig] Alle Repositorys wurden aktualisiert. 08:09:46 Repo URL: http://msync.centos.org/centos/8/BaseOS/x86_64/os/ 08:09:46 Packages in repo: 1697 08:09:51 No new packages to sync. 08:09:51 08:09:51 Patches in repo: 0. 08:09:52 08:09:52 Importing kickstarts. 08:09:52 Trying treeinfo 08:09:52 Unexpected error:
08:09:52 Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/repo_plugins/yum_src.py", line 1175, in get_file downloaded = urlgrabber.urlgrab(path, temp_file) File "/usr/lib/python3.6/site-packages/urlgrabber/grabber.py", line 787, in urlgrab return default_grabber.urlgrab(url, filename, **kwargs) File "/usr/lib/python3.6/site-packages/urlgrabber/grabber.py", line 1203, in urlgrab raise err urlgrabber.grabber.URLGrabError: [Errno 2] Local file does not exist: /root/treeinfo Checking the variables path and temp_file variables give me this (just before calling urlgrabber.urlgrab): path=treeinfo temp_file=/var/cache/rhn/reposync/1/centos8-baseos-x86_64/treeinfo..download
What is path supposed to be?
Thank you and best wishes,
Stefan
-- Regards Michael Calmer -------------------------------------------------------------------------- Michael Calmer SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, D-90409 Nuernberg T: +49 (0) 911 74053 0 F: +49 (0) 911 74053575 - e-mail: Michael.Calmer@suse.com -------------------------------------------------------------------------- SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer (HRB 36809, AG Nürnberg)