collectd: write config file from Jinja2 template 31/43731/1
authorRoss Brattain <ross.b.brattain@intel.com>
Tue, 5 Sep 2017 22:38:52 +0000 (15:38 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Sat, 30 Sep 2017 08:23:07 +0000 (01:23 -0700)
commit89b0554ab04d41ad0768aea15c2cdf2bd67f1862
treed2a305c506c301a71d7d37017fcf764c2e73137e
parent4bce5a017eecb80914ca4395cd380d9ff0e361ab
collectd: write config file from Jinja2 template

We have the collectd.conf inside the python package
so instead of copying it from various places,
write the template directly to the remote system.

collectd: read collect.conf template with pkgresources

read the collectd.conf file as a string directly
and upload without creating temp file

use Jinja2 template, disable failing plugins

use proper Jinja2 template, disable the plugins that
were failing to load and blocking startup

add support for per-testcase collectd.conf config
using YAML

add support for custom interval, default is 25 seconds

Change-Id: Id904f7b7c9f41a9dd7adf5dfa06c064d65c25d2d
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
tests/unit/network_services/nfvi/test_resource.py
tests/unit/network_services/vnf_generic/vnf/test_sample_vnf.py
yardstick/network_services/nfvi/collectd.conf
yardstick/network_services/nfvi/collectd.sh
yardstick/network_services/nfvi/resource.py
yardstick/network_services/vnf_generic/vnf/base.py
yardstick/network_services/vnf_generic/vnf/sample_vnf.py