Improve "get_server" function in Kubernetes context 71/59671/3
authorJohn O Loughlin <john.oloughlin@intel.com>
Wed, 11 Jul 2018 10:22:39 +0000 (11:22 +0100)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 12 Jul 2018 15:57:13 +0000 (16:57 +0100)
commit8da1feb7267f4b04e543b2e2e6590e2de8c31237
tree8cd06439567fd6e6450184005bfc04c23cdb7bd5
parent438f7b5100e05ed668a0ea90674008a391eb5784
Improve "get_server" function in Kubernetes context

When a kubernetes context is returning the node info it is
assumed that the first port defined is the ssh port which may
not be the case. This patch will address this issue by looking
for a defined port 22.

JIRA: YARDSTICK-1301

Change-Id: I65dee1bcf62f21ebcaefeaa2666bb0ad53f3876c
Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
yardstick/benchmark/contexts/kubernetes.py
yardstick/common/constants.py
yardstick/common/exceptions.py
yardstick/tests/unit/benchmark/contexts/test_kubernetes.py