Drop infinite loops in favor of finite wait_for
[fuel.git] / mcp / config / states / dpdk
1 #!/bin/bash
2 set -x
3
4 # shellcheck disable=SC1090
5 source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
6
7 salt -I 'nova:compute' system.reboot
8 wait_for 90 "! salt -I 'nova:compute' test.ping | " \
9   "tee /dev/stderr | grep -Fq 'Not connected'"
10 salt -I 'nova:compute' state.sls linux.network
11
12 # switch to UCA repos since fuel-infra packages have bugs
13 salt -I 'nova:compute' cmd.run 'rm -vrf /etc/apt/preferences.d/*'
14 salt -I 'nova:compute' file.remove '/etc/apt/sources.list.d/mirantis_openstack.list'
15 salt -I 'nova:compute' pkg.refresh_db
16
17 salt -I 'nova:compute' pkg.install libvirt-bin
18 salt -I 'nova:compute' file.chown /var/run/openvswitch libvirt-qemu kvm