[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Refresh the domain list on domain_start or domain_create. We need to do this



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID 2408c042a2768c7577a38d78adce0dec82242a1a
# Parent  5c5b03381d3c3e47067be76f097a7c71f2e53eed
Refresh the domain list on domain_start or domain_create.  We need to do this
so that the list of running domains is up-to-date for the name-uniqueness
check.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomain.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 5c5b03381d3c -r 2408c042a276 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Wed Nov 08 11:08:18 2006 +0000
+++ b/tools/python/xen/xend/XendDomain.py       Wed Nov 08 11:13:50 2006 +0000
@@ -769,6 +769,8 @@ class XendDomain:
         """
         self.domains_lock.acquire()
         try:
+            self._refresh()
+
             dominfo = XendDomainInfo.create(config)
             self._add_domain(dominfo)
             self.domain_sched_credit_set(dominfo.getDomid(),
@@ -815,6 +817,8 @@ class XendDomain:
         """
         self.domains_lock.acquire()
         try:
+            self._refresh()
+
             dominfo = self.domain_lookup_nr(domid)
             if not dominfo:
                 raise XendInvalidDomain(str(domid))
@@ -824,7 +828,6 @@ class XendDomain:
             
             dominfo.start(is_managed = True)
 
-            
         finally:
             self.domains_lock.release()
         

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.