[Spacewalk-list] Changing Repo Cache Checksum via API
Michael Mraka
michael.mraka at redhat.com
Tue Feb 22 10:27:49 UTC 2011
Broekman, Maarten wrote:
% Looking at the API docs for 1.2, I see where I can set the checksum type
% for a channel at creation time, but I don't see any API call for
% changing the checksum type. Is there a call to do that? The reason I'm
% asking is that every now and then I seem to lose the repo cache and need
% to rebuild it, but the checksum keeps getting set back to 'none'.
Hi Maarten,
could you describe exact steps where you see the error?
I tried:
* created channel with 'None' checksum
* added several packages there (via webUI)
* no repo metadata was generated:
# ll /var/cache/rhn/repodata/zero-checksum/
total 8
-rw-r--r-- 1 root root 53 Feb 22 11:15 noyumrepo.txt
# more /var/cache/rhn/repodata/zero-checksum/noyumrepo.txt
No repo will be generated for channel zero-checksum.
* changed Yum Repository Checksum Type to sha256
* repo metadata was generated:
# ll /var/cache/rhn/repodata/zero-checksum/
total 68
-rw-r--r-- 1 root root 20584 Feb 22 11:15 filelists.xml.gz
-rw-r--r-- 1 root root 19829 Feb 22 11:15 other.xml.gz
-rw-r--r-- 1 root root 1638 Feb 22 11:15 primary.xml.gz
-rw-r--r-- 1 root root 1033 Feb 22 11:15 repomd.xml
* when I got back to channel overview page Yum Repository Checksum Type
was still sha256
I can't see any issue.
Regards,
--
Michael Mráka
Satellite Engineering, Red Hat
More information about the Spacewalk-list
mailing list