Chris O'Regan wrote:
>> I am trying to replicate with --include-systems, but I am
getting this
>> error message:
>>
>> # cobbler replicate --master=courage --include-systems
>> [...]
>> ----- Copying Systems
>> Importing remote system pride.encs
>> image and profile are mutually exclusive (rhel-3-u9-i386,~)
>>
>> Failed to copy system pride.encs
>> [...]
>>
>>
>> I do not see anything obvious in the log files. Any idea what this means
>> and how I can fix it?
>>
>> # rpm -q cobbler
>> cobbler-1.2.4-1.el5
>>
> Can you share the results of "cobbler system report" ?
>
Sure...
system : pride.encs
profile : rhel-3-u9-i386
image : None
kernel options : {}
kernel options post : {}
kickstart : <<inherit>>
ks metadata : {}
netboot enabled? : True
owners : ['admin']
server : <<inherit>>
virt cpus : <<inherit>>
virt file size : <<inherit>>
virt path : <<inherit>>
virt ram : <<inherit>>
virt type : <<inherit>>
interface : intf0
mac address : xx:xx:xx:xx:xx:xx
ip address : 132.205.96.194
hostname : pride.encs.concordia.ca
gateway : 132.205.96.xxx
subnet : 255.255.255.0
virt bridge :
dhcp tag :
Looking at the code, I think the problem is that that "image" is set to
"None". Not sure what it should be.
Chris
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
This ended up being a rather interesting bug. What happened was that for
whatever reason, yes, "None" was being stored in the yaml file. Ideally
the representation of None is "~", but the string "None" causes
problems. Normally we just edit --image or --profile one at a time, but
here both are being sent, and we were running afoul of code that was
designed to keep these both being set at the same time. It seems this
particular problem would only come up with cobbler replicate against a
cobbler server that already had system data in it.
The code fix is rather involved, but basically if we set one, we now
unset the other, and we now /also/ do validation to ensure that when
loading the object from file, if both are set, we use the profile and
discard the image. Seeing few folks will be using images, this is the
correct thing to do.
Here's the fix, which has been applied to both branches:
http://git.fedorahosted.org/git/cobbler?p=cobbler;a=commitdiff;h=7c682c2b...
Further testing is welcome. If this works for you, we can see about
including this in a 1.2.6 release, as I consider "cobbler replicate" to
be an import feature in 1.2, so we want that working there as well as
possible. (Especially as 1.3 may not release until late October/November).
--Michael