Pick dynamically the first node for stack validation
authorLuca Lorenzetto <lorenzetto.luca@gmail.com>
Fri, 17 Mar 2017 08:29:41 +0000 (09:29 +0100)
committerSteven Hardy <shardy@redhat.com>
Mon, 20 Mar 2017 08:57:56 +0000 (08:57 +0000)
commitd385fc38b22b204414e04ba1962d7c6add262f1d
treeeb1a26379a1be89dcc4f3748bfe1b85db7647e1d
parent557b0214162ac60b65db93deb4af71dee14a28dd
Pick dynamically the first node for stack validation

When replacing the controller node with resource id 0,
AllNodesValidation will fail because there is an hardcoded reference
to resource.0. With this commit the id for validation is extracted
dynamically with yaql query, picking the first available.
Thanks to Steven Hardy for pointing to the right direction.

Change-Id: I8f2bfacbc005d948bd31ebd51c3d3df3182d5a3c
Closes-Bug: #1673439
overcloud.j2.yaml