Bug fix: Fetch vm names from idf 29/64229/8
authorManuel Buil <mbuil@suse.com>
Tue, 30 Oct 2018 14:37:39 +0000 (15:37 +0100)
committerManuel Buil <mbuil@suse.com>
Wed, 31 Oct 2018 07:36:32 +0000 (08:36 +0100)
commit348bb6a8cea2b12ceca8941fa46e8290b18f0a55
treefc29f0bd9569c9d57136243b6da07de4d44b42ac
parentc4e6a0fe956335ce3f7eaecdea0d2ecd09dc993a
Bug fix: Fetch vm names from idf

Currently we were taking the names of the nodes to be generated from the
NODE_NAMES variable whereas ansible was fetching the names from the
dynamic_inventory.py which uses idf. This resulted in problems: when
doing ha, ansible was provisioning a compute as a controller and
vicebersa.

This patch forces create_nodes role to fetch the name from idf and thus
align with the naming schema of ansible

deploy-scenario:k8-calico-nofeature
installer-type:kubespray

Change-Id: Id1473727405701fd9ed0cb2f1394ee8676cec337
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/playbooks/roles/create-nodes/README.md
xci/playbooks/roles/create-nodes/defaults/main.yml
xci/playbooks/roles/create-nodes/tasks/barematalhoststojson.yml
xci/playbooks/roles/create-nodes/tasks/create_vm.yml