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.
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.
"""
#!/usr/bin/env python
import yaml
yamlfile = file('/etc/cobbler/settings,'r')
try:
yaml.load(yamlfile)
except yaml.parser.ParserError, ex:
print "Error in yaml file:", ex.problem
badline = ex.problem_mark.line
print "Bad line is %s"%badline
"""
--
Scott Henson
Red Hat CIS Operator
WVU Alum BSAE/BSME