Hi we rarely use it, but I think it should work. So feel free to look deeper into it. Am Samstag, 16. Januar 2021, 12:24:11 CET schrieb Stefan Bluhm:
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" <mc@suse.de> An: users@lists.uyuni-project.org Gesendet: Samstag, 16. Januar 2021 12:10:12 Betreff: Re: Syncing CentOS8 kickstart on Leap 15.2 fails on treeinfo not found.
Hi
I am not very familar with CentOS/RedHat, but I remember that I saw a ".treeinfo" file somewhere.
This is the content of an ISO image: $> l centos-8.2.2004-x86_64/ insgesamt 20 drwxr-xr-x 7 root root 147 26. Sep 12:06 ./ drwxr-xr-x 15 root root 4096 26. Sep 12:03 ../ dr-xr-xr-x 4 root root 38 9. Jun 2020 AppStream/ dr-xr-xr-x 4 root root 38 9. Jun 2020 BaseOS/ -r--r--r-- 1 root root 44 9. Jun 2020 .discinfo dr-xr-xr-x 3 root root 18 9. Jun 2020 EFI/ dr-xr-xr-x 3 root root 76 9. Jun 2020 images/ dr-xr-xr-x 2 root root 256 9. Jun 2020 isolinux/ -r--r--r-- 1 root root 87 9. Jun 2020 media.repo -r--r--r-- 1 root root 664 9. Jun 2020 TRANS.TBL -r--r--r-- 1 root root 1520 9. Jun 2020 .treeinfo
Am Samstag, 16. Januar 2021, 08:24:50 CET schrieb Stefan Bluhm:
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: <class 'AttributeError'> 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)