Adds devstack plugin support for all amp base OS
Set OCTAVIA_AMP_BASE_OS to pass any option accepted by the diskimage-create.sh script: ubuntu | fedora | centos | rhel Set OCTAVIA_AMP_DISTRIBUTION_RELEASE_ID to pass release name for the selected (either by OCTAVIA_AMP_BASE_OS or by default) operating system. Set OCTAVIA_AMP_IMAGE_SIZE to pass the image size (by GB). If unset, the above mentioned options are not used in the script call and thus, the script will use its default values. Related-Bug #1548070 Change-Id: If1139594cf23d9de413ce2603aaa5c1e012c7790
This commit is contained in:
parent
c8ecd1fa91
commit
b2494dd531
@ -39,8 +39,17 @@ function build_octavia_worker_image {
|
||||
if [ "$OCTAVIA_DIB_TRACING" != "0" ]; then
|
||||
octavia_dib_tracing_arg="-x"
|
||||
fi
|
||||
if [[ ${OCTAVIA_AMP_BASE_OS:+1} ]] ; then
|
||||
export PARAM_OCTAVIA_AMP_BASE_OS='-i '$OCTAVIA_AMP_BASE_OS
|
||||
fi
|
||||
if [[ ${OCTAVIA_AMP_DISTRIBUTION_RELEASE_ID:+1} ]] ; then
|
||||
export PARAM_OCTAVIA_AMP_DISTRIBUTION_RELEASE_ID='-d '$OCTAVIA_AMP_DISTRIBUTION_RELEASE_ID
|
||||
fi
|
||||
if [[ ${OCTAVIA_AMP_IMAGE_SIZE:+1} ]] ; then
|
||||
export PARAM_OCTAVIA_AMP_IMAGE_SIZE='-s '$OCTAVIA_AMP_IMAGE_SIZE
|
||||
fi
|
||||
if ! [ -f $OCTAVIA_AMP_IMAGE_FILE ]; then
|
||||
$OCTAVIA_DIR/diskimage-create/diskimage-create.sh $octavia_dib_tracing_arg -s 2 -o $OCTAVIA_AMP_IMAGE_FILE
|
||||
$OCTAVIA_DIR/diskimage-create/diskimage-create.sh $octavia_dib_tracing_arg -o $OCTAVIA_AMP_IMAGE_FILE ${PARAM_OCTAVIA_AMP_BASE_OS:-''} ${PARAM_OCTAVIA_AMP_DISTRIBUTION_RELEASE_ID:-''} ${PARAM_OCTAVIA_AMP_IMAGE_SIZE:-''}
|
||||
fi
|
||||
upload_image file://${OCTAVIA_AMP_IMAGE_FILE} $TOKEN
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user