Royce Lv has uploaded a new change for review.

Change subject: remove unassigned nice in vm
......................................................................

remove unassigned nice in vm

_nice in vm is never assigned so should not reported in vm stats

Change-Id: I1ebd7c424e03942d6a13fa1c993dec3e3e78c9ed
Signed-off-by: Royce Lv<[email protected]>
---
M vdsm/vm.py
M vdsm_api/vdsmapi-schema.json
2 files changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/18/8418/1

diff --git a/vdsm/vm.py b/vdsm/vm.py
index d49eef1..de67420 100644
--- a/vdsm/vm.py
+++ b/vdsm/vm.py
@@ -290,7 +290,6 @@
             self._lastStatus = 'Restoring state'
         else:
             self._lastStatus = 'WaitForLaunch'
-        self._nice = ''
         self._migrationSourceThread = self.MigrationSourceThreadClass(self)
         self._kvmEnable = self.conf.get('kvmEnable', 'true')
         self._guestSocketFile = constants.P_VDSM_RUN + self.conf['vmId'] + \
@@ -982,7 +981,6 @@
                  'kvmEnable': self._kvmEnable,
                  'network': {}, 'disks': {},
                  'monitorResponse': str(self._monitorResponse),
-                 'nice': self._nice,
                  'elapsedTime' : str(int(time.time() - self._startTime)),
                  }
         if 'cdrom' in self.conf:
diff --git a/vdsm_api/vdsmapi-schema.json b/vdsm_api/vdsmapi-schema.json
index 10d2aaa..12ebe18 100644
--- a/vdsm_api/vdsmapi-schema.json
+++ b/vdsm_api/vdsmapi-schema.json
@@ -4590,7 +4590,7 @@
           'vmType': 'VmType', 'kvmEnable': 'bool',
           'network': 'NetworkInterfaceStatsMap',
           'disks': 'VmDiskStatsMap', 'monitorResponse': 'int',
-          'nice': 'int', 'elapsedTime': 'uint', '*cdrom': 'str',
+          'elapsedTime': 'uint', '*cdrom': 'str',
           '*boot': 'VmBootMode','statsAge': 'float', 'cpuSys': 'float',
           'cpuUser': 'float',
           'acpiEnable': 'bool', 'timeOffset': 'uint',


--
To view, visit http://gerrit.ovirt.org/8418
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1ebd7c424e03942d6a13fa1c993dec3e3e78c9ed
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Royce Lv <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to