From: Ian Jackson Subject: drbd patch breaks pygrub booting Date: Wed, 9 Sep 2009 12:04:22 +0100 Message-ID: <19111.35766.426143.330018@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Michael Renner Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org Changeset 20158:f9ce5858 introduces some new code around line 3002 in XendDomainInfo.py which refers to a variable `disktype' which is not set at all. As a consequence, no pygrub-based domain will boot any more. An example stacktrace from xend.log is below. I think, but I'm not sure, that `disktype' here should read `devtype'. Ian. [2009-09-09 10:47:35 4579] ERROR (xmlrpclib2:178) Internal error handling xend.domain.create Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line 131, in _marshaled_dispatch response = self._dispatch(method, params) File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch return func(*params) File "/usr/lib/python2.4/site-packages/xen/xend/server/XMLRPCServer.py", line 79, in domain_create info = XendDomain.instance().domain_create(config) File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 970, in domain_create dominfo = XendDomainInfo.create(config) File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 102, in create vm.start() File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 453, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2599, in _initDomain self._configureBootloader() File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 3002, in _configureBootloader if disktype.find(":") != -1: UnboundLocalError: local variable 'disktype' referenced before assignment