DevStack: Support to install virtualbmc from source

This patch is extending the Ironic DevStack plugin to allow virtualbmc
to be installed from source so we can run ironic jobs against the
virtualbmc gate.

Change-Id: Iba6ea79a1ca2d8c4f0620e04108fad74ad55b9d3
This commit is contained in:
Lucas Alvares Gomes 2016-05-12 15:19:07 +01:00
parent 95ff5badbd
commit 3b670b601b

View File

@ -37,6 +37,10 @@ GITREPO["pyghmi"]=${PYGHMI_REPO:-${GIT_BASE}/openstack/pyghmi.git}
GITBRANCH["pyghmi"]=${PYGHMI_BRANCH:-master}
GITDIR["pyghmi"]=$DEST/pyghmi
GITREPO["virtualbmc"]=${VIRTUALBMC_REPO:-${GIT_BASE}/openstack/virtualbmc.git}
GITBRANCH["virtualbmc"]=${VIRTUALBMC_BRANCH:-master}
GITDIR["virtualbmc"]=$DEST/virtualbmc
IRONIC_DIR=$DEST/ironic
IRONIC_DEVSTACK_DIR=$IRONIC_DIR/devstack
IRONIC_DEVSTACK_FILES_DIR=$IRONIC_DEVSTACK_DIR/files
@ -273,9 +277,12 @@ function setup_virtualbmc {
setup_dev_lib "pyghmi"
fi
# TODO(lucasagomes): Allow virtualbmc to be installed from source
# after the openstack/virtualbmc repository is setup correctly
pip_install "virtualbmc"
if use_library_from_git "virtualbmc"; then
git_clone_by_name "virtualbmc"
setup_dev_lib "virtualbmc"
else
pip_install "virtualbmc"
fi
if [[ ! -d $(dirname $IRONIC_VBMC_CONFIG_FILE) ]]; then
mkdir -p $(dirname $IRONIC_VBMC_CONFIG_FILE)