Hide Forgot
Description of problem: When we set on_crash parameter to rename-restart, domain is not able to restart when crash. xend.log shows following error: Version-Release number of selected component (if applicable): xen-3.0.3-122.el5 How reproducible: always Steps to Reproduce: 1. set domain config option on_crash="rename-restart" 2. boot domain 3. crash domain using echo c > /proc/sysrq-trigger Actual results: Domain is renamed but not restarted. Expected results: Domain is renamed and restarted. Additional info: This is regression caused by patch "Remove overhead when checking duplicate devices". As we now check against data xend cache, we hit data of crashed domain. As we perform rename-restart, we rename domain, change its uuid and clear xenstore. However, we hold XendDomainInfo.info structure intact so it can be reused.
Xend.log error (missed in initial comment): [2011-01-21 10:53:17 xend.XendDomainInfo 7152] ERROR (XendDomainInfo:2829) Failed to restart domain 9. Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2812, in restart new_dom = XendDomain.instance().domain_create(config) File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomain.py", line 245, in domain_create dominfo = XendDomainInfo.create(config) File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 236, in create vm.initDomain() File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2154, in initDomain self.createDevices() File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2410, in createDevices self.createDevice(n, c) File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1503, in createDevice self.device_duplicate_check(deviceClass, devconfig) File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 697, in device_duplicate_check raise VmError('The uname "%s" is already used by another domain' % VmError: The uname "/var/lib/xen/images/lws/rhel55-64pv.img" is already used by another domain
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1070.html