On Tue, Aug 2, 2011 at 1:24 AM, Dale, Christopher [Colloquium] <
[email protected]> wrote:
> I have created a repo of EPEL, but I currently only want iperf, so I am
> using the RPM list feature.
>
> # cobbler repo report
> Name : epel
> Arch : x86_64
> Breed : yum
> Comment :
> Createrepo Flags : <<inherit>>
> Environment Variables : {}
> Keep Updated : True
> Mirror :
> http://download.fedoraproject.org/pub/epel/5/x86_64
> Mirror locally : True
> Owners : ['admin']
> Priority : 99
> RPM List : ['iperf']
> Yum Options : {}
>
> I then run a cobbler reposync with the following output
>
> # cobbler reposync
> task started: 2011-08-01_204400_reposync
> task started (id=Reposync, time=Mon Aug 1 20:44:00 2011)
> hello, reposync
> run, reposync, run!
> creating: /var/www/cobbler/repo_mirror/epel/.origin/epel.repo
> running: /usr/bin/yumdownloader --resolve --disablerepo=*
> --enablerepo=epel -c /var/www/cobbler/repo_mirror/epel/.origin/epel.repo
> --destdir=/var/www/cobbler/repo_mirror/epel iperf
> received: Repository epel is listed more than once in the configuration
> --> Running transaction check
> ---> Package iperf.x86_64 0:2.0.5-1.el5 set to be updated
> --> Finished Dependency Resolution
> /var/www/cobbler/repo_mirror/epel/iperf-2.0.5-1.el5.x86_64.rpm already
> exists and appears to be complete
>
> running: /usr/bin/wget -q
> http://download.fedoraproject.org/pub/epel/5/x86_64/repodata/repomd.xml -O
> /var/www/cobbler/repo_mirror/epel/.origin/repomd.xml
> received:
> running: /usr/bin/wget -q
> http://download.fedoraproject.org/pub/epel/5/x86_64/repodata/78f41dcf522c086bd5c8e2639e115237b34ff242-comps-el5.xml-O
> /var/www/cobbler/repo_mirror/epel/repodata/78f41dcf522c086bd5c8e2639e115237b34ff242-comps-el5.xml
> received:
> running: /usr/bin/wget -q
> http://download.fedoraproject.org/pub/epel/5/x86_64/repodata/updateinfo.xml.gz-O
> /var/www/cobbler/repo_mirror/epel/repodata/updateinfo.xml.gz
> received:
> running: /usr/bin/wget -q
> http://download.fedoraproject.org/pub/epel/5/x86_64/repodata/92bcfd7a2657432972db6205097f77d48b3dca49-comps-el5.xml.gz-O
> /var/www/cobbler/repo_mirror/epel/repodata/92bcfd7a2657432972db6205097f77d48b3dca49-comps-el5.xml.gz
> received:
> running: /usr/bin/wget -q
> http://download.fedoraproject.org/pub/epel/5/x86_64/repodata/pkgtags.sqlite.gz-O
> /var/www/cobbler/repo_mirror/epel/repodata/pkgtags.sqlite.gz
> received:
> running: createrepo -g
> repodata/78f41dcf522c086bd5c8e2639e115237b34ff242-comps-el5.xml -c cache -s
> sha /var/www/cobbler/repo_mirror/epel
> received:
> Saving Primary metadata
> Saving file lists metadata
> Saving other metadata
>
> creating: /var/www/cobbler/repo_mirror/epel/config.repo
> running: chown -R root:apache /var/www/cobbler/repo_mirror/epel
> received:
> running: chmod -R 755 /var/www/cobbler/repo_mirror/epel
> received:
> *** TASK COMPLETE ***
>
> I then add the appropriate epel.repo file to the client:
>
> # cat /etc/yum.repos.d/epel.repo
> [epel]
> name=Extra Packages for Enterprise Linux 5 - x86_64
> baseurl=http://192.168.xxx.xxx/cobbler/repo_mirror/epel/
> enabled=1
> gpgcheck=0
>
> A yum repolist shows:
>
> # cat /etc/yum.repos.d/epel.repo
> [epel]
> name=Extra Packages for Enterprise Linux 5 - x86_64
> baseurl=http://192.168.xxx.xxx/cobbler/repo_mirror/epel/
> enabled=1
> gpgcheck=0
>
> I do a you clean all for good measure:
>
> # yum clean all
> Loaded plugins: rhnplugin, security
> Cleaning up Everything
>
> Now, when I do a yum install iperf, it does not find the package:
>
> # yum install iperf
> Loaded plugins: rhnplugin, security
> epel
> | 1.2 kB 00:00
> epel/primary
> | 191 B 00:00
> rhel-x86_64-server-5
> | 1.3 kB 00:00
> rhel-x86_64-server-5/primary
> | 4.1 MB 00:00
> rhel-x86_64-server-5
> 11860/11860
> rhn-tools-rhel-x86_64-server-5
> | 1.1 kB 00:00
> rhn-tools-rhel-x86_64-server-5/primary
> | 41 kB 00:00
> rhn-tools-rhel-x86_64-server-5
> 481/481
> Setting up Install Process
> No package iperf available.
> Nothing to do
>
> On the cobbler box (actually rhn satellite with cobbler enabled), I have
> checked the files in /var/www/cobbler/repo_mirror/repodata/
>
> # ls -las /var/www/cobbler/repo_mirror/epel/repodata/
> total 1428
> 8 drwxr-xr-x 2 root apache 4096 Aug 1 20:47 .
> 8 drwxr-xr-x 5 root apache 4096 Aug 1 20:47 ..
> 616 -rwxr-xr-x 1 root apache 620423 Aug 1 20:47
> 78f41dcf522c086bd5c8e2639e115237b34ff242-comps-el5.xml
> 176 -rwxr-xr-x 1 root apache 171124 Aug 1 18:48
> 92bcfd7a2657432972db6205097f77d48b3dca49-comps-el5.xml.gz
> 176 -rwxr-xr-x 1 root apache 171124 Jul 30 04:36
> c1ac35d709f2c733e7d6f039a7469d9c3617e668-comps-el5.xml.gz
> 8 -rwxr-xr-x 1 root apache 184 Aug 1 20:47 filelists.xml.gz
> 8 -rwxr-xr-x 1 root apache 179 Aug 1 20:47 other.xml.gz
> 8 -rwxr-xr-x 1 root apache 323 Aug 1 19:45 pkgtags.sqlite.gz
> 8 -rwxr-xr-x 1 root apache 191 Aug 1 20:47 primary.xml.gz
> 8 -rwxr-xr-x 1 root apache 1185 Aug 1 20:47 repomd.xml
> 404 -rwxr-xr-x 1 root apache 403902 Aug 1 19:45 updateinfo.xml.gz
>
> The following yields nothing:
>
> # grep iperf *.xml
>
> While checking against the *.xml.gz files reveals a reference in
> updates.xml.gz
>
> # for each in $(ls *.gz); do echo $each; zcat $each | grep -c iperf; done
> 92bcfd7a2657432972db6205097f77d48b3dca49-comps-el5.xml.gz
> 0
> c1ac35d709f2c733e7d6f039a7469d9c3617e668-comps-el5.xml.gz
> 0
> filelists.xml.gz
> 0
> other.xml.gz
> 0
> pkgtags.sqlite.gz
> 0
> primary.xml.gz
> 0
> updateinfo.xml.gz
> 1
>
> So, my question is, "Why won't the yum install iperf from the client
> actually work?"
>
>
It looks like the rpm file that is being offered is not really an RPM file.
Thoughts?
rpm -Uvh
http://192.168.xxx.xxx/cobbler/repo_mirror/epel/iperf-2.0.5-1.el5.x86_64.rpm
Retrieving
http://192.168.xxx.xxx/cobbler/repo_mirror/epel/iperf-2.0.5-1.el5.x86_64.rpm
/var/tmp/rpm-xfer.6IVzdo: not an rpm package (or package manifest):
A file command yields:
# file iperf-2.0.5-1.el5.x86_64.rpm
iperf-2.0.5-1.el5.x86_64.rpm: data
--
Christopher Dale | President and Forum Moderator
mobile: 540-903-1775 | email: [email protected]
web: http://www.colloquium.co | twitter:
@colloquiumco<http://twitter.com/colloquiumco> | identica:
@colloquiumco <http://identi.ca/colloquiumco>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler