mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Move uuid back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
714ecf5c5b
commit
87cf0c7b0a
3 files changed
+4
-3
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||