[Spacewalk-list] EPEL 7 reposync issue

Waldirio Manhães Pinheiro waldirio at gmail.com
Fri Feb 5 12:41:02 UTC 2016


Hello Olivier, good morning

I can see you have repo locally, the structure is not a big trouble,
because you still having the metadata in repodata dir.

I did one test in my lab

###
[root at deskx packs]# find .
.
./b
./b/backupninja-1.0.1-5.el7.noarch.rpm
./a
./a/AntTweakBar-devel-1.16-2.el7.x86_64.rpm
./c
./c/Coin2-2.5.0-18.el7.x86_64.rpm

[root at deskx packs]# createrepo .
Spawning worker 0 with 3 pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete

[root at deskx packs]# cat /etc/yum.repos.d/local.repo
[local]
name=local
baseurl=file:///root/packs
gpgcheck=0
[root at deskx packs]#


[root at deskx packs]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
local                                                    | 2.9 kB     00:00
...
...
local                                local
    3
repolist: 17,549
[root at deskx packs]#
###

So if you can see 3 packages here, your repo is really totally operational
(structure, metadata, etc), the next step is configure in SW to do a sync,
there will be necessary just pay attention in the channel that you are
creating a relationship with the repo (arch mistakes is very common), btw,
my advice is, first point your machine to your local repo and check if you
will see all packages by "yum grouplist" command for example, if yes, you
can check your configuration in SW (repos, channels).

Let me know if works for you.

Take care


______________
Atenciosamente
Waldirio
msn: waldirio at gmail.com
Skype: waldirio
Site: www.waldirio.com.br
Blog: blog.waldirio.com.br
LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
PGP: www.waldirio.com.br/public.html

On Fri, Feb 5, 2016 at 6:08 AM, Olivier FONT <contact at olivierfont.fr> wrote:

> Hello,
>
> I am facing an issue trying to sync an EPEL local repository in spacewalk.
>
> Since CentOS 7, EPEL repository is splitted in subdirectories named by the
> first letter of the RPM package name.
> I can create a local repository but I can't sync it with spacewalk.
>
> Here the returned error:
>
> Sync started: Thu Feb  4 16:39:58 2016
> ['/usr/bin/spacewalk-repo-sync', '--channel', 'epel-centos-7-x64', '--type', 'yum']
> Repo URL: file:///var/www/html/pub/epel7/
> Packages in repo:                 1
> Packages already synced:          0
> Packages to sync:                 1
> 1/1 : unzoo-4.4-16.el7-0.x86_64
> Downloaded package unzoo-4.4-16.el7.x86_64, from epel-centos-7-x64, but it was invalid.
> Linking packages to channel.
> Repo file:///var/www/html/pub/epel7/ has 0 errata.
> Sync completed.
> Total time: 0:00:00
>
> The package is not listed on spacewalk GUI and is not available for
> spacewalk clients.
>
> It works fine for CentOS 6 EPEL.
>
> Thanks for your help.
>
> Olivier
>
>
> _______________________________________________
> 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/20160205/f07a37e6/attachment.htm>


More information about the Spacewalk-list mailing list