Move uuid back into main domain dir.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-14 13:37:03 +00:00
1 parent 714ecf5c5b
commit 87cf0c7b0a
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -142,7 +142,7 @@ class XendDomain:
domdb.delete()
elif domid in doms:
try:
self._new_domain(db.uuid, db, doms[domid])
self._new_domain(domdb["uuid"].getData(), db, doms[domid])
except Exception, ex:
log.exception("Error recreating domain info: id=%d", domid)
self._delete_domain(domid)
+3 -1
View File
@@ -205,7 +205,6 @@ class XendDomainInfo:
__exports__ = [
DBVar('id', ty='int'),
DBVar('name', ty='str'),
DBVar('uuid', ty='str'),
DBVar('config', ty='sxpr'),
DBVar('start_time', ty='float'),
DBVar('state', ty='str'),
@@ -219,6 +218,7 @@ class XendDomainInfo:
def __init__(self, uuid, path, db):
self.uuid = uuid
self.path = path + "/" + uuid
self.db = db
self.recreate = 0
@@ -264,6 +264,8 @@ class XendDomainInfo:
self.bootloader = None
self.device_model_pid = 0
xstransact.Write(self.path, "uuid", self.uuid)
def setDB(self, db):
self.db = db
-1
View File
@@ -155,7 +155,6 @@ class ImageHandler:
if dom <= 0:
raise VmError('Creating domain failed: name=%s' % self.vm.name)
log.debug("initDomain: cpu=%d mem_kb=%d ssidref=%d dom=%d", cpu, mem_kb, ssidref, dom)
# xc.domain_setuuid(dom, uuid)
xc.domain_setcpuweight(dom, cpu_weight)
xc.domain_setmaxmem(dom, mem_kb)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.