Hi ! I would like to provision rpmfusion repos in cobbler. I can access them only through the web proxy. Is it supported in cobbler? What would be the right place to put the proxy setting for those repos?
The proxy support has been added recently to anaconda during manual installation, but I could not find any way to put it in kickstart, so just adding 'repo= ' does not work. I found that anaconda uses /tmp/anaconda-yum.conf (or so it seems) for yum configuration and tried to put proxy settings there in pre script - did not have any effect.
Another thing I tried - to mirror it locally - then 'cobbler reposync' would need to be configured to use proxy.
For now I just use post install - configure yum and run 'yum install' in scripts.
I am using cobbler 1.4.3-4 on fedora 10, repo is set as http://
Thanks, Leon
Leonid Flaks wrote:
Hi ! I would like to provision rpmfusion repos in cobbler. I can access them only through the web proxy. Is it supported in cobbler? What would be the right place to put the proxy setting for those repos?
The proxy support has been added recently to anaconda during manual installation, but I could not find any way to put it in kickstart, so just adding 'repo= ' does not work. I found that anaconda uses /tmp/anaconda-yum.conf (or so it seems) for yum configuration and tried to put proxy settings there in pre script - did not have any effect.
Another thing I tried - to mirror it locally - then 'cobbler reposync' would need to be configured to use proxy.
Ultimately we need to teach cobbler repo add to respect proxy server environment variables, I think.
Yes?
I'll take patches for this if anyone wants to supply them.
For now I just use post install - configure yum and run 'yum install' in scripts.
I am using cobbler 1.4.3-4 on fedora 10, repo is set as http://
Thanks, Leon _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Leonid Flaks wrote:
Hi ! I would like to provision rpmfusion repos in cobbler. I can access them only through the web proxy. Is it supported in cobbler? What would be the right place to put the proxy setting for those repos?
The proxy support has been added recently to anaconda during manual installation, but I could not find any way to put it in kickstart, so just adding 'repo= ' does not work. I found that anaconda uses /tmp/anaconda-yum.conf (or so it seems) for yum configuration and tried to put proxy settings there in pre script - did not have any effect.
Another thing I tried - to mirror it locally - then 'cobbler reposync' would need to be configured to use proxy.
For now I just use post install - configure yum and run 'yum install' in scripts.
I am using cobbler 1.4.3-4 on fedora 10, repo is set as http://
Thanks, Leon _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Actually, we already have a --environment parameter for repos, so you can specify what environment variables to use when doing similar things.
Maybe see if that works for you?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Michael DeHaan schrieb:
Actually, we already have a --environment parameter for repos, so you can specify what environment variables to use when doing similar things.
Maybe see if that works for you?
It works for me[tm] here.
Regards, -Stefan
Stefan Hermes wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Michael DeHaan schrieb:
Actually, we already have a --environment parameter for repos, so you can specify what environment variables to use when doing similar things.
Maybe see if that works for you?
It works for me[tm] here.
Regards, -Stefan
Thank you for replies. How did you set it up? Here is what I tried (with no luck so far):
I run the following command: cobbler repo edit --name=F10-i386-rpmfusion-free --environment='http_proxy=http://192.168.1.130:3128' (That was all in one line of course)
Here is the question - did you use proxy or http_proxy?
Another issue - once I go to web interface for this repo and click on safe (even without any changes), this variable gets changed:
Before Web interface it looks like this:
grep http_proxy /var/lib/cobbler/config/repos.d/* /var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {http_proxy: 'http://192.168.1.130:3128%27%7D
After save - using the same grep command:
/var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {'http://192.168.1.130:3128%7D': null, '{http_proxy:': null}
If I safe more, it gets worse. I was using WebUI to switch the flag to mirror repo locally.
Now to the main problem. Even if I edit environment variable manually and don't touch it, it does not seems to work. My RPM list is empty as I wanted to mirror everything on this repo.
'cobbler reposync' 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
yumdownloader did not like the empty list and just gave me a help message.
All of the above is the same if I use proxy instead of http_proxy. Am I doing something wrong/stupid here?
Thanks,
Leon
Leonid Flaks wrote:
Stefan Hermes wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Michael DeHaan schrieb:
Actually, we already have a --environment parameter for repos, so you can specify what environment variables to use when doing similar things.
Maybe see if that works for you?
It works for me[tm] here.
Regards, -Stefan
Thank you for replies. How did you set it up? Here is what I tried (with no luck so far):
I run the following command: cobbler repo edit --name=F10-i386-rpmfusion-free --environment='http_proxy=http://192.168.1.130:3128' (That was all in one line of course)
Here is the question - did you use proxy or http_proxy?
Haven't tried either.
Another issue - once I go to web interface for this repo and click on safe (even without any changes), this variable gets changed:
Before Web interface it looks like this:
grep http_proxy /var/lib/cobbler/config/repos.d/* /var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {http_proxy: 'http://192.168.1.130:3128%27%7D
After save - using the same grep command:
/var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {'http://192.168.1.130:3128%7D': null, '{http_proxy:': null}
If I safe more, it gets worse. I was using WebUI to switch the flag to mirror repo locally.
What cobbler version are you using?
Michael DeHaan wrote:
Another issue - once I go to web interface for this repo and click on safe (even without any changes), this variable gets changed:
Before Web interface it looks like this:
grep http_proxy /var/lib/cobbler/config/repos.d/* /var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {http_proxy: 'http://192.168.1.130:3128%27%7D
After save - using the same grep command:
/var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {'http://192.168.1.130:3128%7D': null, '{http_proxy:': null}
If I safe more, it gets worse. I was using WebUI to switch the flag to mirror repo locally.
What cobbler version are you using?
It is version 1.4.3 on fedora 10.
Leon
Leonid Flaks wrote:
Michael DeHaan wrote:
Another issue - once I go to web interface for this repo and click on safe (even without any changes), this variable gets changed:
Before Web interface it looks like this:
grep http_proxy /var/lib/cobbler/config/repos.d/* /var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {http_proxy: 'http://192.168.1.130:3128%27%7D
After save - using the same grep command:
/var/lib/cobbler/config/repos.d/F10-i386-rpmfusion-free:environment: {'http://192.168.1.130:3128%7D': null, '{http_proxy:': null}
If I safe more, it gets worse. I was using WebUI to switch the flag to mirror repo locally.
What cobbler version are you using?
It is version 1.4.3 on fedora 10.
Leon
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Edit your /var/lib/cobbler/config/repos.d/$name file and replace the "environment" variable section with just:
environment: {}
This should fix your problem and allow for other edits.
Presumably this is because you were running 1.4.X previously, I've seen that some and there is not much we can do about it, but thankfully it's an easy fix.
--Michael
Michael DeHaan wrote:
Edit your /var/lib/cobbler/config/repos.d/$name file and replace the "environment" variable section with just:
environment: {}
If I do this, how would I set the proxy then?
This should fix your problem and allow for other edits.
Yes, other edits work, but they add more of {:} to environment. If it is empty to begin with, that it does not matter.
Presumably this is because you were running 1.4.X previously, I've seen that some and there is not much we can do about it, but thankfully it's an easy fix.
--Michael
I had cobbler version that came with fedora 10 first, then updated a few times to what is now 1.4.3. Should I just wait for the next update?
Leon
Leonid Flaks wrote:
Michael DeHaan wrote:
Edit your /var/lib/cobbler/config/repos.d/$name file and replace the "environment" variable section with just:
environment: {}
If I do this, how would I set the proxy then?
This should fix your problem and allow for other edits.
You would clear it and then set it, and then thereafter setting it would work fine.
Yes, other edits work, but they add more of {:} to environment. If it is empty to begin with, that it does not matter.
Presumably this is because you were running 1.4.X previously, I've seen that some and there is not much we can do about it, but thankfully it's an easy fix.
--Michael
I had cobbler version that came with fedora 10 first, then updated a few times to what is now 1.4.3. Should I just wait for the next update?
What would you be waiting for?
Leon _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Finally got some time to re-visit my problems.
Answering my own question. The correct variable to set up proxy is indeed http_proxy (not just proxy).
I still can't figure out how to deal with doing reposync on the whole repo, not just a list of rpms. yumdownloader likes to have implicit list of files to download. Is mirror location in the form of http:// supported in cobbler if RPMS list is empty? I am using cobbler 1.4.3 on fedora 10. In short - if I enter http_proxy either by editing file in /var/lib/cobbler/config/repos.d/ or using cobbler command and list rpms to use it works as expected.
Michael DeHaan wrote:
Edit your /var/lib/cobbler/config/repos.d/$name file and replace the "environment" variable section with just:
environment: {}
If I do this, how would I set the proxy then?
This should fix your problem and allow for other edits.
You would clear it and then set it, and then thereafter setting it would work fine.
I tried to follow your advice, but see no difference. The environment field (and it is the only one I noticed!) seems to change after saving it in web interface.
Yes, other edits work, but they add more of {:} to environment. If it is empty to begin with, that it does not matter.
Presumably this is because you were running 1.4.X previously, I've seen that some and there is not much we can do about it, but thankfully it's an easy fix.
--Michael
I had cobbler version that came with fedora 10 first, then updated a few times to what is now 1.4.3. Should I just wait for the next update?
What would you be waiting for?
I am confused with version numbers here. I am using 1.4.3 now. Did you mean to try it on 1.6.*? I'd rather wait for 1.6 to hit fedora 10 updates to give it another try. Thanks!
Leonid Flaks wrote:
Finally got some time to re-visit my problems.
Answering my own question. The correct variable to set up proxy is indeed http_proxy (not just proxy).
I still can't figure out how to deal with doing reposync on the whole repo, not just a list of rpms. yumdownloader likes to have implicit list of files to download. Is mirror location in the form of http:// supported in cobbler if RPMS list is empty? I am using cobbler 1.4.3 on fedora 10. In short - if I enter http_proxy either by editing file in /var/lib/cobbler/config/repos.d/ or using cobbler command and list rpms to use it works as expected.
Ok, I would hope that yum reposync could also pull this from the environment. This is something to look into.
If you set it with say, "export", it doesn't use this setting?
Michael DeHaan wrote:
Edit your /var/lib/cobbler/config/repos.d/$name file and replace the "environment" variable section with just:
environment: {}
If I do this, how would I set the proxy then?
This should fix your problem and allow for other edits.
You would clear it and then set it, and then thereafter setting it would work fine.
I tried to follow your advice, but see no difference. The environment field (and it is the only one I noticed!) seems to change after saving it in web interface.
I'll check this out...
Yes, other edits work, but they add more of {:} to environment. If it is empty to begin with, that it does not matter.
Presumably this is because you were running 1.4.X previously, I've seen that some and there is not much we can do about it, but thankfully it's an easy fix.
--Michael
I had cobbler version that came with fedora 10 first, then updated a few times to what is now 1.4.3. Should I just wait for the next update?
What would you be waiting for?
I am confused with version numbers here. I am using 1.4.3 now. Did you mean to try it on 1.6.*? I'd rather wait for 1.6 to hit fedora 10 updates to give it another try. Thanks!
I meant did you think there was something wrong with the field storage in 1.4.3 still.
I think if you fix the config file it wouldn't do that again, though if it /does/ that's a problem we need to fix.
You are correct, 1.6 is not released yet.
Michael DeHaan wrote:
Leonid Flaks wrote:
I still can't figure out how to deal with doing reposync on the whole repo, not just a list of rpms. yumdownloader likes to have implicit list of files to download. Is mirror location in the form of http:// supported in cobbler if RPMS list is empty? I am using cobbler 1.4.3 on fedora 10. In short - if I enter http_proxy either by editing file in /var/lib/cobbler/config/repos.d/ or using cobbler command and list rpms to use it works as expected.
Ok, I would hope that yum reposync could also pull this from the environment. This is something to look into.
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!
If you set it with say, "export", it doesn't use this setting?
Leonid Flaks wrote:
Michael DeHaan wrote:
Leonid Flaks wrote:
I still can't figure out how to deal with doing reposync on the whole repo, not just a list of rpms. yumdownloader likes to have implicit list of files to download. Is mirror location in the form of http:// supported in cobbler if RPMS list is empty? I am using cobbler 1.4.3 on fedora 10. In short - if I enter http_proxy either by editing file in /var/lib/cobbler/config/repos.d/ or using cobbler command and list rpms to use it works as expected.
Ok, I would hope that yum reposync could also pull this from the environment. This is something to look into.
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!
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
Should I change subject to something related to reposync? I think proxy issue is resolved!
Michael DeHaan wrote:
Leonid Flaks wrote:
Michael DeHaan wrote:
Leonid Flaks wrote:
I still can't figure out how to deal with doing reposync on the whole repo, not just a list of rpms. yumdownloader likes to have implicit list of files to download. Is mirror location in the form of http:// supported in cobbler if RPMS list is empty? I am using cobbler 1.4.3 on fedora 10. In short - if I enter http_proxy either by editing file in /var/lib/cobbler/config/repos.d/ or using cobbler command and list rpms to use it works as expected.
Ok, I would hope that yum reposync could also pull this from the environment. This is something to look into.
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!
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%27%7D keep updated : True mirror : http://mirrors.tummy.com/mirrors/rpmfusion.org/free/fedora/releases/10/Every... 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%27%7D keep updated : True mirror : http://download1.rpmfusion.org/nonfree/fedora/releases/10/Everything/i386/os... 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!
Leonid Flaks wrote:
Should I change subject to something related to reposync? I think proxy issue is resolved!
Michael DeHaan wrote:
Leonid Flaks wrote:
Michael DeHaan wrote:
Leonid Flaks wrote:
I still can't figure out how to deal with doing reposync on the whole repo, not just a list of rpms. yumdownloader likes to have implicit list of files to download. Is mirror location in the form of http:// supported in cobbler if RPMS list is empty? I am using cobbler 1.4.3 on fedora 10. In short - if I enter http_proxy either by editing file in /var/lib/cobbler/config/repos.d/ or using cobbler command and list rpms to use it works as expected.
Ok, I would hope that yum reposync could also pull this from the environment. This is something to look into.
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!
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%27%7D keep updated : True mirror : http://mirrors.tummy.com/mirrors/rpmfusion.org/free/fedora/releases/10/Every... 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%27%7D keep updated : True mirror : http://download1.rpmfusion.org/nonfree/fedora/releases/10/Everything/i386/os... 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!
Yes, please start a new thread if we have any new/different issues. They are kind of blurring together for me though I am trying :)
Thanks!
--Michael
Just changing subject line to start a new thread.
Leonid Flaks wrote:
I still can't figure out how to deal with doing reposync on the whole repo, not just a list of rpms. yumdownloader likes to have implicit list of files to download. Is mirror location in the form of http:// supported in cobbler if RPMS list is empty? I am using cobbler 1.4.3 on fedora 10. In short - if I enter http_proxy either by editing file in /var/lib/cobbler/config/repos.d/ or using cobbler command and list rpms to use it works as expected.
Ok, I would hope that yum reposync could also pull this from the environment. This is something to look into.
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!
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%27%7D keep updated : True mirror : http://mirrors.tummy.com/mirrors/rpmfusion.org/free/fedora/releases/10/Every... 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%27%7D keep updated : True mirror : http://download1.rpmfusion.org/nonfree/fedora/releases/10/Everything/i386/os... 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!
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%27%7D keep updated : True mirror : http://mirrors.tummy.com/mirrors/rpmfusion.org/free/fedora/releases/10/Every... 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%27%7D keep updated : True mirror : http://download1.rpmfusion.org/nonfree/fedora/releases/10/Everything/i386/os... 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?
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?
--Michael
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%27%7D keep updated : True mirror : http://mirrors.tummy.com/mirrors/rpmfusion.org/free/fedora/releases/10/Every... 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%27%7D keep updated : True mirror : http://download1.rpmfusion.org/nonfree/fedora/releases/10/Everything/i386/os... 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,
Got it!
I've fixed this for 1.6 which should be out tomorrow (knock on silicon)
The problem was that the rpm_list was checking for empty string and not also checking for empty list.
Fix applied to master & devel branches.
--Michael
Michael DeHaan wrote:
Got it!
I've fixed this for 1.6 which should be out tomorrow (knock on silicon)
The problem was that the rpm_list was checking for empty string and not also checking for empty list.
Fix applied to master & devel branches.
--Michael
Just to provide some feedback. I upgraded to cobbler-1.6.1 and can confirm that environment variable is now fixed. I see also that reposync is working as it is supposed to on empty lists of rpms.
Great job! Thanks a lot!
Leon
cobbler@lists.fedorahosted.org