[et-mgmt-tools] Xen System builds using Koan

Jason Hartley jason at 3dogs.us
Sat Aug 25 00:52:26 UTC 2007


First off, I really like the design of Cobbler and Koan.  I especially
like the kickstart templates and the flexibility that the templates give
you.  The only problem is that I am having trouble with the issue below
and would appreciate any kind of help.

I have a Centos 5 system that I have setup as a Xen host.  I have setup
the EPEL repository and used it to install Cobbler version 0.4.8-1,along
with koan 0.4.0-1.  I have successfully used the tutorial at
http://cobbler.et.redhat.com/cobbler-import.php with a few modifications
to build a Xen guest using the default profile for Centos 5 that is
created when you import from the Centos 5 DVD.  When I attempt to build
from a system definition that I have built from the default profile I get
the below error. I have started to dig through the code, but would like
some direction in debugging the problem and maybe a push in the right
direction on what might be wrong.

[root at hydra ~]# koan --server=hydra --system=sirrush --virt
- fetching configuration for system: (sirrush)
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/koan/app.py", line 468, in
get_profile_xmlrpc
    return self.xmlrpc_server.get_profile_for_koan(profile_name)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "/usr/lib/python2.4/xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: "exceptions.AttributeError:'NoneType' object has no
attribute 'startswith'">
  File "/usr/bin/koan", line 38, in ?
    sys.exit(app.main() or 0)
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 108, in main
    k.run()
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 175, in run
    self.do_virt()
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 306, in do_virt
    return self.do_net_install("/var/lib/xen",after_download)
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 266, in
do_net_install
    profile_data = self.get_system_xmlrpc(self.system)
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 538, in
get_system_xmlrpc
    profile_data =
self.get_profile_xmlrpc(self.safe_load(system_data,'profile'))
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 471, in
get_profile_xmlrpc
    self.connect_fail()
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 454, in
connect_fail
    print self.trace_me()
   File "/usr/lib/python2.4/site-packages/koan/app.py", line 449, in trace_me
    x = traceback.extract_stack()

Could not communicate with hydra:25151
[root at hydra ~]#


Thanks,
Jason




More information about the et-mgmt-tools mailing list