Dan Kenigsberg has uploaded a new change for review.
Change subject: vm: drop unused MigrationSourceThreadClass abstraction
......................................................................
vm: drop unused MigrationSourceThreadClass abstraction
Since the libvirtvm.py merger into vm.py (commit ee082b87), we have only
one MigrationSourceThreadClass. Thus, there is no need for this
abstraction.
Change-Id: Ia9fac9aa5b66b68c7447df0c460d91f5f4415b73
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
---
M vdsm/vm.py
1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/60/21560/1
diff --git a/vdsm/vm.py b/vdsm/vm.py
index 4e3650d..703af13 100644
--- a/vdsm/vm.py
+++ b/vdsm/vm.py
@@ -1719,7 +1719,6 @@
log = logging.getLogger("vm.Vm")
# limit threads number until the libvirt lock will be fixed
_ongoingCreations = threading.BoundedSemaphore(4)
- MigrationSourceThreadClass = MigrationSourceThread
DeviceMapping = ((DISK_DEVICES, Drive),
(NIC_DEVICES, NetworkInterfaceDevice),
(SOUND_DEVICES, SoundDevice),
@@ -1767,7 +1766,7 @@
self._lastStatus = 'Restoring state'
else:
self._lastStatus = 'WaitForLaunch'
- self._migrationSourceThread = self.MigrationSourceThreadClass(self)
+ self._migrationSourceThread = MigrationSourceThread(self)
self._kvmEnable = self.conf.get('kvmEnable', 'true')
self._guestSocketFile = constants.P_VDSM_RUN + self.conf['vmId'] + \
'.guest.socket'
@@ -2747,8 +2746,7 @@
# taken self Down
if self._lastStatus == 'Down':
return errCode['noVM']
- self._migrationSourceThread = \
- self.MigrationSourceThreadClass(self, **params)
+ self._migrationSourceThread = MigrationSourceThread(self, **params)
self._migrationSourceThread.start()
self._migrationSourceThread.getStat()
return self._migrationSourceThread.status
--
To view, visit
http://gerrit.ovirt.org/21560
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia9fac9aa5b66b68c7447df0c460d91f5f4415b73
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dan Kenigsberg <danken(a)redhat.com>