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

List:       cobbler
Subject:    RE: cobbler replicate between versions
From:       Steven Goodliff <Steven.Goodliff () virtuefusion ! com>
Date:       2011-10-18 12:12:42
Message-ID: 2C55F6F1B04B8A43B0C13B891191311D675B1F () VFLON-XCH1 ! virtuefusion ! corp
[Download RAW message or body]

Hi,

The error message is

Fri Oct 14 12:09:06 2011 - INFO | Exception occured: cobbler.cexceptions.CX
Fri Oct 14 12:09:06 2011 - INFO | Exception value: 'internal error, collection name \
mgmtclass not supported' Fri Oct 14 12:09:06 2011 - INFO | Exception Info:
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1759, in _dispatch
    return method_handle(*params)
   File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 544, in get_items
    item = [x.to_datastruct() for x in self.api.get_items(what)]
   File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 252, in get_items
    return self._config.get_items(what)
   File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 237, in get_items
    raise CX("internal error, collection name %s not supported" % collection_type)


From: Steven Goodliff
Sent: 14 October 2011 16:24
To: 'cobbler@lists.fedorahosted.org'
Subject: cobbler replicate between versions

Hi,

I was trying to install cobbler on a new server and installed cobbler-2.2.1-1.el5 but \
hit a problem when trying to replicate against cobbler-2.0.11-2.el5,

In this file  /usr/lib/python2.4/site-packages/cobbler/action_replicate.py  \
commenting out the line below and replacing it with a small set of object types does \
the tick

""" OBJ_TYPES = [ "distro", "profile", "system", "repo", "image", "mgmtclass", \
"package", "file" ] """

OBJ_TYPES = [ "distro", "profile", "system", "repo", "image" ]

My python skills are non existant but it seems to do the job so far, the small set \
matches the same python file in the 2.0.11 version

Hope that helps someone.

Steve
The information contained in this email is confidential and may also be subject to \
legal privilege. It is intended only for the recipient(s) named above. If you are not \
named above as a recipient, you must not read, copy, disclose, forward or otherwise \
use the information contained in this email. If you have received this e-mail in \
error, please notify the sender (whose contact details are above) immediately by \
reply e-mail and delete the message and any attachments without retaining any copies. \
Gaming Technologies Solutions Limited is a company registered in England and Wales \
with the company number 5425266, the registered office is 55 Baker Street, London, \
W1U 7EU Virtue Fusion (Alderney) Ltd is a company registered in Alderney with the \
company number 1628, the registered office is Kington Lodge, Le Grand Val, Alderney, \
GY9 3XD, British Channel Islands


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
	{font-family:"Cambria Math"}
@font-face
	{font-family:Calibri}
@font-face
	{font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline}
span.EmailStyle17
	{font-family:"Calibri","sans-serif";
	color:windowtext}
span.EmailStyle18
	{font-family:"Calibri","sans-serif";
	color:#1F497D}
.MsoChpDefault
	{font-size:10.0pt}
@page WordSection1
	{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
	{}
-->
</style>
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi,</span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">The error message is </span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="color:#1F497D">Fri Oct 14 12:09:06 2011 - INFO | \
Exception occured: cobbler.cexceptions.CX</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">Fri Oct 14 12:09:06 2011 - INFO | Exception value: 'internal \
error, collection name mgmtclass not supported'</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">Fri Oct 14 12:09:06 2011 - INFO | Exception Info:</span></p> <p \
class="MsoNormal"><span style="color:#1F497D">&nbsp; File \
&quot;/usr/lib/python2.4/site-packages/cobbler/remote.py&quot;, line 1759, in \
_dispatch</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&nbsp;&nbsp;&nbsp; return method_handle(*params)</span></p> <p \
class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp; File \
&quot;/usr/lib/python2.4/site-packages/cobbler/remote.py&quot;, line 544, in \
get_items</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&nbsp;&nbsp;&nbsp; item = [x.to_datastruct() for x in \
self.api.get_items(what)]</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&nbsp;&nbsp; File \
&quot;/usr/lib/python2.4/site-packages/cobbler/api.py&quot;, line 252, in \
get_items</span></p> <p class="MsoNormal"><span style="color:#1F497D">&nbsp; \
&nbsp;&nbsp;return self._config.get_items(what)</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&nbsp;&nbsp; File \
&quot;/usr/lib/python2.4/site-packages/cobbler/config.py&quot;, line 237, in \
get_items</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&nbsp;&nbsp;&nbsp; raise CX(&quot;internal error, collection \
name %s not supported&quot; % collection_type)</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&nbsp;</span></p> <p class="MsoNormal"><span \
style="color:#1F497D">&nbsp;</span></p> <div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt; \
font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
lang="EN-US" style="font-size:10.0pt; \
font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Steven Goodliff <br>
<b>Sent:</b> 14 October 2011 16:24<br>
<b>To:</b> 'cobbler@lists.fedorahosted.org'<br>
<b>Subject:</b> cobbler replicate between versions</span></p>
</div>
</div>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">I was trying to install cobbler on a new server and installed \
cobbler-2.2.1-1.el5 but hit a problem when trying to replicate against \
cobbler-2.0.11-2.el5, </p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">In this file \
&nbsp;/usr/lib/python2.4/site-packages/cobbler/action_replicate.py &nbsp;commenting \
out the line below and replacing it with a small set of object types does the \
tick</p> <p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">&quot;&quot;&quot; OBJ_TYPES = [ &quot;distro&quot;, \
&quot;profile&quot;, &quot;system&quot;, &quot;repo&quot;, &quot;image&quot;, \
&quot;mgmtclass&quot;, &quot;package&quot;, &quot;file&quot; ] &quot;&quot;&quot;</p> \
<p class="MsoNormal">&nbsp;</p> <p class="MsoNormal">OBJ_TYPES = [ \
&quot;distro&quot;, &quot;profile&quot;, &quot;system&quot;, &quot;repo&quot;, \
&quot;image&quot; ]</p> <p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">My python skills are non existant but it seems to do the job so \
far, the small set matches the same python file in the 2.0.11 version</p> <p \
class="MsoNormal">&nbsp;</p> <p class="MsoNormal">Hope that helps someone.</p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal">Steve </p>
</div>
The information contained in this email is confidential and may also be subject to \
legal privilege. It is intended only for the recipient(s) named above. If you are not \
named above as a recipient, you must not read, copy, disclose, forward or otherwise \
use  the information contained in this email. If you have received this e-mail in \
error, please notify the sender (whose contact details are above) immediately by \
reply e-mail and delete the message and any attachments without retaining any copies. \
Gaming Technologies  Solutions Limited is a company registered in England and Wales \
with the company number 5425266, the registered office is 55 Baker Street, London, \
W1U 7EU Virtue Fusion (Alderney) Ltd is a company registered in Alderney with the \
company number 1628, the registered  office is Kington Lodge, Le Grand Val, Alderney, \
GY9 3XD, British Channel Islands </body>
</html>



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

--===============1868049215==--


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

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