Jim Fehlig
2007-Apr-30 23:41 UTC
[Xen-devel] [PATCH][xend] Ensure bootable flag is set in internal xend config for tap devices
When defining new domains containing more than one tap device, only the first has ''bootable'' entry set. Subsequent tap devices have no bootable entry and generate a KeyError when the entry is accessed in XendDomainInfo._configureBootloader, e.g. [2007-04-30 15:34:47 4147] ERROR (xmlrpclib2:178) Internal error handling xend.domain.start Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/xen/util/xmlrpclib2.py", line 131, in _marshaled_dispatch response = self._dispatch(method, params) File "/usr/lib64/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch return func(*params) File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomain.py", line 985, in domain_start dominfo.start(is_managed = True) File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 396, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib64/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1487, in _initDomain self._configureBootloader() File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1806, in _configureBootloader disks = [x for x in self.info[''vbd_refs''] KeyError: ''bootable'' This patch adds to the ''compat hack'' in XendConfig.py, ensuring a bootable entry exists for all tap devices. Regards, Jim _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel