From 1258da64085cef851be09923e37d1ed59348b43d Mon Sep 17 00:00:00 2001 From: Sergey Belous Date: Mon, 21 Mar 2016 12:32:06 +0300 Subject: [PATCH] Allow install os-vif library used by Nova In future Nova will use os-vif library for some communication with Neutron. This patch add ability to install os-vif library that requires for run tempest-jobs for new patches, that used os-vif. Change-Id: I28e48afd3c740b1aa50c994d99f660f095e7deda --- lib/nova | 8 ++++++++ stackrc | 4 ++++ tests/test_libs_from_pypi.sh | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index 3a5a47fa27..2b8fefaf00 100644 --- a/lib/nova +++ b/lib/nova @@ -34,6 +34,7 @@ set +o xtrace # Set up default directories GITDIR["python-novaclient"]=$DEST/python-novaclient +GITDIR["os-vif"]=$DEST/os-vif NOVA_DIR=$DEST/nova # Nova virtual environment @@ -728,6 +729,13 @@ function install_novaclient { # install_nova() - Collect source and prepare function install_nova { + + # Install os-vif + if use_library_from_git "os-vif"; then + git_clone_by_name "os-vif" + setup_dev_lib "os-vif" + fi + if is_service_enabled n-cpu && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; then install_nova_hypervisor fi diff --git a/stackrc b/stackrc index 74d507cfa2..9bd132a74a 100644 --- a/stackrc +++ b/stackrc @@ -477,6 +477,10 @@ GITDIR["ceilometermiddleware"]=$DEST/ceilometermiddleware GITREPO["os-brick"]=${OS_BRICK_REPO:-${GIT_BASE}/openstack/os-brick.git} GITBRANCH["os-brick"]=${OS_BRICK_BRANCH:-master} +# os-vif library to communicate between Neutron to Nova +GITREPO["os-vif"]=${OS_VIF_REPO:-${GIT_BASE}/openstack/os-vif.git} +GITBRANCH["os-vif"]=${OS_VIF_BRANCH:-master} + # ironic common lib GITREPO["ironic-lib"]=${IRONIC_LIB_REPO:-${GIT_BASE}/openstack/ironic-lib.git} GITBRANCH["ironic-lib"]=${IRONIC_LIB_BRANCH:-master} diff --git a/tests/test_libs_from_pypi.sh b/tests/test_libs_from_pypi.sh index ee11fd29a0..f01db6df1d 100755 --- a/tests/test_libs_from_pypi.sh +++ b/tests/test_libs_from_pypi.sh @@ -42,7 +42,7 @@ ALL_LIBS+=" python-neutronclient tooz ceilometermiddleware oslo.policy" ALL_LIBS+=" debtcollector os-brick automaton futurist oslo.service" ALL_LIBS+=" oslo.cache oslo.reports osprofiler" ALL_LIBS+=" keystoneauth ironic-lib neutron-lib oslo.privsep" -ALL_LIBS+=" diskimage-builder" +ALL_LIBS+=" diskimage-builder os-vif" # Generate the above list with # echo ${!GITREPO[@]}