DevStack: Support to install diskimage-builder from source
Prior to this patch devstack only supported installing diskimage-builder directly from pip. This patch adds support to also install it from git. This is needed so we can run tests on the diskimage-builder gate to test against Ironic. Depends-On: I6cefac1eb4ebf0196a6b4d4bfc038c00921f0d70 Change-Id: I894b20fc41c195202d2545f6de2791cd6a1b1a30
This commit is contained in:
parent
a70b5365d3
commit
b4bc03f04f
|
@ -818,6 +818,16 @@ function build_tinyipa_ramdisk {
|
|||
cd -
|
||||
}
|
||||
|
||||
# install_diskimage_builder() - Collect source and prepare or install from pip
|
||||
function install_diskimage_builder {
|
||||
if use_library_from_git "diskimage-builder"; then
|
||||
git_clone_by_name "diskimage-builder"
|
||||
setup_dev_lib "diskimage-builder"
|
||||
else
|
||||
pip_install_gr "diskimage-builder"
|
||||
fi
|
||||
}
|
||||
|
||||
# build deploy kernel+ramdisk, then upload them to glance
|
||||
# this function sets ``IRONIC_DEPLOY_KERNEL_ID``, ``IRONIC_DEPLOY_RAMDISK_ID``
|
||||
function upload_baremetal_ironic_deploy {
|
||||
|
@ -826,7 +836,7 @@ function upload_baremetal_ironic_deploy {
|
|||
|
||||
# install diskimage-builder
|
||||
if [[ $(type -P ramdisk-image-create) == "" ]]; then
|
||||
pip_install_gr "diskimage-builder"
|
||||
install_diskimage_builder
|
||||
fi
|
||||
|
||||
if [ -z "$IRONIC_DEPLOY_KERNEL" -o -z "$IRONIC_DEPLOY_RAMDISK" ]; then
|
||||
|
|
Loading…
Reference in New Issue