Shuichi Ihara wrote:
Hi,
I'm attempting to build cobbler on sles10. I installed some packages
that are needed to build the cobbbler. The building is fine, but when I did
"cobbler sync" on sles10, I can see below errors. Do I still have any missing
packages?
# cobbler sync
exceptions.ValueError
invalid literal for float(): no package provides redhat
File "/usr/lib64/python2.4/site-packages/cobbler/cobbler.py", line 65, in
main
return BootCLI().run(sys.argv)
File "/usr/lib64/python2.4/site-packages/cobbler/cobbler.py", line 44, in
run
return self.loader.run(args)
File "/usr/lib64/python2.4/site-packages/cobbler/commands.py", line 69, in
run
return fn.run()
File "/usr/lib64/python2.4/site-packages/cobbler/modules/cli_misc.py", line
211, in run
return self.api.sync()
File "/usr/lib64/python2.4/site-packages/cobbler/api.py", line 326, in sync
sync = self.get_sync()
File "/usr/lib64/python2.4/site-packages/cobbler/api.py", line 340, in
get_sync
return action_sync.BootSync(self._config,dhcp=self.dhcp,dns=self.dns)
File "/usr/lib64/python2.4/site-packages/cobbler/action_sync.py", line 61,
in __init__
self.pxegen = pxegen.PXEGen(config)
File "/usr/lib64/python2.4/site-packages/cobbler/pxegen.py", line 55, in
__init__
self.bootloc = utils.tftpboot_location()
File "/usr/lib64/python2.4/site-packages/cobbler/utils.py", line 609, in
tftpboot_location
(make,version,rest) = os_release()
File "/usr/lib64/python2.4/site-packages/cobbler/utils.py", line 581, in
os_release
return (make, float(version), rest)
Thanks
-Ihara
This should be easy to fix.
What is happening is that cobbler is trying to figure out what OS
version it's running on, and it does this by looking for the
redhat-release package.
Basically we just need to add some code to that function to make it
tolerate SLES and do the right thing. Right now the code in question
tolerates EL, Fedora, and Debian -- it just doesn't know about SuSE yet.
If you know Python and would like to volunteer to fix up cobbler so it's
installable on SLES, that's welcome, otherwise someone else with a SLES
box does need to take a look at this as I don't have one around.
We definitely do support SuSE as an install target and it would be nice
to see it installable there as well.
--Michael
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler