Francesco Romani has uploaded a new change for review. Change subject: vm: sampling: delay initialization ......................................................................
vm: sampling: delay initialization A future MOM integration patch need that sampling starts once the QEMU PID of a VM is known. This patch does that. Change-Id: I950fc6ea2aae4257260cf2301d47153c4c7ff58b Signed-off-by: Francesco Romani <[email protected]> --- M vdsm/virt/vm.py 1 file changed, 4 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/09/31609/1 diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py index a429016..0b2a315 100644 --- a/vdsm/virt/vm.py +++ b/vdsm/virt/vm.py @@ -2855,9 +2855,6 @@ supervdsm.getProxy().setPortMirroring(network, nic.name) - # VmStatsThread may use block devices info from libvirt. - # So, run it after you have this info - self._initVmStats() if utils.tobool(self.conf.get('vmchannel', 'true')): try: self.guestAgent.connect() @@ -2874,6 +2871,10 @@ self.cont() self.conf['pid'] = self._getPid() + # VmStatsThread may use block devices info from libvirt. + # So, run it after you have this info + self._initVmStats() + nice = int(self.conf.get('nice', '0')) nice = max(min(nice, 19), 0) -- To view, visit http://gerrit.ovirt.org/31609 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I950fc6ea2aae4257260cf2301d47153c4c7ff58b Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Francesco Romani <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
