On Wed, 2010-05-19 at 11:47 -0400, Scott Henson wrote:
Excerpts from Matt Wallace's message of Wed May 19 06:25:23 -0400
2010:
> On Wed, 2010-05-19 at 10:32 +0100, Matt Wallace wrote:
> > Hi all,
> >
> > I've getting the following when trying to run Cobbler on Ubuntu lucid
> > under Python 2.6:
>
> OK, so I identified the issue and it relates to the way in which the
> debian version is read in and analysed in the following file:
<snip>
> I've made a change so that it sources these values from the LSB as
> follows:
>
> elif check_dist() == "debian":
> from lsb_release import *
> fd = get_distro_information()['RELEASE']
> parts = fd.split(".")
> version = parts[0]
> rest = parts[1]
> make = "debian"
> return (make, float(version))
I'd love a patch for this fix if I could get it.
I'll put one together - where do you want it sent/uploaded? :)
> and this seems to work fine however I now get an issue
regarding
> deserialization of the YAML for /etc/cobbler/settings:
<snip>
> CX: '/etc/cobbler/settings is not a valid YAML file'
This is your problem. Could you run the following piece of code, it
should tell you what is wrong with your yaml file.
Exit code of 0, no issues found.
I'm really not convinced that this is the issue, I think that the issue
is that when cobbler.setting.Settings is passed to the "deserialize"
function, for some reason there is no data in it.
The issue seems to be with line 122
of /usr/local/lib/python2.6/dist-packages/cobbler/serializer.py" where
it calls .deserialize on storage_module - I've edited the code numerous
times and storage_module appears to be unset, resulting in the
"TypeNone" error.
This appears to be common to Ubuntu as although the production system is
running on Ubuntu 10.04 (Lucid) I have also used exactly the same source
code (git clone from
git.fedorahosted.org/cobbler ) on an Ubuntu 9.04
release with exactly the same results.
I'm wondering if this is because the value being fed to the config as
"version" is 10.04 and not an expected value - is there any way of
finding out what this value should be or adding the versions for Ubuntu
into Cobbler?
If I change it to a known debian version number (such as 5.0.1) then it
still fails.
Thanks again for your help,
Matt