New patch submitted by Eduardo Warszawski (ewarszaw(a)redhat.com)
You can review this change at: http://gerrit.usersys.redhat.com/637
commit 0f27a3fcc8ecbe2e7f3925d0251a05c033b01d64
Author: Eduardo Warszawski <ewarszaw(a)redhat.com>
Date: Thu Jun 30 05:40:58 2011 +0300
BZ#717658 - Forward one step the reloading of block domains.
SDF.invalidateStorage() will trigger SDF.refreshStorage when SDF.lookup,
but lvm reload will came only after.
Change-Id: I035060894720518d70a0951ffc0d0c14a98793d2
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index ab5a59d..29206f5 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -1055,7 +1055,7 @@ class HSM:
statusList = storage_connection.StorageServerConnection().connect(domType=domType, conList=conList)
# Connecting new device may change the visible storage domain list
# so invalidate caches
- SDF.invalidateStorage()
+ SDF.refreshStorage()
return dict(statuslist=statusList)
New patch submitted by Yotam Oron (yoron(a)redhat.com)
You can review this change at: http://gerrit.usersys.redhat.com/634
commit c4bac51ca8afabd41144097bed81068e76b75f44
Author: Yotam Oron <yoron(a)redhat.com>
Date: Mon Jun 27 15:22:39 2011 +0300
BZ#705058 - Don't start monitoring domains when reconstructing master
During master recostruction there is no point in updating the repo stats
monitoring threads (this is cause a repo stats thread reference not to
be inserted to the list of monitoring threads and hence it leaks)
Change-Id: I05914b8c3a8f304e0acda5463e1ad00630c3233b
diff --git a/vdsm/storage/sp.py b/vdsm/storage/sp.py
index c377ee4..543984c 100644
--- a/vdsm/storage/sp.py
+++ b/vdsm/storage/sp.py
@@ -1156,7 +1156,6 @@ class StoragePool:
del domDict[sdUUID]
self.setMetaParam(PMDK_DOMAINS, domDict)
self.log.info("Set storage pool domains: %s", domDict)
- self.updateMonitoringThreads()
if refresh:
self.refresh()
New patch submitted by Eduardo Warszawski (ewarszaw(a)redhat.com)
You can review this change at: http://gerrit.usersys.redhat.com/636
commit 7e8dc5a4bef64a1a5861d782e91ed0d09da2deb2
Author: Eduardo Warszawski <ewarszaw(a)redhat.com>
Date: Wed Jun 29 18:52:31 2011 +0300
BZ#717658 - Remove unnecessary SDF.refreshStorage().
Change-Id: I7de05de83f17a14895c150c331e971f35d7ae547
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index 2aaf822..ab5a59d 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -747,7 +747,7 @@ class HSM:
:param guid: The GUID of the device you want to get info on.
:type guid: UUID
- :param options: ?
+ :param options: ? DEPRECATED
:returns: Dict of all the info on the device.
:rtype: dict
@@ -756,15 +756,6 @@ class HSM:
"""
vars.task.setDefaultException(se.BlockDeviceActionError("GUID: %s" % str(guid)))
#getSharedLock(connectionsResource...)
- rescan = True
- try:
- if options:
- rescan = options.get("rescan", True)
- except:
- self.log.warning("ignore options %s" % (str(options)))
- if rescan:
- SDF.refreshStorage()
-
try:
devInfo = self._getDeviceList(guids=[guid])[0]
for p in devInfo["pathstatus"]:
New patch submitted by Dan Kenigsberg (danken(a)redhat.com)
You can review this change at: http://gerrit.usersys.redhat.com/635
commit 3b75da8c26d6c3cf56dfb3e4397fd1d188b94df6
Author: Dan Kenigsberg <danken(a)redhat.com>
Date: Sun Jun 26 16:54:41 2011 +0300
BZ#716705 refuse to start VMs with "unknown" host osname
If, due to misconfiguration, the host os is not recognizable, refuse to
start new VMs as the os name should be passed to the guest bios.
Change-Id: Ia41ef922d2393acb9b62ff8daed9974f2eb79b4d
diff --git a/vdsm/clientIF.py b/vdsm/clientIF.py
index 7758a8a..c1219e4 100644
--- a/vdsm/clientIF.py
+++ b/vdsm/clientIF.py
@@ -614,6 +614,11 @@ class clientIF:
vmParams['vmId'])
vmParams['volatileFloppy'] = True
+ if caps.osversion()['name'] == caps.OSName.UNKNOWN:
+ return {'status': {'code': errCode['createErr']
+ ['status']['code'],
+ 'message': 'Unknown host operating system'}}
+
if 'sysprepInf' in vmParams:
if not self._createSysprepFloppyFromInf(vmParams['sysprepInf'],
vmParams['floppy']):