From e46c38a1b28862336d4ca9ed52643b9261444890 Mon Sep 17 00:00:00 2001 From: Victoria Martinez de la Cruz Date: Tue, 17 Jan 2017 12:18:17 -0300 Subject: [PATCH] Changes default behaviour for image creation script Commit ac84122598432fa1030a345e2b3b8caa193d6c96 refactoring broke manila gate by changing the default behavior of the image creation. The generic drivers requires CIFS+NFS, and after this change the default image shipped NFS only. This patch set adds a default value with CIFS+NFS. Change-Id: Ia620c04f68d0a627b047616cf5a39e2ba681c77f Closes-Bug: #1657121 --- README.rst | 2 +- bin/manila-image-create | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 97d7a07..24f5c8e 100644 --- a/README.rst +++ b/README.rst @@ -36,7 +36,7 @@ You should only need to run this command: tox -e buildimage -On completion, an Ubuntu minimal image with NFS will be available for use. +On completion, an Ubuntu minimal image with NFS+CIFS will be available for use. Non-default image using tox --------------------------- diff --git a/bin/manila-image-create b/bin/manila-image-create index 9d37328..d10ad23 100755 --- a/bin/manila-image-create +++ b/bin/manila-image-create @@ -24,7 +24,7 @@ MANILA_IMG_OS_VER=${MANILA_IMG_OS_VER:-"trusty"} MANILA_IMG_NAME=${MANILA_IMG_NAME:-"manila-service-image"} # Manila image creation default -MANILA_SHARE_PROTO=${MANILA_SHARE_PROTO:-"nfs"} +MANILA_SHARE_PROTO=${MANILA_SHARE_PROTO:-"default"} # Path to elements SCRIPT_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" @@ -100,7 +100,11 @@ configure() { OPTIONAL_ELEMENTS= OPTIONAL_DIB_ARGS= - if [ "$MANILA_SHARE_PROTO" = "nfs" ]; then + if [ "$MANILA_SHARE_PROTO" = "default" ]; then + # NOTE(vkmc) Generic driver uses 2 protocols by default + # NFS and CIFS. This is required by the gate. + OPTIONAL_ELEMENTS="$OPTIONAL_ELEMENTS manila-nfs manila-cifs" + elif [ "$MANILA_SHARE_PROTO" = "nfs" ]; then OPTIONAL_ELEMENTS="$OPTIONAL_ELEMENTS manila-nfs" elif [ "$MANILA_SHARE_PROTO" = "cifs" ]; then OPTIONAL_ELEMENTS="$OPTIONAL_ELEMENTS manila-cifs"