[Spacewalk-list] Something odd in reposync....

James Hogarth james.hogarth at gmail.com
Fri Jan 8 13:58:01 UTC 2010


[root at spacewalk ~]# ls -l
/var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updatestotal 1760
-rw-r--r-- 1 root root       0 Jan  8 12:29 cachecookie
drwxr-xr-x 2 root root    4096 Jan  8 12:29 packages
-rw-r--r-- 1 root root 1771520 Jan  8 12:29 primary.sqlite
-rw-r--r-- 1 root root    1953 Dec 19 12:07 repomd.xml

[root at spacewalk ~]# md5sum
/var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updates/*
d41d8cd98f00b204e9800998ecf8427e
/var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updates/cachecookie
md5sum:
/var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updates/packages:
Is a directory
a02f2a662cebf64a92470bf2ce0e043a
/var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updates/primary.sqlite
9e2efefcb4ac9e57905910c4673bee5b
/var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updates/repomd.xml

wget used to get each file:
[root at spacewalk testrepodata]# ls -l
total 16456
-rw-r--r-- 1 root root 1726970 Jan  8 01:14 filelists.sqlite.bz2
-rw-r--r-- 1 root root 1493019 Jan  8 01:14 filelists.xml.gz
-rw-r--r-- 1 root root 5728635 Jan  8 01:14 other.sqlite.bz2
-rw-r--r-- 1 root root 7186754 Jan  8 01:14 other.xml.gz
-rw-r--r-- 1 root root  404967 Dec 19 12:07 primary.sqlite.bz2
-rw-r--r-- 1 root root  226484 Jan  5 00:37 primary.xml.gz
-rw-r--r-- 1 root root    1953 Dec 19 12:07 repomd.xml

[root at spacewalk testrepodata]# bunzip2 *.bz2
[root at spacewalk testrepodata]# gunzip *.gz
[root at spacewalk testrepodata]# ls -l
total 88496
-rw-r--r-- 1 root root 10430464 Jan  8 01:14 filelists.sqlite
-rw-r--r-- 1 root root 21060331 Jan  8 01:14 filelists.xml
-rw-r--r-- 1 root root 28341248 Jan  8 01:14 other.sqlite
-rw-r--r-- 1 root root 27461473 Jan  8 01:14 other.xml
-rw-r--r-- 1 root root  1771520 Dec 19 12:07 primary.sqlite
-rw-r--r-- 1 root root  1389563 Jan  5 00:37 primary.xml
-rw-r--r-- 1 root root     1953 Dec 19 12:07 repomd.xml
[root at spacewalk testrepodata]# md5sum *
db3a5f345f797ad2bf603d153fe5b9fb  filelists.sqlite
587bd8f1e6e10f814dbe27f63b3ccb54  filelists.xml
670d69ebff695ac1f8165d8f68d70d64  other.sqlite
6a90140299218389ecced6382c01a498  other.xml
a02f2a662cebf64a92470bf2ce0e043a  primary.sqlite
2ab24ab175f56c008843cdbe42c54331  primary.xml
9e2efefcb4ac9e57905910c4673bee5b  repomd.xml

[root at spacewalk testrepodata]# diff primary.sqlite
/var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updates/primary.sqlite


[root at spacewalk testrepodata]# /usr/bin/spacewalk-repo-sync --channel
centos_54_x64_updates                                --url
http://mirror.centos.org/centos-5/5.4/updates/x86_64/
--type yum --label centos_54_64_updates
Repo http://mirror.centos.org/centos-5/5.4/updates/x86_64/ has 436 packages.
No new packages to download.
Sync complete


[root at spacewalk testrepodata]# wget -O -
http://mirror.centos.org/centos-5/5.4/updates/x86_64/RPMS/ | grep -i ".rpm"
| wc -l
--2010-01-08 13:57:52--
http://mirror.centos.org/centos-5/5.4/updates/x86_64/RPMS/
Resolving mirror.centos.org... 95.168.183.202
Connecting to mirror.centos.org|95.168.183.202|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `STDOUT'

    [
<=>
] 125,626      733K/s   in 0.2s

2010-01-08 13:57:53 (733 KB/s) - `-' saved [125626]

494


very very weird....

2010/1/8 Michael Mraka <michael.mraka at redhat.com>

> James Hogarth wrote:
> % [root at spacewalk ~]# rm -rf
> % /var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updates
> % [root at spacewalk ~]# /usr/bin/spacewalk-repo-sync --channel
> % centos_54_x64_updates                                --url
> % http://mirror.centos.org/centos-5/5.4/updates/x86_64/
> % --type yum --label centos_54_64_updates
> % Repo http://mirror.centos.org/centos-5/5.4/updates/x86_64/ has 436
> packages.
> % No new packages to download.
> % Sync complete
> %
> % [root at spacewalk ~]# wget -O -
> % http://mirror.centos.org/centos-5/5.4/updates/x86_64/RPMS/ | grep -i
> ".rpm"
> % | wc -l
> ...
> % 494
> %
> % No joy there.....
>
> Hmmm.
> Can you check size, timestamp and content of xml files in
> /var/cache/rhn/reposync/centos_54_x64_updates-centos_54_64_updates
> vs.
> http://mirror.centos.org/centos-5/5.4/updates/x86_64/repodata/
> ?
>
>
> --
> Michael Mráka
> Satellite Engineering, Red Hat
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20100108/54ed66b3/attachment.htm>


More information about the Spacewalk-list mailing list