Francesco Romani has posted comments on this change.
Change subject: tests: add simple balloon functional testcase
......................................................................
Patch Set 11:
The test is now modernized and reached a form I'm happy with it.
The test itself runs, but it fails because
2014-07-15 09:25:26,879 - mom - INFO - MOM starting
2014-07-15 09:25:26,952 - mom - INFO - hypervisor interface vdsm
2014-07-15 09:25:26,952 - mom.HostMonitor - INFO - Host Monitor starting
2014-07-15 09:25:26,958 - mom.GuestManager - INFO - Guest Manager starting
2014-07-15 09:25:26,972 - mom.Policy - INFO - Loaded policy '00-defines'
2014-07-15 09:25:26,995 - mom.HostMonitor - INFO - HostMonitor is ready
2014-07-15 09:25:27,010 - mom.Policy - INFO - Loaded policy '02-balloon'
2014-07-15 09:25:27,047 - mom.Policy - INFO - Loaded policy '03-ksm'
2014-07-15 09:25:27,114 - mom.Policy - INFO - Loaded policy '04-cputune'
2014-07-15 09:25:27,115 - mom.PolicyEngine - INFO - Policy Engine starting
2014-07-15 09:25:27,116 - mom.RPCServer - INFO - RPC Server is disabled
2014-07-15 09:25:37,181 - mom.Controllers.KSM - INFO - Updating KSM configuration:
pages_to_scan:0 run:0 sleep_millisecs:0
2014-07-15 09:26:02,011 - mom.Monitor - INFO - GuestMonitor-vdsm_testBalloonVM starting
2014-07-15 09:26:02,012 - mom.Collectors.GuestMemory - WARNING - getVmMemoryStats() error:
The ovirt-guest-agent is not active
2014-07-15 09:26:02,013 - mom.Monitor - ERROR - GuestMonitor-vdsm_testBalloonVM crashed
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mom/GuestMonitor.py", line 56, in run
self.collect()
File "/usr/lib/python2.6/site-packages/mom/Monitor.py", line 91, in collect
collected = c.collect()
File "/usr/lib/python2.6/site-packages/mom/Collectors/GuestCpuTune.py", line
44, in collect
stat = self.hypervisor_iface.getVmCpuTuneInfo(self.uuid)
File
"/usr/lib/python2.6/site-packages/mom/HypervisorInterfaces/vdsmInterface.py",
line 184, in getVmCpuTuneInfo
vcpuCount = response['statsList'][0]['vcpuCount']
KeyError: 'vcpuCount'
2014-07-15 09:26:12,023 - mom.Monitor - INFO - GuestMonitor-vdsm_testBalloonVM starting
2014-07-15 09:26:12,023 - mom.Collectors.GuestMemory - WARNING - getVmMemoryStats() error:
The ovirt-guest-agent is not active
2014-07-15 09:26:12,024 - mom.Monitor - ERROR - GuestMonitor-vdsm_testBalloonVM crashed
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mom/GuestMonitor.py", line 56, in run
self.collect()
File "/usr/lib/python2.6/site-packages/mom/Monitor.py", line 91, in collect
collected = c.collect()
File "/usr/lib/python2.6/site-packages/mom/Collectors/GuestCpuTune.py", line
44, in collect
stat = self.hypervisor_iface.getVmCpuTuneInfo(self.uuid)
File
"/usr/lib/python2.6/site-packages/mom/HypervisorInterfaces/vdsmInterface.py",
line 184, in getVmCpuTuneInfo
vcpuCount = response['statsList'][0]['vcpuCount']
KeyError: 'vcpuCount'
2014-07-15 09:26:22,024 - mom.Monitor - INFO - GuestMonitor-vdsm_testBalloonVM starting
2014-07-15 09:26:22,025 - mom.Collectors.GuestMemory - WARNING - getVmMemoryStats() error:
The ovirt-guest-agent is not active
2014-07-15 09:26:30,924 - mom.RPCServer - INFO - setPolicy()
2014-07-15 09:26:32,032 - mom.vdsmInterface - ERROR - {'status':
{'message': 'Virtual machine does not exist', 'code': 1}}
2014-07-15 09:26:32,033 - mom.vdsmInterface - ERROR - Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/mom/HypervisorInterfaces/vdsmInterface.py",
line 146, in getVmBalloonInfo
self._check_status(response)
File
"/usr/lib/python2.6/site-packages/mom/HypervisorInterfaces/vdsmInterface.py",
line 46, in _check_status
raise vdsmException(response, self.logger)
vdsmException
2014-07-15 09:26:32,033 - mom.vdsmInterface - ERROR - {'status':
{'message': 'Virtual machine does not exist', 'code': 1}}
2014-07-15 09:26:32,033 - mom.vdsmInterface - ERROR - Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/mom/HypervisorInterfaces/vdsmInterface.py",
line 171, in getVmCpuTuneInfo
self._check_status(response)
File
"/usr/lib/python2.6/site-packages/mom/HypervisorInterfaces/vdsmInterface.py",
line 46, in _check_status
raise vdsmException(response, self.logger)
vdsmException
2014-07-15 09:26:37,039 - mom.Monitor - INFO - GuestMonitor-vdsm_testBalloonVM ending
--
To view, visit
http://gerrit.ovirt.org/12820
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie8140fe1c754d9d4026c503a19420e6552a3f4fe
Gerrit-PatchSet: 11
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
Gerrit-Reviewer: Adam Litke <alitke(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfediuck(a)redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani(a)redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak(a)redhat.com>
Gerrit-Reviewer: Michal Skrivanek <michal.skrivanek(a)redhat.com>
Gerrit-Reviewer: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: No