[vcp] kvm: Re-apply sysctl settings after libvirt 97/65297/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 20 Nov 2018 22:16:09 +0000 (00:16 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 20 Nov 2018 22:16:09 +0000 (00:16 +0200)
libvirt postinstall script configures `virbr0` by default, which we
later remove & disable. However, on network creation, libvirt also
enables ip_forward, so re-run kernel.sls to force it to 0 without a
reboot.

Change-Id: Ie27fbf995c10ad9cd0fa0c28c29bd88161f04fd7
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/config/states/virtual_control_plane

index ef6ce59..5b54bb8 100755 (executable)
@@ -34,7 +34,7 @@ fi
 wait_for 5.0 "salt -C 'kvm*' state.sls libvirt"
 
 salt -C 'kvm* or cmp*' state.apply salt
-wait_for 10.0 "salt -C 'kvm*' state.sls salt.control"
+wait_for 10.0 "salt -C 'kvm*' state.sls salt.control,linux.system.kernel"
 
 vcp_nodes=$(salt --out yaml 'kvm01*' pillar.get salt:control:cluster:internal:node | \
             awk '/\s+\w+[[:digit:]]+:$/ {gsub(/:$/, "*"); printf "%s ", $1}')