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)
committerLuca Lorenzetto <lorenzetto.luca@gmail.com>
Fri, 17 Mar 2017 08:29:41 +0000 (09:29 +0100)
commitfd15a091f7ab6927833275df17b96ecacc2b1827
treed5a7e0d9631b717b37de124a0386856bc6af29a6
parentf9e5887deeeec5b8a0107e4305fc7f09ef855069
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