Generate pod.yaml from current context 31/42931/1
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>
Mon, 25 Sep 2017 07:43:03 +0000 (00:43 -0700)
commitf266b33ff501b6ef04ab4cd0dcdc6858581dbaf3
treed2c583c2fcd9bc09de62149253c6babb27732afb
parent25d68d401b586cbffedefe26a4a9f3e6fb4434e2
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