Get node IPs and IDs according to env 45/43645/1
authorCatalina Focsa <catalina.focsa@enea.com>
Tue, 26 Sep 2017 12:43:43 +0000 (14:43 +0200)
committerCatalina Focsa <catalina.focsa@enea.com>
Fri, 29 Sep 2017 14:36:03 +0000 (14:36 +0000)
commit6a78db925c69b97392919bd389c957d9623f3f81
tree3b83d7e6656cdef13ce5b24cb3722e445ae64255
parent850593125ca388b7157f2a8e1966e05a1caa0ab1
Get node IPs and IDs according to env

Extract node IPs and IDs for each node having a controller or compute
role (name starting with the "cmp" or "ctl" prefix) and add them into
the $pod_yaml file, analogous to the previous implementation.
Since node IDs are expected to be unique and integers (condition that
does not match the salt node ID format), they are substituted with an
incremented index for each controller/compute node in the environment.

Change-Id: Id90626edc3f098bd96343336b2be179721dee5a1
Signed-off-by: Catalina Focsa <catalina.focsa@enea.com>
(cherry picked from commit 6892687967d2d5ac8db37dd67b3e52d9f775eda6)
tests/ci/prepare_env.sh