[baremetal] cmp: run linux.network before reboot 19/45719/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 19 Oct 2017 03:34:28 +0000 (05:34 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 19 Oct 2017 03:39:46 +0000 (03:39 +0000)
The recent addition of `linux.system`, combined with `system.reboot`
for the baremetal compute nodes leaves compute nodes unconfigured
after reboot.
Run `system.network` too, but expect a failure (only for DPDK, which
requires hugepages to be already active, hence a prior reboot).

Fixes: 64920b8

Change-Id: I8c73b24ae15e1f87dee64ae2aba7af86db1e942f
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 595119281c50edb86b987f5fdd6eac25e28147ae)

mcp/config/states/virtual_control_plane

index 9094391..0c3ef59 100755 (executable)
@@ -16,6 +16,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
 salt -C 'kvm*' pkg.install bridge-utils
 salt -C 'kvm*' state.apply linux.network
 salt -C 'cmp*' state.apply linux.system
+salt -C 'cmp*' state.apply linux.network || true
 salt -C 'kvm* or cmp*' system.reboot
 wait_for 90 "! salt -C 'kvm* or cmp*' test.ping | " \
   "tee /dev/stderr | grep -Fq 'Not connected'"