Any other idea's on what to do here? or do I have to recreate all the systems manually?

Regards
*Chris Lee*

/University of Johannesburg, Physics Department
CERN, ATLAS TDAQ SysAdmin team - Office:75282/
On 11/07/2012 14:57, Chris Lee wrote:
Hi James

There aren't any serialize lines in my /etc/cobbler.modules.conf file. There were/are in the older version, but in the new one anymore.

This is a copy of the file.

# cobbler module configuration file
# =================================

# authentication:
# what users can log into the WebUI and Read-Write XMLRPC?
# choices:
#    authn_denyall    -- no one (default)
#    authn_configfile -- use /etc/cobbler/users.digest (for basic setups)
#    authn_passthru   -- ask Apache to handle it (used for kerberos)
#    authn_ldap       -- authenticate against LDAP
#    authn_spacewalk  -- ask Spacewalk/Satellite (experimental)
#    authn_pam        -- use PAM facilities
# authn_testing -- username/password is always testing/testing (debug)
#    (user supplied)  -- you may write your own module
# WARNING: this is a security setting, do not choose an option blindly.
# for more information:
# https://github.com/cobbler/cobbler/wiki/Cobbler-web-interface
# https://github.com/cobbler/cobbler/wiki/Security-overview
# https://github.com/cobbler/cobbler/wiki/Kerberos
# https://github.com/cobbler/cobbler/wiki/Ldap

[authentication]
module = authn_configfile

# authorization:
# once a user has been cleared by the WebUI/XMLRPC, what can they do?
# choices:
# authz_allowall -- full access for all authneticated users (default) # authz_ownership -- use users.conf, but add object ownership semantics
#    (user supplied)  -- you may write your own module
# WARNING: this is a security setting, do not choose an option blindly.
# If you want to further restrict cobbler with ACLs for various groups,
# pick authz_ownership.  authz_allowall does not support ACLs. configfile
# does but does not support object ownership which is useful as an additional
# layer of control.

# for more information:
# https://github.com/cobbler/cobbler/wiki/Cobbler-web-interface
# https://github.com/cobbler/cobbler/wiki/Security-overview
# https://github.com/cobbler/cobbler/wiki/Web-authorization

[authorization]
module = authz_allowall

# dns:
# chooses the DNS management engine if manage_dns is enabled
# in /etc/cobbler/settings, which is off by default.
# choices:
#    manage_bind    -- default, uses BIND/named
# manage_dnsmasq -- uses dnsmasq, also must select dnsmasq for dhcp below
# NOTE: more configuration is still required in /etc/cobbler
# for more information:
# https://github.com/cobbler/cobbler/wiki/Dns-management

[dns]
module = manage_bind

# dhcp:
# chooses the DHCP management engine if manage_dhcp is enabled
# in /etc/cobbler/settings, which is off by default.
# choices:
#    manage_isc     -- default, uses ISC dhcpd
# manage_dnsmasq -- uses dnsmasq, also must select dnsmasq for dns above
# NOTE: more configuration is still required in /etc/cobbler
# for more information:
# https://github.com/cobbler/cobbler/wiki/Dhcp-management

[dhcp]
module = manage_isc

# tftpd:
# chooses the TFTP management engine if manage_tftp is enabled
# in /etc/cobbler/settings, which is ON by default.
#
# choices:
#    manage_in_tftpd -- default, uses the system's tftp server
#    manage_tftpd_py -- uses cobbler's tftp server
#

[tftpd]
module = manage_in_tftpd

#--------------------------------------------------


On 11/07/2012 00:08, James Cammarata wrote:
On Mon, Jul 9, 2012 at 2:43 PM, Chris Lee<[email protected]>  wrote:

I have an old system that is still running SL4 and cobbler 2.0.3.1
I am in the process of configuring a new server that is running SL6.2 and
cobbler 2.2.3

Cobbler on the new system works perfectly and I now need to "import" or
copy the old systems, repo's profiles, etc, over to the new system.
Doing this manually by copying the files from /var/lib/cobbler/config
cause the following error when trying to restart cobbler

service cobblerd start
Starting cobbler daemon: Traceback (most recent call last):
   File "/usr/bin/cobblerd", line 76, in main
     api = cobbler_api.BootAPI(is_cobblerd=True)
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 130, in
__init__
     self.deserialize()
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 898, in
deserialize
     return self._config.deserialize()
File "/usr/lib/python2.6/site-packages/cobbler/config.py", line 266, in
deserialize
     raise CX("serializer: error loading collection %s. Check
/etc/cobbler/modules.conf" % item.collection_type())
CX: 'serializer: error loading collection profile. Check
/etc/cobbler/modules.conf'

removing all the files again, cause cobbler to start properly.
I have tried using replicate, and get the following error:
Remove any serializer lines you have in modules.conf and recopy the
files. That should get you past this error.

cobbler replicate --master=mydomain.com
task started: 2012-07-09_194438_replicate
task started (id=Replicate, time=Mon Jul  9 19:44:38 2012)
cobbler_master      = mydomain.com
profile_patterns    = []
system_patterns     = []
repo_patterns       = []
image_patterns      = []
mgmtclass_patterns  = []
package_patterns    = []
file_patterns       = []
omit_data           = False
sync_all            = False
using CLI defined master
XMLRPC endpoint: http://mydomain.com/cobbler_api
test ALPHA
test BETA
Querying Both Servers
Exception occured:<class 'xmlrpclib.Fault'>
Exception value:<Fault 1: "cobbler.cexceptions.CX:'internal error,
collection name mgmtclass not supported'">
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, in
run
     rc = self._run(self)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 217, in
runner
     self.logger
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 994, in
replicate
     sync_all             = sync_all
File "/usr/lib/python2.6/site-packages/cobbler/action_replicate.py",
line 361, in run
     self.replicate_data()
File "/usr/lib/python2.6/site-packages/cobbler/action_replicate.py",
line 134, in replicate_data
     self.remote_data[what] = self.remote.get_items(what)
    File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
     return self.__send(self.__name, args)
    File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
     verbose=self.__verbose
    File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
     return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
     return u.close()
    File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
     raise Fault(**self._stack[0])

!!! TASK FAILED !!!

Does anyone know what i am doing wrong.. or is there some other way to
move the old systems over?
Unfortunately cobbler does not support replicating between two
different versions, so your best bet is a backup/restore strategy.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler



_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to