Enable host-assisted migration in ZFSOnLinux CI

ZFSOnLinux CI is able to run host-assisted migration tests,
so enable them.

TrivialFix

Change-Id: I66578bad361867d1f698e39ceef07d94038c30c2
This commit is contained in:
Rodrigo Barbieri 2017-01-31 09:02:05 -02:00
parent 595a2bd73c
commit 31ea6a3c14
2 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,7 @@ elif [[ "$DRIVER" == "zfsonlinux" ]]; then
RUN_MANILA_SG_TESTS=False
RUN_MANILA_MANAGE_TESTS=True
RUN_MANILA_MANAGE_SNAPSHOT_TESTS=True
RUN_MANILA_HOST_ASSISTED_MIGRATION_TESTS=True
RUN_MANILA_DRIVER_ASSISTED_MIGRATION_TESTS=True
RUN_MANILA_REPLICATION_TESTS=True
iniset $TEMPEST_CONFIG share enable_ip_rules_for_protocols 'nfs'

View File

@ -560,6 +560,7 @@ function init_manila {
if is_service_enabled m-shr; then
mkdir -p $MANILA_ZFSONLINUX_BACKEND_FILES_CONTAINER_DIR
file_counter=0
MANILA_ZFSONLINUX_SERVICE_IP=${MANILA_ZFSONLINUX_SERVICE_IP:-"127.0.0.1"}
for BE in ${MANILA_ENABLED_BACKENDS//,/ }; do
if [[ $file_counter == 0 ]]; then
# NOTE(vponomaryov): create two pools for first ZFS backend
@ -606,6 +607,7 @@ function init_manila {
cat $STACK_HOME/.ssh/*.pub >> $SSH_USER_HOME/.ssh/authorized_keys
# Give ssh user sudo access
echo "$MANILA_ZFSONLINUX_SSH_USERNAME ALL=(ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers > /dev/null
iniset $MANILA_CONF DEFAULT data_node_access_ip $MANILA_ZFSONLINUX_SERVICE_IP
fi
fi
fi