Merge "Additional options for XenAPINFS cinder driver"
This commit is contained in:
commit
653ed37440
16
lib/cinder
16
lib/cinder
@ -24,6 +24,9 @@ set +o xtrace
|
|||||||
# Defaults
|
# Defaults
|
||||||
# --------
|
# --------
|
||||||
|
|
||||||
|
# set up default driver
|
||||||
|
CINDER_DRIVER=${CINDER_DRIVER:-default}
|
||||||
|
|
||||||
# set up default directories
|
# set up default directories
|
||||||
CINDER_DIR=$DEST/cinder
|
CINDER_DIR=$DEST/cinder
|
||||||
CINDERCLIENT_DIR=$DEST/python-cinderclient
|
CINDERCLIENT_DIR=$DEST/python-cinderclient
|
||||||
@ -145,6 +148,19 @@ function configure_cinder() {
|
|||||||
iniset $CINDER_CONF DEFAULT logging_debug_format_suffix "[00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d[00m"
|
iniset $CINDER_CONF DEFAULT logging_debug_format_suffix "[00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d[00m"
|
||||||
iniset $CINDER_CONF DEFAULT logging_exception_prefix "%(color)s%(asctime)s TRACE %(name)s [01;35m%(instance)s[00m"
|
iniset $CINDER_CONF DEFAULT logging_exception_prefix "%(color)s%(asctime)s TRACE %(name)s [01;35m%(instance)s[00m"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$CINDER_DRIVER" == "XenAPINFS" ]; then
|
||||||
|
(
|
||||||
|
set -u
|
||||||
|
iniset $CINDER_CONF DEFAULT volume_driver "cinder.volume.xenapi_sm.XenAPINFSDriver"
|
||||||
|
iniset $CINDER_CONF DEFAULT xenapi_connection_url "$CINDER_XENAPI_CONNECTION_URL"
|
||||||
|
iniset $CINDER_CONF DEFAULT xenapi_connection_username "$CINDER_XENAPI_CONNECTION_USERNAME"
|
||||||
|
iniset $CINDER_CONF DEFAULT xenapi_connection_password "$CINDER_XENAPI_CONNECTION_PASSWORD"
|
||||||
|
iniset $CINDER_CONF DEFAULT xenapi_nfs_server "$CINDER_XENAPI_NFS_SERVER"
|
||||||
|
iniset $CINDER_CONF DEFAULT xenapi_nfs_serverpath "$CINDER_XENAPI_NFS_SERVERPATH"
|
||||||
|
)
|
||||||
|
[ $? -ne 0 ] && exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# init_cinder() - Initialize database and volume group
|
# init_cinder() - Initialize database and volume group
|
||||||
|
Loading…
Reference in New Issue
Block a user