Hello - I've been looking at the image functionality within
cobbler and
I've been having difficulty getting the instructions on PXE booting into
memtest to work (
https://fedorahosted.org/cobbler/wiki/MemTest).
We're running the most recent version from the devel branch.
# cobbler version
cobbler 1.3.4
build date : Mon Dec 15 10:59:32 2008
git hash : b90eca66940d602093502a5084d81d01a4d81f4f
git date : Sat Dec 13 12:04:27 2008 -0500
When I add the system with a Centos 5.2 profile and do a sync it creates
the dhcp and pxe entries as expected.
# cobbler system add --name=build-test1 --profile=CentOS-5.2-i386
--hostname=build-test1 --mac=xx:xx:xx:xx:xx:xx --ip=y.y.y.y
However when I install the memtest RPM and set the client to PXE boot
into memtest I get the output below (and the same output whenever I try
to do a "cobbler sync").
# yum -y install memtest86+
# cobbler image add --name=memtest86 --file=/tftpboot/memtest86+-1.65
--image-type=direct
# cobbler system edit --name=build-test1 --image=memtest86
# cobbler system edit --name=build-test1 --image=memtest86
'NoneType' object has no attribute 'startswith'
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 77,
in main
rc = BootCLI().run(sys.argv)
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 57,
in run
return self.loader.run(args)
File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line 122,
in run
return fn.run()
File "/usr/lib/python2.4/site-packages/cobbler/modules/cli_system.py",
line 252, in run
rc = self.object_manipulator_finish(obj, self.api.systems, self.options)
File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line 418,
in object_manipulator_finish
rc = collect_fn().add(obj, save=True, with_sync=opt_sync,
with_triggers=opt_triggers, check_for_duplicate_netinfo=check_dup)
File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line
263, in add
self.lite_sync.add_single_system(ref.name)
File "/usr/lib/python2.4/site-packages/cobbler/action_litesync.py",
line 144, in add_single_system
self.sync.pxegen.write_all_system_files(system)
File "/usr/lib/python2.4/site-packages/cobbler/pxegen.py", line 221,
in write_all_system_files
self.write_pxe_file(f2,system,None,None,None,image=profile)
File "/usr/lib/python2.4/site-packages/cobbler/pxegen.py", line 405,
in write_pxe_file
elif arch.startswith("ppc"):
There are a few places where the arch seems to be getting passed in as None.
I'm pretty sure this is resolved in 1.4 but I'll do some testing and
make sure it's the case.
1.4 will be out this week.
I've tried disabling dhcp management and I get the same error
message so
it looks as though something is happening in the tftp/pxe config file
generation. Any suggestions would be greatfully appreciated!
Yes, it doesn't have anything to do with DHCP management, this section
of code
is the part that generates the /var/lib/tftpboot and/or /tftpboot tree,
and is usable
even if Cobbler is not managing the DHCP configuration. You do of course
need DHCP to PXE but that is unrelated.
Rgds,
Henry
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler