Rodolfo Alonso Hernandez fa342a7900 Initial release
This commit contains the scripts to download from source QEMU
and libvirt, specify a specific commit ID and apply on top
of it a list of patches.

Change-Id: Id52690f4f175c990f0b481c900a30087c07c0c31
2017-06-01 12:39:45 +00:00

57 lines
1.5 KiB
Bash

#!/bin/bash
#local xtrace=$(set +o | grep xtrace)
if [ "$VERBOSE" == 'True' ]; then
# enabling verbosity on whole plugin - default behavior
set -o xtrace
fi
local error_on_clone=${ERROR_ON_CLONE}
# disabling ERROR_NO_CLONE to allow this plugin work with devstack-gate
ERROR_ON_CLONE=False
# Initial source of lib script
source $DEVSTACK_LIBVIRT_QEMU_PLUGIN_DIR/devstack/libs/libvirt
case $1 in
"stack")
case $2 in
"pre-install")
# cloning source code
if [ $LIBVIRT_QEMU_SRC_INSTALL == 'True' ]; then
echo_summary "Downloading source repos for libvirt and qemu"
clone_libvirt_qemu
else
echo_summary "Cloning of src files for libvirt and qemu disabled"
fi
;;
"install")
# no-op
# install called via by devstack/lib/nova
:
;;
"post-config")
# no-op
:
;;
"extra")
# no-op
:
;;
esac
;;
"unstack")
# Shut Down OVS-DPDK
uninstall_libvirt_qemu
;;
"clean")
# Remove state and transient data
# Remember clean.sh first calls unstack.sh
cleanup_libvirt_qemu_source
;;
esac
ERROR_ON_CLONE=$error_on_clone
$xtrace