[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cobbler
Subject:    Re: [cobbler] yaml.parser.ParserError after upgrade to 2.4.7
From:       Jörgen Maas <jorgen.maas () gmail ! com>
Date:       2014-08-22 5:35:28
Message-ID: CAL3dZDe+uS15-mxhTSu=yVovZJfhwxW3428nD2Dr_jrpaEGuaw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Also pushed to release24 branch, if you are willing to test this that would
be great.


On Fri, Aug 22, 2014 at 7:24 AM, Jörgen Maas <jorgen.maas@gmail.com> wrote:

> Of course, another error when backporting stuff.
> This should fix that.
>
> diff --git a/cobbler.spec b/cobbler.spec
> index 367dd05..03249bd 100644
> --- a/cobbler.spec
> +++ b/cobbler.spec
> @@ -17,7 +17,6 @@ Url: http://www.cobblerd.org/
>
>  BuildRequires: redhat-rpm-config
>  BuildRequires: git
> -BuildRequires: PyYAML
>  BuildRequires: python-cheetah
>  BuildRequires: python-setuptools
>
> diff --git a/cobbler/api.py b/cobbler/api.py
> index aa4d2ee..00f0e3c 100644
> --- a/cobbler/api.py
> +++ b/cobbler/api.py
> @@ -23,9 +23,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor,
> Boston, MA
>  """
>
>  import sys
> -import yaml
>  import config
>  import utils
> +from ConfigParser import ConfigParser
> +
>  import action_sync
>  import action_check
>  import action_reposync
> @@ -207,7 +208,7 @@ class BootAPI:
>          if debug:
>              logger = self.logger.debug
>          else:
> -            logger = self.logger.info
> +            logger = self.logger.info
>          if args is None:
>              logger("%s" % msg)
>          else:
> @@ -220,7 +221,7 @@ class BootAPI:
>          What version is cobbler?
>
>          If extended == False, returns a float for backwards compatibility
> -
> +
>          If extended == True, returns a dict:
>
>              gitstamp      -- the last git commit hash
> @@ -229,13 +230,22 @@ class BootAPI:
>              version       -- something like "1.3.2"
>              version_tuple -- something like [ 1, 3, 2 ]
>          """
> -        fd = open("/etc/cobbler/version")
> -        ydata = fd.read()
> -        fd.close()
> -        data = yaml.safe_load(ydata)
>
> +
> +        config = ConfigParser()
> +        config.read("/etc/cobbler/version")
> +        data = {}
> +        data["gitdate"] = config.get("cobbler","gitdate")
> +        data["gitstamp"] = config.get("cobbler","gitstamp")
> +        data["builddate"] = config.get("cobbler","builddate")
> +        data["version"] = config.get("cobbler","version")
> +        # dont actually read the version_tuple from the version file
> +        data["version_tuple"] = []
> +        for num in data["version"].split("."):
> +            data["version_tuple"].append(int(num))
> +
>          if not extended:
>              # for backwards compatibility and use with koan's comparisons
> -            elems = data["version_tuple"]
> +            elems = data["version_tuple"]
>              return int(elems[0]) + 0.1*int(elems[1]) + 0.001*int(elems[2])
>          else:
>              return data
>
>
>
> On Fri, Aug 22, 2014 at 12:33 AM, Orion Poplawski <orion@cora.nwra.com>
> wrote:
>
>> But the method of creation changed between 2.4.6 and 2.4.7 with:
>>
>> commit f78979a8463e5519c21ea40dfebc438ff3c07b99
>> Author: Jörgen Maas <jorgen.maas@gmail.com>
>> Date:   Fri Jul 25 09:47:58 2014 +0200
>>
>>     Fix broken gitdate, gitstamp values in version file.
>>
>> diff --git a/setup.py b/setup.py
>> index 970b4f9..dd5bd46 100644
>> --- a/setup.py
>> +++ b/setup.py
>> @@ -1,5 +1,6 @@
>>  #!/usr/bin/env python
>> -import glob, os, sys, time, yaml
>> +import glob, os, sys, time
>> +from ConfigParser import ConfigParser
>>  from distutils.core import setup, Command
>>  from distutils.command.build_py import build_py as _build_py
>>  import unittest
>> @@ -77,24 +78,24 @@ def gen_manpages():
>>  #####################################################################
>>
>>  def gen_build_version():
>> -    fd = open(os.path.join(OUTPUT_DIR, "version"),"w+")
>> -    gitdate = "?"
>> -    gitstamp = "?"
>>      builddate = time.asctime()
>> -    if os.path.exists(".git"):
>> -       # for builds coming from git, include the date of the last commit
>> -       cmd = subprocess.Popen(["/usr/bin/git","log","--format=%h%n%ad",
>> "-1"],stdout=subprocess.
>> -       data = cmd.communicate()[0].strip()
>> -       if cmd.returncode == 0:
>> -           gitstamp, gitdate = data.split("\n")
>> -    data = {
>> -       "gitdate" : gitdate,
>> -       "gitstamp"      : gitstamp,
>> -       "builddate"     : builddate,
>> -       "version"       : VERSION,
>> -       "version_tuple" : [ int(x) for x in VERSION.split(".")]
>> -    }
>> -    fd.write(yaml.dump(data))
>> +    cmd = subprocess.Popen(["/usr/bin/git", "log", "--format=%h%n%ad",
>> "-1"], stdout=subprocess
>> +    data = cmd.communicate()[0].strip()
>> +    if cmd.returncode == 0:
>> +        gitstamp, gitdate = data.split("\n")
>> +    else:
>> +        gitdate = "?"
>> +        gitstamp = "?"
>> +
>> +    fd = open(os.path.join(OUTPUT_DIR, "version"), "w+")
>> +    config = ConfigParser()
>> +    config.add_section("cobbler")
>> +    config.set("cobbler","gitdate", gitdate)
>> +    config.set("cobbler","gitstamp", gitstamp)
>> +    config.set("cobbler","builddate", builddate)
>> +    config.set("cobbler","version", VERSION)
>> +    config.set("cobbler","version_tuple", [ int(x) for x in
>> VERSION.split(".")])
>> +    config.write(fd)
>>      fd.close()
>>
>>  #####################################################################
>>
>>
>>
>>
>> On 08/18/2014 02:41 PM, Jörgen Maas wrote:
>>
>>> Not very likely, the file is generated by setup.py when
>>> building/installing.
>>>
>>>
>>>
>>> On Mon, Aug 18, 2014 at 10:11 PM, Greg Chavez <greg.chavez@gmail.com
>>> <mailto:greg.chavez@gmail.com>> wrote:
>>>
>>>     I pulled down a backup of the version file from a few days ago and
>>> solved
>>>     the issue:
>>>
>>>     root@io-ns-03:~> cat /etc/cobbler/version
>>>     builddate: Tue Apr 22 15:30:11 2014
>>>     gitdate: '?'
>>>     gitstamp: '?'
>>>     version: 2.4.4
>>>     version_tuple: [2, 4, 4]
>>>
>>>     So like the 2.6 version file snuck into the 2.4.7 package?
>>>
>>>
>>>     On Mon, Aug 18, 2014 at 3:56 PM, Jörgen Maas <jorgen.maas@gmail.com
>>>     <mailto:jorgen.maas@gmail.com>> wrote:
>>>
>>>         The format of the version file changed in 2.6.x (it's now
>>> basically
>>>         ini format using python ConfigParser)
>>>
>>>
>>>         On Mon, Aug 18, 2014 at 5:14 PM, Greg Chavez <
>>> greg.chavez@gmail.com
>>>         <mailto:greg.chavez@gmail.com>> wrote:
>>>
>>>             Thanks for your reply, Alan.
>>>
>>>             I didn't do a find/xargs/grep for version_tuple!  Drat, bad
>>>             troubleshooting. But in any case, even converting that file
>>> to
>>>             YAML doesn't seem to help, I just get more errors.
>>>
>>>             Another interesting thing, the format of
>>> /etc/cobbler/version in
>>>             2.6.3 is not in YAML either.
>>>
>>>             Whatever. This is only affecting the Web console, so I can
>>> stay in
>>>             business while I stand up 2.6 on a new server and replicate.
>>>
>>>             --Greg
>>>
>>>
>>>             On Mon, Aug 18, 2014 at 10:49 AM, Alan Evangelista
>>>             <alanoe@linux.vnet.ibm.com <mailto:alanoe@linux.vnet.ibm.com>>
>>> wrote:
>>>
>>>                 On 08/18/2014 11:27 AM, Greg Chavez wrote:
>>>
>>>                     So I upgraded the cobbler and cobbler-web yum
>>> packages
>>>                     from 2.4.4 to 2.4.7, in preparation for upgrading to
>>> 2.6
>>>                     (this is a RedHat 5.6 system).  Cobbler works fine
>>> from
>>>                     the command line, but I get an error when I attempt
>>> to
>>>                     login to the Web console.  In /var/log/cobbler, I
>>> get this
>>>                     every time I access:
>>>
>>>
>>>                          Fri Aug 15 14:59:08 2014 - INFO | Exception
>>> occured:
>>>                          yaml.parser.ParserError
>>>                          Fri Aug 15 14:59:08 2014 - INFO | Exception
>>> value:
>>>                     expected
>>>                          '<document start>', but found '<scalar>'
>>>                            in "<string>", line 2, column 1:
>>>                              version_tuple = [2, 4, 7]
>>>                              ^
>>>
>>>
>>>                 /etc/cobbler/version has incorrect format, it should be
>>> in
>>>                 YAML.. Example:
>>>
>>>                 builddate: Thu Jan 30 21:42:10 2014
>>>                 gitdate: Mon Dec 9 11:08:16 2013 -0800
>>>                 gitstamp: 2181fa3
>>>                 version: 2.5.0
>>>                 version_tuple: [2, 5, 0]
>>>
>>>                 It is possible you'll have conflicts with other files.
>>> I'd
>>>                 recommend backing up important data and making a a clean
>>>                 installation.
>>>
>>>
>>>                 Regards,
>>>                 Alan Evangelista
>>>
>>>                 _________________________________________________
>>>                 cobbler mailing list
>>>                 cobbler@lists.fedorahosted.org
>>>                 <mailto:cobbler@lists.fedorahosted.org>
>>>                 https://lists.fedorahosted.__
>>> org/mailman/listinfo/cobbler
>>>
>>>                 <https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>> >
>>>
>>>
>>>
>>>
>>>             --
>>>             \*..+.-
>>>             --Greg Chavez
>>>             +//..;};
>>>
>>>             _______________________________________________
>>>             cobbler mailing list
>>>             cobbler@lists.fedorahosted.org <mailto:cobbler@lists.
>>> fedorahosted.org>
>>>
>>>             https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>
>>>
>>>
>>>         --
>>>         Grtz,
>>>         Jörgen Maas
>>>
>>>         _______________________________________________
>>>         cobbler mailing list
>>>         cobbler@lists.fedorahosted.org <mailto:cobbler@lists.
>>> fedorahosted.org>
>>>
>>>         https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>
>>>
>>>
>>>     --
>>>     \*..+.-
>>>     --Greg Chavez
>>>     +//..;};
>>>
>>>     _______________________________________________
>>>     cobbler mailing list
>>>     cobbler@lists.fedorahosted.org <mailto:cobbler@lists.
>>> fedorahosted.org>
>>>
>>>     https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>
>>>
>>>
>>> --
>>> Grtz,
>>> Jörgen Maas
>>>
>>>
>>> _______________________________________________
>>> cobbler mailing list
>>> cobbler@lists.fedorahosted.org
>>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>
>>
>> --
>> Orion Poplawski
>> Technical Manager                     303-415-9701 x222
>> NWRA, Boulder/CoRA Office             FAX: 303-415-9702
>> 3380 Mitchell Lane                       orion@nwra.com
>> Boulder, CO 80301                   http://www.nwra.com
>>
>> _______________________________________________
>> cobbler mailing list
>> cobbler@lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>
>
>
>
> --
> Grtz,
> Jörgen Maas
>



-- 
Grtz,
Jörgen Maas

[Attachment #5 (text/html)]

<div dir="ltr">Also pushed to release24 branch, if you are willing to test this that \
would be great.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On \
Fri, Aug 22, 2014 at 7:24 AM, Jörgen Maas <span dir="ltr">&lt;<a \
href="mailto:jorgen.maas@gmail.com" \
target="_blank">jorgen.maas@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Of course, another error when backporting \
stuff.<br></div>This should fix that.<br><br>diff --git a/cobbler.spec \
b/cobbler.spec<br> index 367dd05..03249bd 100644<br>--- a/cobbler.spec<br>+++ \
b/cobbler.spec<br> @@ -17,7 +17,6 @@ Url: <a href="http://www.cobblerd.org/" \
target="_blank">http://www.cobblerd.org/</a><br>  <br>  BuildRequires: \
redhat-rpm-config<br>  BuildRequires: git<br>-BuildRequires: PyYAML<br>  \
BuildRequires: python-cheetah<br>  BuildRequires: python-setuptools<br>
  <br>diff --git a/cobbler/api.py b/cobbler/api.py<br>index aa4d2ee..00f0e3c \
100644<br>--- a/cobbler/api.py<br>+++ b/cobbler/api.py<br>@@ -23,9 +23,10 @@ \
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA<br>  \
&quot;&quot;&quot;<br>

  <br>  import sys<br>-import yaml<br>  import config<br>  import utils<br>+from \
ConfigParser import ConfigParser<br>+<br>  import action_sync<br>  import \
action_check<br>  import action_reposync<br>@@ -207,7 +208,7 @@ class BootAPI:<br>

                 if debug:<br>                         logger = self.logger.debug<br> \
else:<br>-                       logger = <a href="http://self.logger.info" \
target="_blank">self.logger.info</a> <br>+                       logger = <a \
href="http://self.logger.info" target="_blank">self.logger.info</a><br>

                 if args is None:<br>                         logger(&quot;%s&quot; % \
msg)<br>                 else:<br>@@ -220,7 +221,7 @@ class BootAPI:<br>              \
What version is cobbler?<br>  <br>                 If extended == False, returns a \
float for backwards compatibility<br>

-                 <br>+<br>                 If extended == True, returns a dict:<br>  \
<br>                         gitstamp           -- the last git commit hash<br>@@ \
-229,13 +230,22 @@ class BootAPI:<br>                         version             -- \
something like &quot;1.3.2&quot;<br>

                         version_tuple -- something like [ 1, 3, 2 ]<br>              \
&quot;&quot;&quot;<br>-               fd = \
open(&quot;/etc/cobbler/version&quot;)<br>-               ydata = fd.read()<br>-      \
fd.close()<br>-               data = yaml.safe_load(ydata)<div class=""> <br>
+<br>+               config = ConfigParser()<br></div>+               \
config.read(&quot;/etc/cobbler/version&quot;)<br>+               data = {}<br>+       \
data[&quot;gitdate&quot;] = config.get(&quot;cobbler&quot;,&quot;gitdate&quot;)<br>+  \
data[&quot;gitstamp&quot;] = config.get(&quot;cobbler&quot;,&quot;gitstamp&quot;)<br>

+               data[&quot;builddate&quot;] = \
config.get(&quot;cobbler&quot;,&quot;builddate&quot;)<br>+               \
data[&quot;version&quot;] = config.get(&quot;cobbler&quot;,&quot;version&quot;)<br>+  \
# dont actually read the version_tuple from the version file<br>

+               data[&quot;version_tuple&quot;] = []<br>+               for num in \
data[&quot;version&quot;].split(&quot;.&quot;):<br>+                       \
data[&quot;version_tuple&quot;].append(int(num))<br>+<br>                 if not \
extended:<br>                         # for backwards compatibility and use with \
koan&#39;s comparisons<br>

-                       elems = data[&quot;version_tuple&quot;] <br>+                 \
elems = data[&quot;version_tuple&quot;]<br>                         return \
int(elems[0]) + 0.1*int(elems[1]) + 0.001*int(elems[2])<br>                 else:<br> \
return data<br>

<br></div><div class="gmail_extra"><div><div class="h5"><br><br><div \
class="gmail_quote">On Fri, Aug 22, 2014 at 12:33 AM, Orion Poplawski <span \
dir="ltr">&lt;<a href="mailto:orion@cora.nwra.com" \
target="_blank">orion@cora.nwra.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">But the method of creation changed between 2.4.6 and 2.4.7 \
with:<br> <br>
commit f78979a8463e5519c21ea40dfebc43<u></u>8ff3c07b99<br>
Author: Jörgen Maas &lt;<a href="mailto:jorgen.maas@gmail.com" \
                target="_blank">jorgen.maas@gmail.com</a>&gt;<br>
Date:     Fri Jul 25 09:47:58 2014 +0200<br>
<br>
      Fix broken gitdate, gitstamp values in version file.<br>
<br>
diff --git a/setup.py b/setup.py<br>
index 970b4f9..dd5bd46 100644<br>
--- a/setup.py<br>
+++ b/setup.py<br>
@@ -1,5 +1,6 @@<br>
  #!/usr/bin/env python<br>
-import glob, os, sys, time, yaml<br>
+import glob, os, sys, time<br>
+from ConfigParser import ConfigParser<br>
  from distutils.core import setup, Command<br>
  from distutils.command.build_py import build_py as _build_py<br>
  import unittest<br>
@@ -77,24 +78,24 @@ def gen_manpages():<br>
  ##############################<u></u>##############################<u></u>#########<br>
 <br>
  def gen_build_version():<br>
-      fd = open(os.path.join(OUTPUT_DIR, &quot;version&quot;),&quot;w+&quot;)<br>
-      gitdate = &quot;?&quot;<br>
-      gitstamp = &quot;?&quot;<br>
        builddate = time.asctime()<br>
-      if os.path.exists(&quot;.git&quot;):<br>
-           # for builds coming from git, include the date of the last commit<br>
-           cmd = subprocess.Popen([&quot;/usr/bin/<u></u>git&quot;,&quot;log&quot;,&quot;--format=%h%n%ad&quot;,<u></u>&quot;-1&quot;],stdout=subprocess.<br>
                
-           data = cmd.communicate()[0].strip()<br>
-           if cmd.returncode == 0:<br>
-                 gitstamp, gitdate = data.split(&quot;\n&quot;)<br>
-      data = {<br>
-           &quot;gitdate&quot; : gitdate,<br>
-           &quot;gitstamp&quot;         : gitstamp,<br>
-           &quot;builddate&quot;        : builddate,<br>
-           &quot;version&quot;           : VERSION,<br>
-           &quot;version_tuple&quot; : [ int(x) for x in \
                VERSION.split(&quot;.&quot;)]<br>
-      }<br>
-      fd.write(yaml.dump(data))<br>
+      cmd = subprocess.Popen([&quot;/usr/bin/<u></u>git&quot;, &quot;log&quot;, \
&quot;--format=%h%n%ad&quot;, &quot;-1&quot;], stdout=subprocess<br> +      data = \
cmd.communicate()[0].strip()<br> +      if cmd.returncode == 0:<br>
+            gitstamp, gitdate = data.split(&quot;\n&quot;)<br>
+      else:<br>
+            gitdate = &quot;?&quot;<br>
+            gitstamp = &quot;?&quot;<br>
+<br>
+      fd = open(os.path.join(OUTPUT_DIR, &quot;version&quot;), &quot;w+&quot;)<br>
+      config = ConfigParser()<br>
+      config.add_section(&quot;cobbler&quot;)<br>
+      config.set(&quot;cobbler&quot;,&quot;gitdate&quot;<u></u>, gitdate)<br>
+      config.set(&quot;cobbler&quot;,&quot;<u></u>gitstamp&quot;, gitstamp)<br>
+      config.set(&quot;cobbler&quot;,&quot;<u></u>builddate&quot;, builddate)<br>
+      config.set(&quot;cobbler&quot;,&quot;version&quot;<u></u>, VERSION)<br>
+      config.set(&quot;cobbler&quot;,&quot;version_<u></u>tuple&quot;, [ int(x) for \
x in VERSION.split(&quot;.&quot;)])<br> +      config.write(fd)<br>
        fd.close()<br>
<br>
  ##############################<u></u>##############################<u></u>#########<div><br>
 <br>
<br>
<br>
On 08/18/2014 02:41 PM, Jörgen Maas wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div> Not very likely, the file is generated by setup.py when \
building/installing.<br> <br>
<br>
<br>
On Mon, Aug 18, 2014 at 10:11 PM, Greg Chavez &lt;<a \
href="mailto:greg.chavez@gmail.com" \
target="_blank">greg.chavez@gmail.com</a><br></div><div> &lt;mailto:<a \
href="mailto:greg.chavez@gmail.com" \
target="_blank">greg.chavez@gmail.com</a>&gt;<u></u>&gt; wrote:<br> <br>
      I pulled down a backup of the version file from a few days ago and solved<br>
      the issue:<br>
<br>
      root@io-ns-03:~&gt; cat /etc/cobbler/version<br>
      builddate: Tue Apr 22 15:30:11 2014<br>
      gitdate: &#39;?&#39;<br>
      gitstamp: &#39;?&#39;<br>
      version: 2.4.4<br>
      version_tuple: [2, 4, 4]<br>
<br>
      So like the 2.6 version file snuck into the 2.4.7 package?<br>
<br>
<br>
      On Mon, Aug 18, 2014 at 3:56 PM, Jörgen Maas &lt;<a \
href="mailto:jorgen.maas@gmail.com" \
                target="_blank">jorgen.maas@gmail.com</a><br></div><div>
      &lt;mailto:<a href="mailto:jorgen.maas@gmail.com" \
target="_blank">jorgen.maas@gmail.com</a>&gt;<u></u>&gt; wrote:<br> <br>
            The format of the version file changed in 2.6.x (it&#39;s now \
basically<br>  ini format using python ConfigParser)<br>
<br>
<br>
            On Mon, Aug 18, 2014 at 5:14 PM, Greg Chavez &lt;<a \
href="mailto:greg.chavez@gmail.com" \
                target="_blank">greg.chavez@gmail.com</a><br></div><div>
            &lt;mailto:<a href="mailto:greg.chavez@gmail.com" \
target="_blank">greg.chavez@gmail.com</a>&gt;<u></u>&gt; wrote:<br> <br>
                  Thanks for your reply, Alan.<br>
<br>
                  I didn&#39;t do a find/xargs/grep for version_tuple!   Drat, \
                bad<br>
                  troubleshooting. But in any case, even converting that file to<br>
                  YAML doesn&#39;t seem to help, I just get more errors.<br>
<br>
                  Another interesting thing, the format of /etc/cobbler/version \
in<br>  2.6.3 is not in YAML either.<br>
<br>
                  Whatever. This is only affecting the Web console, so I can stay \
                in<br>
                  business while I stand up 2.6 on a new server and replicate.<br>
<br>
                  --Greg<br>
<br>
<br>
                  On Mon, Aug 18, 2014 at 10:49 AM, Alan \
Evangelista<br></div><div><div>  &lt;<a href="mailto:alanoe@linux.vnet.ibm.com" \
target="_blank">alanoe@linux.vnet.ibm.com</a> &lt;mailto:<a \
href="mailto:alanoe@linux.vnet.ibm.com" \
target="_blank">alanoe@linux.vnet.ibm.<u></u>com</a>&gt;&gt; wrote:<br>


<br>
                        On 08/18/2014 11:27 AM, Greg Chavez wrote:<br>
<br>
                              So I upgraded the cobbler and cobbler-web yum \
                packages<br>
                              from 2.4.4 to 2.4.7, in preparation for upgrading to \
                2.6<br>
                              (this is a RedHat 5.6 system).   Cobbler works fine \
                from<br>
                              the command line, but I get an error when I attempt \
                to<br>
                              login to the Web console.   In /var/log/cobbler, I get \
this<br>  every time I access:<br>
<br>
<br>
                                      Fri Aug 15 14:59:08 2014 - INFO | Exception \
occured:<br>  yaml.parser.ParserError<br>
                                      Fri Aug 15 14:59:08 2014 - INFO | Exception \
value:<br>  expected<br>
                                      &#39;&lt;document start&gt;&#39;, but found \
                &#39;&lt;scalar&gt;&#39;<br>
                                         in &quot;&lt;string&gt;&quot;, line 2, \
column 1:<br>  version_tuple = [2, 4, 7]<br>
                                            ^<br>
<br>
<br>
                        /etc/cobbler/version has incorrect format, it should be \
in<br>  YAML.. Example:<br>
<br>
                        builddate: Thu Jan 30 21:42:10 2014<br>
                        gitdate: Mon Dec 9 11:08:16 2013 -0800<br>
                        gitstamp: 2181fa3<br>
                        version: 2.5.0<br>
                        version_tuple: [2, 5, 0]<br>
<br>
                        It is possible you&#39;ll have conflicts with other files. \
                I&#39;d<br>
                        recommend backing up important data and making a a clean<br>
                        installation.<br>
<br>
<br>
                        Regards,<br>
                        Alan Evangelista<br>
<br></div></div>
                        ______________________________<u></u>___________________<br>
                        cobbler mailing list<br>
                        <a href="mailto:cobbler@lists.fedorahosted.org" \
                target="_blank">cobbler@lists.fedorahosted.org</a><br>
                        &lt;mailto:<a href="mailto:cobbler@lists.fedorahosted.org" \
                target="_blank">cobbler@lists.<u></u>fedorahosted.org</a>&gt;<br>
                        <a href="https://lists.fedorahosted." \
target="_blank">https://lists.fedorahosted.</a>__<u></u>org/mailman/listinfo/cobbler<div><br>
  &lt;<a href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.<u></u>org/mailman/listinfo/cobbler</a>&gt;<br>
 <br>
<br>
<br>
<br>
                  --<br>
                  \*..+.-<br>
                  --Greg Chavez<br>
                  +//..;};<br>
<br>
                  ______________________________<u></u>_________________<br>
                  cobbler mailing list<br></div>
                  <a href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.fedorahosted.org</a> &lt;mailto:<a \
href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.<u></u>fedorahosted.org</a>&gt;<div>

<br>
                  <a href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.<u></u>org/mailman/listinfo/cobbler</a><br>
 <br>
<br>
<br>
<br>
            --<br>
            Grtz,<br>
            Jörgen Maas<br>
<br>
            ______________________________<u></u>_________________<br>
            cobbler mailing list<br></div>
            <a href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.fedorahosted.org</a> &lt;mailto:<a \
href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.<u></u>fedorahosted.org</a>&gt;<div>

<br>
            <a href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.<u></u>org/mailman/listinfo/cobbler</a><br>
 <br>
<br>
<br>
<br>
      --<br>
      \*..+.-<br>
      --Greg Chavez<br>
      +//..;};<br>
<br>
      ______________________________<u></u>_________________<br>
      cobbler mailing list<br></div>
      <a href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.fedorahosted.org</a> &lt;mailto:<a \
href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.<u></u>fedorahosted.org</a>&gt;<div>

<br>
      <a href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.<u></u>org/mailman/listinfo/cobbler</a><br>
 <br>
<br>
<br>
<br>
--<br>
Grtz,<br>
Jörgen Maas<br>
<br>
<br>
______________________________<u></u>_________________<br>
cobbler mailing list<br>
<a href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.fedorahosted.org</a><br> <a \
href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.<u></u>org/mailman/listinfo/cobbler</a><br>
 <br>
</div></blockquote><span><font color="#888888">
<br>
<br>
-- <br>
Orion Poplawski<br>
Technical Manager                                303-415-9701 x222<br>
NWRA, Boulder/CoRA Office                    FAX: 303-415-9702<br>
3380 Mitchell Lane                                   <a href="mailto:orion@nwra.com" \
target="_blank">orion@nwra.com</a><br> Boulder, CO 80301                             \
<a href="http://www.nwra.com" \
target="_blank">http://www.nwra.com</a></font></span><div><div><br> \
______________________________<u></u>_________________<br> cobbler mailing list<br>
<a href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.fedorahosted.org</a><br> <a \
href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.<u></u>org/mailman/listinfo/cobbler</a><br>
 </div></div></blockquote></div><br><br clear="all"><br></div></div><span \
class="HOEnZb"><font color="#888888">-- <br>Grtz,<br>Jörgen Maas \
</font></span></div> </blockquote></div><br><br clear="all"><br>-- \
<br>Grtz,<br>Jörgen Maas </div>


[Attachment #6 (text/plain)]

_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic