Hi,
I'm trying to get the provisioning of KVM VMs using Spacewalk 1.8 +
cobbler working, but I'm having a problem with koan starting the
build. I've defined the virtual bridge in spacewalk to be one (or
several) that exists on the host.
The rhn_check output is the same as if I run 'koan --server
spacewalk.my.domain.somewhere -y node2.my.domain.somewhere:2:test1 -B
br20 --virt'
It seems that network_count is set to TypeNone or something similar
(sorry, I'm not a Python programmer).
Spacewalk is running in a VM on the same VM host (it is vnet0 in the
brctl show output below)
Thanks,
Matt
on the spacewalk server:
spacewalk# cobbler system dumpvars --name
node2.my.domain.somewhere:2:test1 | grep virt_bridge
default_virt_bridge : xenbr0
interfaces : {'eth0': {'dhcp_tag': '', 'subnet':
'', 'virt_bridge':'',
'static_routes': [], 'dns_name': '', 'bonding':
'', 'static': False,
'bonding_opts': '', 'mac_address': '00:16:3e:56:e2:51',
'bonding_master': '', 'ip_address': ''}}
virt_bridge : br20
virt_bridge_eth0 :
on the vm host:
node2# cat /etc/redhat-release
CentOS release 6.3 (Final)
node2# rpm -qa | grep koan
spacewalk-koan-1.8.3-1.el6.noarch
koan-2.2.3-2.el6.noarch
node2# rhn_check
- looking for Cobbler at
http://spacewalk.my.domain.somewhere:443/cobbler_api
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/koan/utils.py", line 554, in
__try_connect
xmlrpc_server.ping()
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 1387, in _parse_response
p.feed(response)
File "/usr/lib64/python2.6/xmlrpclib.py", line 601, in feed
self._parser.Parse(data, 0)
ExpatError: syntax error: line 1, column 49
- looking for Cobbler at
https://spacewalk.my.domain.somewhere:443/cobbler_api
- reading URL:
http://spacewalk.my.domain.somewhere/cblr/svc/op/ks/system/node2.my.domai...
install_tree:
http://spacewalk.my.domain.somewhere/ty/eO9SSIGu
libvirtd (pid 2182) is running...
<type 'exceptions.KeyError'>
'interface_type'
File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line 243, in
initiate_guest
k.run()
File "/usr/lib/python2.6/site-packages/koan/app.py", line 390, in run
self.virt()
File "/usr/lib/python2.6/site-packages/koan/app.py", line 746, in virt
return self.net_install(after_download)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 635, in
net_install
after_download(self, profile_data)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 744, in
after_download
self.virt_net_install(profile_data)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 1353, in
virt_net_install
qemu_net_type = self.qemu_net_type
File "/usr/lib/python2.6/site-packages/koan/qcreate.py", line 30,
in start_install
cmd = virtinstall.build_commandline("qemu:///system", *args, **kwargs)
File "/usr/lib/python2.6/site-packages/koan/virtinstall.py", line
202, in build_commandline
profile_data.get("network_count"))
File "/usr/lib/python2.6/site-packages/koan/virtinstall.py", line
81, in _sanitize_nics
if (intf["interface_type"] in
("master","bond","bridge") or
The error seems to be due to an incompatibility between the koan
version and whatever spacewalk 1.8 is using. In 2.2.3, the "bonding"
field was change to "interface_type", in order to support bridges.
You'll need to downgrade koan to a version that matches the version of
cobbler spacewalk is using.