From: Wensheng Wang Subject: could not reboot domU in latest xen-unstable Date: Sun, 6 Nov 2005 01:30:20 -0600 Message-ID: <7b22037d0511052330p429eb000oeddb00886e77027@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org With lastest unstable, I can no longer reboot domU( either within the domU itself or using "xm shutdown -R"). xm create and destroy is working fine. After I reboot a domU and do "xm list" a few times, it seems hang, but after more than 1 minute the prompt came back but with only domain-0, domU didn't get rebooted. The xend.log show following errors: ---------------------------------------------------------------------- [2005-11-06 02:06:21 xend.XendDomainInfo] ERROR (XendDomainInfo:158) Domain construction failed Traceback (most recent call last): File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 152, in create vm.initDomain() File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1109, in initDomai= n self.createDevices() File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1222, in createDev= ices self.createDevice(n, c) File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 893, in createDevi= ce return self.getDeviceController(deviceClass).createDevice(devconfig) File "/usr/lib/python/xen/xend/server/DevController.py", line 66, in createDevice raise VmError( ("Device %s (%s) could not be connected. " VmError: Device 2049 (vbd) could not be connected. Hotplug scripts not work= ing [2005-11-06 02:06:21 xend.XendDomainInfo] DEBUG (XendDomainInfo:1156) XendDomainInfo.destroy: domid=3D8 [2005-11-06 02:06:21 xend.XendDomainInfo] DEBUG (XendDomainInfo:1164) XendDomainInfo.destroyDomain(8) [2005-11-06 02:06:22 xend.XendDomainInfo] ERROR (XendDomainInfo:1306) Failed to restart domain 7. Traceback (most recent call last): File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1299, in restart new_dom =3D xd.domain_create(config) File "/usr/lib/python/xen/xend/XendDomain.py", line 215, in domain_create dominfo =3D XendDomainInfo.create(config) File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 152, in create vm.initDomain() File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1109, in initDomai= n self.createDevices() File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1222, in createDev= ices self.createDevice(n, c) File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 893, in createDevi= ce return self.getDeviceController(deviceClass).createDevice(devconfig) File "/usr/lib/python/xen/xend/server/DevController.py", line 66, in createDevice raise VmError( ("Device %s (%s) could not be connected. " VmError: Device 2049 (vbd) could not be connected. Hotplug scripts not work= ing [2005-11-06 02:06:22 xend] ERROR (xswatch:50) read_watch failed Traceback (most recent call last): File "/usr/lib/python/xen/xend/xenstore/xswatch.py", line 48, in watchMain watch.fn(*watch.args, **watch.kwargs) File "/usr/lib/python/xen/xend/XendDomain.py", line 112, in onReleaseDomai= n self.refresh() File "/usr/lib/python/xen/xend/XendDomain.py", line 176, in refresh d.update(info) File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 849, in update self.refreshShutdown(info) File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 781, in refreshShu= tdown self.maybeRestart(restart_reason) File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 801, in maybeResta= rt {"destroy" : self.destroy, File "/usr/lib/python/xen/xend/XendDomainInfo.py", line 1312, in restart new_dom.removeVm('xend/restart_in_progress') UnboundLocalError: local variable 'new_dom' referenced before assignment [2005-11-06 02:06:22 xend] ERROR (xswatch:50) read_watch failed Traceback (most recent call last): File "/usr/lib/python/xen/xend/xenstore/xswatch.py", line 48, in watchMain watch.fn(*watch.args, **watch.kwargs) File "/usr/lib/python/xen/xend/server/DevController.py", line 267, in hotplugStatus status =3D self.readBackend(devid, HOTPLUG_STATUS_NODE) File "/usr/lib/python/xen/xend/server/DevController.py", line 201, in readBackend return xstransact.Read(backpath, *args) File "/usr/lib/python/xen/xend/xenstore/xstransact.py", line 225, in Read t =3D cls(path) File "/usr/lib/python/xen/xend/xenstore/xstransact.py", line 17, in __init= __ self.path =3D path.rstrip("/") AttributeError: 'NoneType' object has no attribute 'rstrip' ---------------------------------------------------------------------------= ------- Did I do anything wrong or indeed hotplug script is broken? Thanks