Generate pod.yaml from current context 93/41893/2
authorRoss Brattain <ross.b.brattain@intel.com>
Tue, 12 Sep 2017 16:41:45 +0000 (09:41 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Fri, 15 Sep 2017 22:32:11 +0000 (15:32 -0700)
commitbe06e38960cea8a54c85418948e8453861012d2d
tree03847348fc74492f4e298d023bbbbb8b76388185
parent3016786696b9e5a26b364cb5bd4cb5676420fe58
Generate pod.yaml from current context

We want to generate pod.yaml from Heat contexts so we can
re-use the context without destroying it.

But we don't have node role information and it doesn't
make sense in this case, so make the role optional.

Since we changed Heat to use pkey instead of key_filename,
we can embed the pkey into the pod.yaml, but we have
to make sure to convert the pkey to string, in case
it is a RSAKey object

Change-Id: Ibefcfbd8236e68013a704c39964cb870da825da8
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
yardstick/benchmark/contexts/heat.py
yardstick/benchmark/contexts/node.py
yardstick/benchmark/core/task.py
yardstick/benchmark/scenarios/networking/vnf_generic.py
yardstick/ssh.py