Dan Kenigsberg has submitted this change and it was merged.
Change subject: hooks: introduce before/after_get_stats hook points ......................................................................
hooks: introduce before/after_get_stats hook points
This patches adds a hook point that allows to modify the host statistics which Vdsm reports on its getVdsStats API. This hook can become useful if a hook writer would like to provide fake usage statistics to a fake network that is reported by an after_get_caps hook script.
Change-Id: Id1ff93837abb73f88ececc7571115645b95486cf Signed-off-by: Dan Kenigsberg danken@redhat.com Reviewed-on: https://gerrit.ovirt.org/40403 Reviewed-by: Ido Barkan ibarkan@redhat.com Reviewed-by: Petr Horáček phoracek@redhat.com Reviewed-by: Federico Simoncelli fsimonce@redhat.com --- M debian/vdsm.dirs M vdsm.spec.in M vdsm/API.py M vdsm/hooks.py M vdsm/vdsmd.8.in M vdsm_hooks/Makefile.am 6 files changed, 29 insertions(+), 2 deletions(-)
Approvals: Ido Barkan: Looks good to me, but someone else must approve Federico Simoncelli: Looks good to me, approved Petr Horáček: Looks good to me, but someone else must approve Dan Kenigsberg: Verified