Barak Azulay has posted comments on this change.

Change subject: hooks: Add hook for fake VM stats
......................................................................


Patch Set 9:

(1 comment)

http://gerrit.ovirt.org/#/c/25927/9/vdsm_hooks/fakevmstats/after_get_all_vm_stats.py
File vdsm_hooks/fakevmstats/after_get_all_vm_stats.py:

Line 97:         stats['network'][net]['txRate'] = '%.1f' % (random.random() * 
100)
Line 98:         stats['network'][net]['txDropped'] = str(random.randint(0, 
2*32))
Line 99:         stats['network'][net]['txErrors'] = str(random.randint(0, 
2*32))
Line 100: 
Line 101:     # Fake guest-agent reports:
You'll still need to report the session, I would go with Unknown 
Vinzenz ?
although it may be considered a paradox to report guest data but not report 
ovirt-guest-agent.
Line 102:     if not 'memoryStats' in stats.keys():
Line 103:         stats['memoryStats'] = {}
Line 104:         stats['memoryStats']['mem_total'] = str((2**random.randint(0, 
5)) * GB)
Line 105:     memUsed = int(random.random() * 
int(stats['memoryStats']['mem_total']))


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I6a6d13f43495170a5cb86ae0b0efc1ae85ef05ab
Gerrit-PatchSet: 9
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Dima Kuznetsov <[email protected]>
Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Dima Kuznetsov <[email protected]>
Gerrit-Reviewer: Douglas Schilling Landgraf <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: Vinzenz Feenstra <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to