collectd: write config file from Jinja2 template 19/41119/11
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>
Wed, 27 Sep 2017 03:15:00 +0000 (03:15 +0000)
commitbd11ffdec1f18785696b5c4872e5bd5e1012249c
treed3f739d4f2f694c6f798bae3babf4341b783fd86
parentc56ca9c1dccaa11a2ff3af588b45d85207fb1e40
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