Hi,
we already have a distro available and add it to cobbler without mirroring it:
# cobbler import --path=/cobbler/webroot/x86_64/rhel5u3_serv --name=rhel5u3 \ # --arch=x86_64 --available-as=http://10.0.0.1/x86_64/rhel5u3_serv
Now we createrepo on this and would like to have it added to cobbler so set linux-deployed servers can get it via $yum_config_stanza:
# createrepo /cobbler/webroot/x86_64/rhel5u3_serv # cobbler repo add --mirror=http://10.0.0.1/x86_64/rhel5u3_serv \ # --name=rhel5u3_serv --keep-updated=0 --mirror-locally=0 # cobbler reposync #> - rhel5u3_serv is set to not be updated
We edit a profile to use the repo:
# cobbler profile edit --name=rhel5u3-x86_64 --repos='rhel5u3_serv'
Now checking what $yum_config_stanza resolves into:
# cobbler system getks --name=chhorn_tester64|grep yum.repo #> wget "http://10.0.0.1/cblr/svc/op/yum/system/chhorn_tester64" \ #> --output-document=/etc/yum.repos.d/cobbler-config.repo
File http://10.0.0.1/cblr/svc/op/yum/system/chhorn_tester64 contains:
#> error: could not read repo source: /var/www/cobbler/repo_mirror/rhel5u3-repo/config.repo
In directory /var/www/cobbler/repo_mirror there is only: rhel-x86_64-server-5 .
Any suggestions?
Christian
Christian Horn wrote:
Hi,
we already have a distro available and add it to cobbler without mirroring it:
# cobbler import --path=/cobbler/webroot/x86_64/rhel5u3_serv --name=rhel5u3 \ # --arch=x86_64 --available-as=http://10.0.0.1/x86_64/rhel5u3_serv
ok...
Now we createrepo on this and would like to have it added to cobbler so set linux-deployed servers can get it via $yum_config_stanza:
# createrepo /cobbler/webroot/x86_64/rhel5u3_serv # cobbler repo add --mirror=http://10.0.0.1/x86_64/rhel5u3_serv \ # --name=rhel5u3_serv --keep-updated=0 --mirror-locally=0
ok...
# cobbler reposync #> - rhel5u3_serv is set to not be updated
If you don't set --keep-updated and it works, it has no meaning with --mirror-locally=0
So just "cobbler repo edit --name=foo --keep-updated=1" and things will work again after you run "cobbler reposync".
So, yes, this is a bug.
We should change this, however, so that if the repo is not being mirrored locally we don't have this potentially confusing problem.
--Michael
Michael DeHaan wrote:
Christian Horn wrote:
Hi,
we already have a distro available and add it to cobbler without mirroring it:
# cobbler import --path=/cobbler/webroot/x86_64/rhel5u3_serv --name=rhel5u3 \ # --arch=x86_64 --available-as=http://10.0.0.1/x86_64/rhel5u3_serv
ok...
Now we createrepo on this and would like to have it added to cobbler so set linux-deployed servers can get it via $yum_config_stanza:
# createrepo /cobbler/webroot/x86_64/rhel5u3_serv # cobbler repo add --mirror=http://10.0.0.1/x86_64/rhel5u3_serv \ # --name=rhel5u3_serv --keep-updated=0 --mirror-locally=0
ok...
# cobbler reposync #> - rhel5u3_serv is set to not be updated
If you don't set --keep-updated and it works, it has no meaning with --mirror-locally=0
So just "cobbler repo edit --name=foo --keep-updated=1" and things will work again after you run "cobbler reposync".
So, yes, this is a bug.
We should change this, however, so that if the repo is not being mirrored locally we don't have this potentially confusing problem.
--Michael _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
To elaborate, keep-updated means "don't process this repo the next time you reposync". All repos, even external ones, must be processed at least once so we can generate the configs for them. That, under the covers, is what happened here... the base config file wasn't created yet. We should probably have cobbler repo add create these in the future.
--Michael
On Thu, Apr 16, 2009 at 10:45:03AM -0400, Michael DeHaan wrote:
Michael DeHaan wrote:
Christian Horn wrote:
we already have a distro available and add it to cobbler without mirroring it:
# cobbler import --path=/cobbler/webroot/x86_64/rhel5u3_serv --name=rhel5u3 \ # --arch=x86_64 --available-as=http://10.0.0.1/x86_64/rhel5u3_serv # createrepo /cobbler/webroot/x86_64/rhel5u3_serv # cobbler repo add --mirror=http://10.0.0.1/x86_64/rhel5u3_serv \ # --name=rhel5u3_serv --keep-updated=0 --mirror-locally=0 # cobbler reposync #> - rhel5u3_serv is set to not be updated
If you don't set --keep-updated and it works, it has no meaning with --mirror-locally=0
So just "cobbler repo edit --name=foo --keep-updated=1" and things will work again after you run "cobbler reposync".
Works perfectly, thanks.
Christian
cobbler@lists.fedorahosted.org