So after a long conversation with Dan White I got him to a comfortable interim solution.
That being said, I don't understand how this is supposed to work.
So the use case:
Local cobbler system mirroring RHN channels to provide a local mirror augmenting RHN. All the systems still attach to RHN. Yum complains about duplicate named repositories.
Dan said he had it working on version 0.5.4-22.el5, but going up to 0.5.4-22.el5_7.1 it breaks.
However on my 0.5.4-17.el5_6.1 is broken as well.
[root@myboxen yum.repos.d]# rpm -q yum-rhn-plugin yum-rhn-plugin-0.5.4-17.el5_6.1
[root@myboxen yum.repos.d]# yum repolist Loaded plugins: rhnplugin, security
Repository rhel-x86_64-server-5 is listed more than once in the configuration
When you mirror a RHN channel into cobbler as a repository it requires that the name of the repository match the name of the channel from RHN. But if you tell the system to attach the cobbler repos to yum for use post-installation that same repository gets created in the cobbler-config.repo file.
The interim fix I gave him was to rename that single repository with a sed script in his %post after the repo file is downloaded.
In /usr/lib/python*/site-packages/cobbler/action_reposync.py in the create_local_file method we tried replacing:
config_file.write("[%s]\n" % repo.name)
with
if output and repo.breed == 'rhn': config_file.write("[cobbler-%s]\n" % repo.name) else: config_file.write("[%s]\n" % repo.name)
But since that is not how the cobbler-config.repo file is generated the logic never got accessed.
any thoughts?
On Fri, Oct 28, 2011 at 3:13 PM, Greg Swift gregswift@gmail.com wrote:
So after a long conversation with Dan White I got him to a comfortable interim solution. ... But since that is not how the cobbler-config.repo file is generated the logic never got accessed.
any thoughts?
I guess we could de-couple the local name and the remote name, so that cobbler wouldn't complain about them not matching (by default they would). Do you think that would fix things?
On Fri, Oct 28, 2011 at 17:20, James Cammarata jimi@sngx.net wrote:
On Fri, Oct 28, 2011 at 3:13 PM, Greg Swift gregswift@gmail.com wrote:
So after a long conversation with Dan White I got him to a comfortable interim solution. ... But since that is not how the cobbler-config.repo file is generated the logic never got accessed.
any thoughts?
I guess we could de-couple the local name and the remote name, so that cobbler wouldn't complain about them not matching (by default they would). Do you think that would fix things?
That sounds brilliant, yes.
And you have at least one field volunteer to test any fixes !
On Oct 28, 2011, at 6:58 PM, Greg Swift wrote:
On Fri, Oct 28, 2011 at 17:20, James Cammarata jimi@sngx.net wrote: On Fri, Oct 28, 2011 at 3:13 PM, Greg Swift gregswift@gmail.com wrote:
So after a long conversation with Dan White I got him to a comfortable interim solution. ... But since that is not how the cobbler-config.repo file is generated the logic never got accessed.
any thoughts?
I guess we could de-couple the local name and the remote name, so that cobbler wouldn't complain about them not matching (by default they would). Do you think that would fix things?
That sounds brilliant, yes.
cobbler-devel mailing list cobbler-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler-devel
On Fri, Oct 28, 2011 at 6:55 PM, Dan White ygor@comcast.net wrote:
And you have at least one field volunteer to test any fixes ! On Oct 28, 2011, at 6:58 PM, Greg Swift wrote:
On Fri, Oct 28, 2011 at 17:20, James Cammarata jimi@sngx.net wrote:
I'll need em, I don't have spacewalk or satellite here at home :)
On Fri, Oct 28, 2011 at 6:58 PM, James Cammarata jimi@sngx.net wrote:
On Fri, Oct 28, 2011 at 6:55 PM, Dan White ygor@comcast.net wrote:
And you have at least one field volunteer to test any fixes ! On Oct 28, 2011, at 6:58 PM, Greg Swift wrote:
On Fri, Oct 28, 2011 at 17:20, James Cammarata jimi@sngx.net wrote:
I'll need em, I don't have spacewalk or satellite here at home :)
https://github.com/jimi1283/cobbler/tree/repo-remote-name
I haven't really tested this much, so let me know how it works for you guys. I'm looking at installing spacewalk on my test system to help testing.
I do not know how to install these patches. My cobbler install was done with RPM's
I looked at the code changes and I have some questions and suggestions.
You made a new "remote_name" parameter, and if I read the code properly (cobbler/utils.py lines 1367-1369), it is set to the local repo name by default. How about a slight modification to that default action that prepends "cobbler-" the name if it is rhn-breed ? Like Greg's suggested code snippet.
My concern is that I do not see where the name is getting into the yum-conf files that are generated by yum_repo_stanza and/or http://@@server@@/cblr/svc/op/yum/system/<FQDN>
A pointer, please ?
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes)
----- James Cammarata jimi@sngx.net wrote:
On Fri, Oct 28, 2011 at 6:58 PM, James Cammarata jimi@sngx.net wrote:
On Fri, Oct 28, 2011 at 6:55 PM, Dan White ygor@comcast.net wrote:
And you have at least one field volunteer to test any fixes ! On Oct 28, 2011, at 6:58 PM, Greg Swift wrote:
On Fri, Oct 28, 2011 at 17:20, James Cammarata jimi@sngx.net wrote:
I'll need em, I don't have spacewalk or satellite here at home :)
https://github.com/jimi1283/cobbler/tree/repo-remote-name
I haven't really tested this much, so let me know how it works for you guys. I'm looking at installing spacewalk on my test system to help testing. _______________________________________________ cobbler-devel mailing list cobbler-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler-devel
On Sat, Oct 29, 2011 at 09:59, Dan White ygor@comcast.net wrote:
I do not know how to install these patches. My cobbler install was done with RPM's
i'll try and roll an rpm by monday if I get a chance.
On Sat, Oct 29, 2011 at 19:00, Greg Swift gregswift@gmail.com wrote:
On Sat, Oct 29, 2011 at 09:59, Dan White ygor@comcast.net wrote:
I do not know how to install these patches. My cobbler install was done with RPM's
i'll try and roll an rpm by monday if I get a chance.
Dan, What distro is your cobbler server?
Everything I'm running is RHEL 5.7
On Oct 31, 2011, at 5:21 PM, Greg Swift wrote:
On Sat, Oct 29, 2011 at 19:00, Greg Swift gregswift@gmail.com wrote:
On Sat, Oct 29, 2011 at 09:59, Dan White ygor@comcast.net wrote: I do not know how to install these patches. My cobbler install was done with RPM's
i'll try and roll an rpm by monday if I get a chance.
Dan, What distro is your cobbler server?
cobbler-devel mailing list cobbler-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler-devel
http://nytefyre.net/rpms/cobbler-2.3.1-1.nf.noarch.rpm
The koan and cobbler-web rpms are right there too.
Since its the current devel stream, I would definitely recommend installing in a test environment.
-greg
On Mon, Oct 31, 2011 at 19:50, Dan White ygor@comcast.net wrote:
Everything I'm running is RHEL 5.7
On Oct 31, 2011, at 5:21 PM, Greg Swift wrote:
On Sat, Oct 29, 2011 at 19:00, Greg Swift gregswift@gmail.com wrote:
On Sat, Oct 29, 2011 at 09:59, Dan White ygor@comcast.net wrote:
I do not know how to install these patches. My cobbler install was done with RPM's
i'll try and roll an rpm by monday if I get a chance.
Dan, What distro is your cobbler server?
cobbler-devel mailing list cobbler-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler-devel
cobbler-devel mailing list cobbler-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler-devel
If you clone the git tree, you can do "make rpms" to get RPMs to test.
On Sat, Oct 29, 2011 at 9:59 AM, Dan White ygor@comcast.net wrote:
I do not know how to install these patches. My cobbler install was done with RPM's
I looked at the code changes and I have some questions and suggestions.
Yeah I'm not sure if this is everything we need, probably not. I'm having issues getting spacewalk installed so I'm not sure when I'll be able to test this better.
cobbler-devel@lists.fedorahosted.org