WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix cleanup_domains() for suspending managed domains

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix cleanup_domains() for suspending managed domains
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Tue, 11 Dec 2007 15:01:10 +0900
Delivery-date: Mon, 10 Dec 2007 22:01:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

When unmanaged domains with on_xend_stop="suspend" exist, managed 
domains are not suspended by xend stop command.  The processing of 
cleanup_domains() is aborted by exception. 

# xm create vm1.conf on_xend_stop="suspend"
Using config file "./vm1.conf".
Started domain vm1
# xm new vm2.conf on_xend_stop="suspend"
Using config file "./vm2.conf".
# xm start vm2
# xend stop
# cat /var/log/xen/xend.log
<<snip>>
[2007-12-11 12:11:00 14789] DEBUG (SrvServer:76) SrvServer.cleanup()
[2007-12-11 12:11:00 14789] DEBUG (XMLRPCServer:228) XMLRPCServer.cleanup()
[2007-12-11 12:11:00 14789] DEBUG (XMLRPCServer:228) XMLRPCServer.cleanup()
[2007-12-11 12:11:00 14789] DEBUG (XendDomain:609) cleanup_domains
[2007-12-11 12:11:00 14789] ERROR (SrvDaemon:353) Exception starting xend 
(Domain is not managed by Xend lifecycle support.)
Traceback (most recent call last):
  File "//usr/lib/python/xen/xend/server/SrvDaemon.py", line 346, in run
    servers.start(status)
  File "//usr/lib/python/xen/xend/server/SrvServer.py", line 158, in start
    time.sleep(100000000)
  File "//usr/lib/python/xen/xend/server/SrvServer.py", line 86, in cleanup
    xenddomain().cleanup_domains()
  File "//usr/lib/python/xen/xend/XendDomain.py", line 622, in cleanup_domains
    self.domain_suspend(dom.getName())
  File "//usr/lib/python/xen/xend/XendDomain.py", line 870, in domain_suspend
    raise XendError("Domain is not managed by Xend lifecycle " +
XendError: Domain is not managed by Xend lifecycle support.


This patch keeps suspending managed domains even if unmanaged domains 
exist. 

# xm create vm1.conf on_xend_stop="suspend"
Using config file "./vm1.conf".
Started domain vm1
# xm new vm2.conf on_xend_stop="suspend"
Using config file "./vm2.conf".
# xm start vm2
# xend stop
# cat /var/log/xen/xend.log
<<snip>>
[2007-12-11 13:48:54 3434] DEBUG (SrvServer:76) SrvServer.cleanup()
[2007-12-11 13:48:54 3434] DEBUG (XMLRPCServer:228) XMLRPCServer.cleanup()
[2007-12-11 13:48:54 3434] DEBUG (XMLRPCServer:228) XMLRPCServer.cleanup()
[2007-12-11 13:48:54 3434] DEBUG (XendDomain:609) cleanup_domains
[2007-12-11 13:48:54 3434] ERROR (XendDomain:627) Domain vm1 failed to suspend.
Traceback (most recent call last):
  File "/usr/lib/python/xen/xend/XendDomain.py", line 623, in cleanup_domains
    self.domain_suspend(dom.getName())
  File "/usr/lib/python/xen/xend/XendDomain.py", line 876, in domain_suspend
    raise XendError("Domain is not managed by Xend lifecycle " +
XendError: Domain is not managed by Xend lifecycle support.
[2007-12-11 13:48:54 3434] DEBUG (XendCheckpoint:89) [xc_save]: 
/usr/lib/xen/bin/xc_save 4 2 0 0 0
[2007-12-11 13:48:54 3434] DEBUG (XendCheckpoint:336) suspend
[2007-12-11 13:48:54 3434] DEBUG (XendCheckpoint:92) In saveInputHandler suspend
[2007-12-11 13:48:54 3434] DEBUG (XendCheckpoint:94) Suspending 2 ...
[2007-12-11 13:48:54 3434] DEBUG (XendDomainInfo:467) 
XendDomainInfo.shutdown(suspend)
[2007-12-11 13:48:54 3434] DEBUG (XendDomainInfo:1085) 
XendDomainInfo.handleShutdownWatch
[2007-12-11 13:48:54 3434] DEBUG (XendDomainInfo:1085) 
XendDomainInfo.handleShutdownWatch
[2007-12-11 13:48:54 3434] INFO (XendCheckpoint:99) Domain 2 suspended.
[2007-12-11 13:48:54 3434] DEBUG (XendCheckpoint:107) Written done
[2007-12-11 13:48:54 3434] INFO (XendCheckpoint:365) Had 0 unexplained entries 
in p2m table


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: cleanup_domains.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix cleanup_domains() for suspending managed domains, Masaki Kanno <=