[Baremetal] Modify interaction with bifrost roles 95/60795/19
authorManuel Buil <mbuil@suse.com>
Thu, 9 Aug 2018 14:29:24 +0000 (16:29 +0200)
committerManuel Buil <mbuil@suse.com>
Mon, 15 Oct 2018 15:57:24 +0000 (15:57 +0000)
commiteab5448287464ca3900a3e7495e27ac1a2cf1dc9
tree64fce36a934d40c1aa6d12770f95ff6cd7a39e00
parent4597bb3c4ff273a68d73883a9d87520517d60876
[Baremetal] Modify interaction with bifrost roles

Change some of the variables when calling opnfv-virtual.yml and
baremetal=true:

1 - We want to configure DHCP mapping between ip and mac when doing
baremetal. The create-nodes role will generate a file with that
mapping for us (baremetalstaticips)

2 - Don't download the standard IPA image but build one with Fedora
(only one that works in ericsson-pod2) when doing baremetal

3 - Wait for the blade to complete its booting. Its ssh port becomes
available with the IPA provision but that is not the final state.
We need to wait until the required distro gets installed.
When not doing baremetal, this is fine as the VMs boot very fast with
the chosen distro but for baremetal it takes a while (ericsson-pod2
servers take around 2 minutes to finish all BIOS booting). The playbook
wait-for-baremetal.yml does this.

Change-Id: I5536517209ff7f46ec034554d29566707778e397
Signed-off-by: Manuel Buil <mbuil@suse.com>
xci/infra/bifrost/infra-provision.sh
xci/infra/bifrost/playbooks/opnfv-virtual.yml
xci/infra/bifrost/playbooks/wait-for-baremetal.yml [new file with mode: 0644]
xci/infra/bifrost/scripts/bifrost-env.sh