Change in vdsm[master]: WIP: fix again stats_cache cleaning

fromani at redhat.com fromani at redhat.com
Wed Apr 29 11:57:07 UTC 2015


Francesco Romani has uploaded a new change for review.

Change subject: WIP: fix again stats_cache cleaning
......................................................................

WIP: fix again stats_cache cleaning

Change-Id: I98d388b4684be61936316ef749707e4be418af94
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M vdsm/virt/vm.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/98/40398/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index 3c3efc7..65e9bad 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -1590,6 +1590,7 @@
         utils.rmFile(self._recoveryFile)
         self._guestSockCleanup(self._qemuguestSocketFile)
         self._reattachHostDevices()
+        sampling.stats_cache.remove(self.id)
 
     def _isDomainRunning(self):
         try:
@@ -3447,7 +3448,6 @@
             self.lastStatus = vmstatus.POWERING_DOWN
             # Terminate the VM's creation thread.
             self._incomingMigrationFinished.set()
-            sampling.stats_cache.remove(self.id)
             self.guestAgent.stop()
             if self._dom:
                 result = self._destroyVmGraceful()


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I98d388b4684be61936316ef749707e4be418af94
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>


More information about the vdsm-patches mailing list