Francesco Romani has uploaded a new change for review.

Change subject: migration: use system thread names
......................................................................

migration: use system thread names

Add migration thread names.
Unfortunately, we need to shorten 'migration' - which is going to
eat 10 out of 15 ASCII chars available for the name.

https://bugzilla.redhat.com/1141422

Change-Id: Ie03f19f75cb9430cd3a267817df269df776fa6a3
Signed-off-by: Francesco Romani <from...@redhat.com>
---
M vdsm/virt/migration.py
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/03/65503/1

diff --git a/vdsm/virt/migration.py b/vdsm/virt/migration.py
index ea43174..8a254c8 100644
--- a/vdsm/virt/migration.py
+++ b/vdsm/virt/migration.py
@@ -125,7 +125,7 @@
                 'code': 0,
                 'message': 'Migration in progress'}}
         self._progress = 0
-        self._thread = concurrent.thread(self.run)
+        self._thread = concurrent.thread(self.run, name='migr/source')
         self._preparingMigrationEvt = True
         self._migrationCanceledEvt = threading.Event()
         self._monitorThread = None
@@ -556,7 +556,7 @@
         # we need the first value to support set_initial_downtime
         self._initial_downtime = next(self._downtimes)
 
-        self._thread = concurrent.thread(self.run)
+        self._thread = concurrent.thread(self.run, name='migr/downtime')
 
     def start(self):
         self._thread.start()
@@ -622,7 +622,7 @@
         self._conv_schedule = conv_schedule
         self._use_conv_schedule = use_conv_schedule
         self.downtime_thread = _FakeThreadInterface()
-        self._thread = concurrent.thread(self.run)
+        self._thread = concurrent.thread(self.run, name='migr/monitor')
         self._log = vm.get_logger(self._raw_log)
 
     def start(self):


-- 
To view, visit https://gerrit.ovirt.org/65503
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie03f19f75cb9430cd3a267817df269df776fa6a3
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <from...@redhat.com>
_______________________________________________
vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org
To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org

Reply via email to