Michael DeHaan wrote:
>>>>> Now from your reply I think I see the problem -
cobbler is supposed to
>>>>> use reposync with empty rpms list (am I right?) when syncing
>>>>> repositories. But 1.4.3 is trying yumdownload instead and failing as
it
>>>>> requires implicit list!
>>>>>
You are right...
>>>>>
>>>>>
>>>>>
>>>>>> If you set it with say, "export", it doesn't use
this setting?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>> If you have rpms in the rpmlist, it uses yumdownloader instead of
yum's
>>>> reposync, internally, yes.
>>>>
>>>> Paste "cobbler repo report" please...
>>>>
>>>> --Michael
>>>>
>>>>
>>>>
>>>>
>>> I setup 2 repos that I want to mirror locally
'F10-i386-rpmfusion-free'
>>> and 'F10-i386-rpmfusion-nonfree'
>>> I put a few rpms in '*nonfree' and left '*free' empty.
>>>
>>> I have other repos that I don't mirror locally - we have fast internal
>>> mirror inside of company's firewall with http access. I removed them
>>> from output to make reply shorter, but can submit them also if needed.
>>>
>>> Here is the output of "cobbler repo report":
>>>
>>>
>>>
>>> repo : F10-i386-rpmfusion-free
>>> arch : i386
>>> breed : yum
>>> comment : Rpmfusion free for Fedora 10 i386
>>> created : Mon Jan 26 17:04:02 2009
>>> createrepo_flags :
>>> environment : {'http_proxy':
'http://192.168.1.130:3128'}
>>> keep updated : True
>>> mirror :
>>>
http://mirrors.tummy.com/mirrors/rpmfusion.org/free/fedora/releases/10/Ev...
>>> mirror locally : True
>>>
>>> modified : Wed Mar 25 10:01:49 2009
>>>
>>> owners : ['cobbler']
>>>
>>> priority : 99
>>>
>>> rpm list : []
>>>
>>> yum options : {}
>>>
>>>
>>> repo : F10-i386-rpmfusion-nonfree
>>> arch : i386
>>> breed : yum
>>> comment : Rpmfusion nonfree for Fedora 10
>>> i386
>>>
>>> created : Mon Jan 26 17:09:18 2009
>>> createrepo_flags :
>>> environment : {'http_proxy':
'http://192.168.1.130:3128'}
>>> keep updated : True
>>> mirror :
>>>
http://download1.rpmfusion.org/nonfree/fedora/releases/10/Everything/i386...
>>> mirror locally : True
>>>
>>> modified : Thu Mar 19 12:46:45 2009
>>>
>>> owners : ['cobbler']
>>>
>>> priority : 99
>>>
>>> rpm list : ['kmod-nvidia akmod-nvidia kmod-fglrx
akmod-fglrx']
>>>
>>> yum options : {}
>>>
>>>
>>>
>>> My mail program added new lines in the long lines - mirror lines are
>>> oneliners in original output.
>>>
>>> Thanks for help!
>>>
>>>
Can you also paste the output from "'cobbler reposync
--only="F10-i386-rpmfusion-free'" so I can see it?
Here is the output:
environment: http_proxy=http://192.168.1.130:3128
- creating:
/var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free/.origin/F10-i386-rpmfusion-free.repo
- /usr/bin/yumdownloader --resolve -c
/var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free/.origin/F10-i386-rpmfusion-free.repo
--destdir=/var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free
Usage: "usage: yumdownloader [options] package1 [package2] [package..]
Options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
--showduplicates show duplicates, in repos, in list/search commands
-e [error level] error output level
-q, --quiet quiet operation
-v, --verbose verbose operation
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards
allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--disableexcludes=[repo]
disable exclude from main, for a repo or for
everything
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
--nogpgcheck disable gpg signature checking
--disableplugin=[plugin]
disable plugins by name
--enableplugin=[plugin]
enable plugins by name
--skip-broken skip packages with depsolving problems
--color=COLOR control whether color is used
--destdir=DESTDIR destination directory (defaults to current
directory)
--urls just list the urls it would download instead of
downloading
--resolve resolve dependencies and download required packages
--source operate on source packages
--archlist=ARCHLIST only download packages of certain architecture(s)
- createrepo /var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free
Saving Primary metadata
Saving file lists metadata
Saving other metadata
- creating: /var/www/cobbler/repo_mirror/F10-i386-rpmfusion-free/config.repo
environment: http_proxy=http://192.168.1.130:3128
If you can share that with me tomorrow we should be able to get this
corrected for 1.6
I'll also try this myself to see how things are going.
It will be using yumdownloader for the second one because of the listed RPMs, though I
can see from
what you posted that we are storing it wrong. It should be splitting on the spaces and
store that
as a 4 item array, though perhaps there is a chance you quoted it when giving it that
data as input?
I think I entered those through WebUI without any quotes, then after
saving it had to fix environment variable using command line.
Thanks,
--
Leon