diff options
| author | Sean Mooney <sean.k.mooney@intel.com> | 2017-04-06 13:21:09 +0000 |
|---|---|---|
| committer | Sean Mooney <sean.k.mooney@intel.com> | 2017-08-09 18:43:06 +0000 |
| commit | 781d84658ddfdf98307a62830d5a800ad00164ef (patch) | |
| tree | 6b822542f2ee651a15b412b6119ebd96ebf0ac56 /tools/cleanup-host | |
| parent | 3f6eaefeafa1a84af716ed4a613e70f7f9e7d041 (diff) | |
| download | kolla-ansible-781d84658ddfdf98307a62830d5a800ad00164ef.tar.gz kolla-ansible-781d84658ddfdf98307a62830d5a800ad00164ef.zip | |
introduce playbook to ovs with dpdk
- This change creates a new role to
support deploying ovs with dpdk.
- This change introduces an enable_ovs_dpdk
variable to enable ovs with dpdk as part of
the deploy action.
- This change extends the ovs-dpdkctl.sh tool
to correctly deploy ovs-dpdk on Ubuntu and CentOS
hosts.
- This change extends the cleanup-host tool
to correctly uninstall ovs-dpdkctl.sh tool and its
systemd files if present on the host.
- This change automatically configures userspace
kernel drivers.
partial-implementes: bp/ovs-dpdk
Change-Id: I55858d81df437e8258705b75426f61ab9b907c7d
Diffstat (limited to 'tools/cleanup-host')
| -rwxr-xr-x | tools/cleanup-host | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/cleanup-host b/tools/cleanup-host index 0cf4a69b1..b0917e1e3 100755 --- a/tools/cleanup-host +++ b/tools/cleanup-host @@ -56,8 +56,14 @@ if [[ "$glance_file_datadir_volume" != "glance" && -d "$glance_file_datadir_volu rm -rfv $glance_file_datadir_volume fi -echo "Getting folders name..." FOLDER_PATH="/etc/kolla/" + +if [[ -e "$FOLDER_PATH/ovsdpdk-db/ovs-dpdkctl.sh" ]]; then + echo uninstalling ovs-dpdk service files and tools. + sudo CONFIG_FILE="$FOLDER_PATH/ovsdpdk-db/ovs-dpdkctl.conf" $FOLDER_PATH/ovsdpdk-db/ovs-dpdkctl.sh uninstall +fi + +echo "Getting folders name..." for dir in $FOLDER_PATH*; do if [ "$dir" == "$FOLDER_PATH""passwords.yml" ] || \ [ "$dir" == "$FOLDER_PATH""globals.yml" ] || \ |
