"Fossies" - the Fresh Open Source Software Archive

Member "manila-8.1.3/devstack/settings" (20 Jul 2020, 12124 Bytes) of package /linux/misc/openstack/manila-8.1.3.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "settings": 8.1.2_vs_8.1.3.

    1 # Setting configuration file for manila services
    2 # ----------------------------------------------
    3 # 1) It is possible to set any custom opt to any config group using following:
    4 # $ export MANILA_OPTGROUP_foo_bar=value
    5 # where 'foo' is name of config group and 'bar' is name of option.
    6 #
    7 # 2) 'MANILA_CONFIGURE_GROUPS' contains list of config group names used to create
    8 # config groups, but 'MANILA_ENABLED_BACKENDS' is used to set config groups as
    9 # Manila share back ends. Both can be set like following:
   10 # $ export MANILA_ENABLED_BACKENDS=foo,bar
   11 # where 'foo' and 'bar' are names of config groups with opts for some share
   12 # drivers. By default they are equal. Also be attentive, if you modify both,
   13 # make sure 'MANILA_CONFIGURE_GROUPS' contains all values from
   14 # 'MANILA_ENABLED_BACKENDS'.
   15 # DEFAULT group is always defined, no need to specify it within 'MANILA_CONFIGURE_GROUPS'.
   16 #
   17 # 3) Two default backends are used for compatibility with previous approach.
   18 # They have same configuration except name of backend. Both use generic driver.
   19 # They can be enabled by adding values of following env vars:
   20 # 'MANILA_BACKEND1_CONFIG_GROUP_NAME' and 'MANILA_BACKEND2_CONFIG_GROUP_NAME'
   21 # to the env var 'MANILA_ENABLED_BACKENDS' or will be enabled
   22 # if 'MANILA_ENABLED_BACKENDS' is empty.
   23 #
   24 # 4) 'CINDER_OVERSUBSCRIPTION_RATIO' - manila devstack-plugin env var that is
   25 # useful for all share drivers that use Cinder. If it is set, then it will be
   26 # applied for two Cinder options: 'max_over_subscription_ratio' and
   27 # 'lvm_max_over_subscription_ratio'. Should be float. Example:
   28 # CINDER_OVERSUBSCRIPTION_RATIO=20.0
   29 
   30 
   31 # Defaults
   32 # --------
   33 MANILA_GIT_BASE=${MANILA_GIT_BASE:-https://git.openstack.org}
   34 MANILA_REPO_ROOT=${MANILA_REPO_ROOT:-openstack}
   35 
   36 MANILACLIENT_REPO=${MANILA_GIT_BASE}/${MANILA_REPO_ROOT}/python-manilaclient.git
   37 MANILACLIENT_BRANCH=${MANILACLIENT_BRANCH:-master}
   38 
   39 # Set up default directories
   40 MANILA_DIR=${MANILA_DIR:=$DEST/manila}
   41 MANILA_LOCK_PATH=${MANILA_LOCK_PATH:=$OSLO_LOCK_PATH}
   42 MANILA_LOCK_PATH=${MANILA_LOCK_PATH:=$MANILA_DIR/manila_locks}
   43 MANILACLIENT_DIR=${MANILACLIENT_DIR:=$DEST/python-manilaclient}
   44 MANILA_STATE_PATH=${MANILA_STATE_PATH:=$DATA_DIR/manila}
   45 MANILA_AUTH_CACHE_DIR=${MANILA_AUTH_CACHE_DIR:-/var/cache/manila}
   46 
   47 MANILA_CONF_DIR=${MANILA_CONF_DIR:-/etc/manila}
   48 MANILA_CONF=$MANILA_CONF_DIR/manila.conf
   49 MANILA_API_PASTE_INI=$MANILA_CONF_DIR/api-paste.ini
   50 
   51 # Set this to False to leave "default_share_type" and
   52 # "default_share_group_type" configuration options empty.
   53 MANILA_CONFIGURE_DEFAULT_TYPES=${MANILA_CONFIGURE_DEFAULT_TYPES:-True}
   54 
   55 MANILA_DEFAULT_SHARE_TYPE=${MANILA_DEFAULT_SHARE_TYPE:-default}
   56 # MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS is expected to contain extra specs key-value pairs,
   57 # that should be assigned to default share type. Both - qualified and unqualified extra specs are supported.
   58 # Pairs are separated by spaces, value is assigned to key using sign of equality. Examples:
   59 # MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='foo=bar'
   60 # MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='foo=bar quuz=xyzzy'
   61 # MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='foo=bar quuz=xyzzy fakeprefix:baz=waldo'
   62 
   63 MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS=${MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS:-''}
   64 MANILA_DHSS_TRUE_SHARE_TYPE_EXTRA_SPECS=${MANILA_DHSS_TRUE_SHARE_TYPE_EXTRA_SPECS:-$MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS}
   65 MANILA_DHSS_FALSE_SHARE_TYPE_EXTRA_SPECS=${MANILA_DHSS_FALSE_SHARE_TYPE_EXTRA_SPECS:-$MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS}
   66 
   67 # Share groups and their specs
   68 MANILA_DEFAULT_SHARE_GROUP_TYPE=${MANILA_DEFAULT_SHARE_GROUP_TYPE:-default}
   69 # MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS is expected to contain key-value pairs,
   70 # that should be assigned to default share group type. Both - qualified and unqualified specs are supported.
   71 # Pairs are separated by spaces, value is assigned to key using sign of equality. Examples:
   72 # MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS='foo=bar'
   73 # MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS='foo=bar quuz=xyzzy'
   74 # MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS='foo=bar quuz=xyzzy fakeprefix:baz=waldo'
   75 MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS=${MANILA_DEFAULT_SHARE_GROUP_TYPE_SPECS:-''}
   76 
   77 # Public facing bits
   78 MANILA_SERVICE_HOST=${MANILA_SERVICE_HOST:-$SERVICE_HOST}
   79 MANILA_SERVICE_PORT=${MANILA_SERVICE_PORT:-8786}
   80 MANILA_SERVICE_PORT_INT=${MANILA_SERVICE_PORT_INT:-18786}
   81 MANILA_SERVICE_PROTOCOL=${MANILA_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
   82 MANILA_ENDPOINT_BASE=$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST:$MANILA_SERVICE_PORT
   83 
   84 # Support entry points installation of console scripts
   85 if [[ -d $MANILA_DIR/bin ]]; then
   86     MANILA_BIN_DIR=$MANILA_DIR/bin
   87 else
   88     MANILA_BIN_DIR=$(get_python_exec_prefix)
   89 fi
   90 
   91 # Common opts
   92 SHARE_NAME_PREFIX=${SHARE_NAME_PREFIX:-share-}
   93 MANILA_ENABLED_SHARE_PROTOCOLS=${ENABLED_SHARE_PROTOCOLS:-"NFS,CIFS"}
   94 MANILA_SCHEDULER_DRIVER=${MANILA_SCHEDULER_DRIVER:-manila.scheduler.filter_scheduler.FilterScheduler}
   95 MANILA_SERVICE_SECGROUP="manila-service"
   96 
   97 # Following env var defines whether to apply downgrade migrations setting up DB or not.
   98 # If it is set to False, then only 'upgrade' migrations will be applied.
   99 # If it is set to True, then will be applied 'upgrade', 'downgrade' and 'upgrade'
  100 # migrations again.
  101 MANILA_USE_DOWNGRADE_MIGRATIONS=${MANILA_USE_DOWNGRADE_MIGRATIONS:-"False"}
  102 
  103 # Toggle for deploying manila-api service under Apache web server with enabled
  104 # 'mod_wsgi' plugin.
  105 MANILA_USE_MOD_WSGI=${MANILA_USE_MOD_WSGI:-False}
  106 
  107 # Toggle for deploying manila-api service with uWSGI
  108 # Set it as True, because starting with Pike it is requirement from
  109 # 'governance' project. See:
  110 # https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html#completion-criteria
  111 MANILA_USE_UWSGI=${MANILA_USE_UWSGI:-True}
  112 MANILA_WSGI=$MANILA_BIN_DIR/manila-wsgi
  113 MANILA_UWSGI_CONF=$MANILA_CONF_DIR/manila-uwsgi.ini
  114 
  115 if [ $(trueorfalse False MANILA_USE_UWSGI) == True ]; then
  116     MANILA_ENDPOINT_BASE=$MANILA_SERVICE_PROTOCOL://$MANILA_SERVICE_HOST/share
  117 fi
  118 
  119 # Common info for Generic driver(s)
  120 SHARE_DRIVER=${SHARE_DRIVER:-manila.share.drivers.generic.GenericShareDriver}
  121 
  122 eval USER_HOME=~
  123 MANILA_PATH_TO_PUBLIC_KEY=${MANILA_PATH_TO_PUBLIC_KEY:-"$USER_HOME/.ssh/id_rsa.pub"}
  124 MANILA_PATH_TO_PRIVATE_KEY=${MANILA_PATH_TO_PRIVATE_KEY:-"$USER_HOME/.ssh/id_rsa"}
  125 MANILA_SERVICE_KEYPAIR_NAME=${MANILA_SERVICE_KEYPAIR_NAME:-"manila-service"}
  126 
  127 MANILA_SERVICE_INSTANCE_USER=${MANILA_SERVICE_INSTANCE_USER:-"manila"}
  128 MANILA_SERVICE_IMAGE_URL=${MANILA_SERVICE_IMAGE_URL:-"http://tarballs.openstack.org/manila-image-elements/images/manila-service-image-master.qcow2"}
  129 MANILA_SERVICE_IMAGE_NAME=${MANILA_SERVICE_IMAGE_NAME:-"manila-service-image-master"}
  130 
  131 # Third party CI Vendors should set this to false to skip the service image download
  132 MANILA_SERVICE_IMAGE_ENABLED=$(trueorfalse True MANILA_SERVICE_IMAGE_ENABLED)
  133 
  134 MANILA_USE_SERVICE_INSTANCE_PASSWORD=${MANILA_USE_SERVICE_INSTANCE_PASSWORD:-"False"}
  135 MANILA_SERVICE_INSTANCE_PASSWORD=${MANILA_SERVICE_INSTANCE_PASSWORD:-"manila"}
  136 
  137 MANILA_SERVICE_VM_FLAVOR_REF=${MANILA_SERVICE_VM_FLAVOR_REF:-100}
  138 MANILA_SERVICE_VM_FLAVOR_NAME=${MANILA_SERVICE_VM_FLAVOR_NAME:-"manila-service-flavor"}
  139 MANILA_SERVICE_VM_FLAVOR_RAM=${MANILA_SERVICE_VM_FLAVOR_RAM:-320}
  140 MANILA_SERVICE_VM_FLAVOR_DISK=${MANILA_SERVICE_VM_FLAVOR_DISK:-3}
  141 MANILA_SERVICE_VM_FLAVOR_VCPUS=${MANILA_SERVICE_VM_FLAVOR_VCPUS:-1}
  142 
  143 # Support for multi backend configuration (default is no support)
  144 MANILA_MULTI_BACKEND=$(trueorfalse False MANILA_MULTI_BACKEND)
  145 DEPRECATED_TEXT="$DEPRECATED_TEXT\n'MANILA_MULTI_BACKEND' is deprecated,
  146     it makes influence only when is set to True and 'MANILA_ENABLED_BACKENDS' is not set.
  147     Use 'MANILA_ENABLED_BACKENDS' instead if you want to use custom setting.
  148     Set there a list of back end names to be enabled.\n
  149     To configure custom back ends use (any opt in any group can be set in this way) following:
  150     MANILA_OPTGROUP_foo_bar=value
  151     where 'foo' is name of config group and 'bar' is name of option.\n"
  152 
  153 # First share backend data, that will be used in any installation
  154 MANILA_BACKEND1_CONFIG_GROUP_NAME=${MANILA_BACKEND1_CONFIG_GROUP_NAME:-generic1}  # deprecated
  155 MANILA_SHARE_BACKEND1_NAME=${MANILA_SHARE_BACKEND1_NAME:-GENERIC1}  # deprecated
  156 
  157 # Second share backend data, that will be used only with MANILA_MULTI_BACKEND=True
  158 MANILA_BACKEND2_CONFIG_GROUP_NAME=${MANILA_BACKEND2_CONFIG_GROUP_NAME:-generic2}  # deprecated
  159 MANILA_SHARE_BACKEND2_NAME=${MANILA_SHARE_BACKEND2_NAME:-GENERIC2}  # deprecated
  160 
  161 # Enable this option when using a storage backend that is on the same host
  162 # as the devstack host, these iptable rules are necessary to allow mounting
  163 # shares from the host
  164 MANILA_ALLOW_NAS_SERVER_PORTS_ON_HOST=${MANILA_ALLOW_NAS_SERVER_PORTS_ON_HOST:-False}
  165 
  166 # Options for configuration of LVM share driver
  167 SHARE_BACKING_FILE_SIZE=${SHARE_BACKING_FILE_SIZE:-8400M}
  168 SHARE_GROUP=${SHARE_GROUP:-lvm-shares}
  169 MANILA_MNT_DIR=${MANILA_MNT_DIR:=$MANILA_STATE_PATH/mnt}
  170 SMB_CONF=${SMB_CONF:-/etc/samba/smb.conf}
  171 SMB_PRIVATE_DIR=${SMB_PRIVATE_DIR:-/var/lib/samba/private}
  172 CONFIGURE_BACKING_FILE=${CONFIGURE_BACKING_FILE:-"True"}
  173 MANILA_LVM_SHARE_EXPORT_IPS=${MANILA_LVM_SHARE_EXPORT_IPS:-$HOST_IP}
  174 
  175 # Options for replication
  176 MANILA_REPLICA_STATE_UPDATE_INTERVAL=${MANILA_REPLICA_STATE_UPDATE_INTERVAL:-300}
  177 
  178 # Options for configuration of ZFSonLinux driver
  179 # 'MANILA_ZFSONLINUX_ZPOOL_SIZE' defines size of each zpool. That value
  180 # will be used for creation of sparse files.
  181 MANILA_ZFSONLINUX_ZPOOL_SIZE=${MANILA_ZFSONLINUX_ZPOOL_SIZE:-"30G"}
  182 MANILA_ZFSONLINUX_BACKEND_FILES_CONTAINER_DIR=${MANILA_ZFSONLINUX_BACKEND_FILES_CONTAINER_DIR:-"/opt/stack/data/manila/zfsonlinux"}
  183 MANILA_ZFSONLINUX_SHARE_EXPORT_IP=${MANILA_ZFSONLINUX_SHARE_EXPORT_IP:-$HOST_IP}
  184 MANILA_ZFSONLINUX_SERVICE_IP=${MANILA_ZFSONLINUX_SERVICE_IP:-$HOST_IP}
  185 MANILA_ZFSONLINUX_DATASET_CREATION_OPTIONS=${MANILA_ZFSONLINUX_DATASET_CREATION_OPTIONS:-"compression=gzip"}
  186 MANILA_ZFSONLINUX_USE_SSH=${MANILA_ZFSONLINUX_USE_SSH:-"False"}
  187 MANILA_ZFSONLINUX_SSH_USERNAME=${MANILA_ZFSONLINUX_SSH_USERNAME:-$STACK_USER}
  188 # If MANILA_ZFSONLINUX_REPLICATION_DOMAIN is set to empty value then
  189 # Manila will consider replication feature as disabled for ZFSonLinux share driver.
  190 MANILA_ZFSONLINUX_REPLICATION_DOMAIN=${MANILA_ZFSONLINUX_REPLICATION_DOMAIN:-"ZFSonLinux"}
  191 
  192 # Container Driver
  193 MANILA_CONTAINER_DRIVER=${MANILA_CONTAINER_DRIVER:-"manila.share.drivers.container.driver.ContainerShareDriver"}
  194 MANILA_DOCKER_IMAGE_ALIAS=${MANILA_DOCKER_IMAGE_ALIAS:-"manila_docker_image"}
  195 MANILA_CONTAINER_VOLUME_GROUP_NAME=${MANILA_CONTAINER_VOLUME_GROUP_NAME:-"manila_docker_volumes"}
  196 # (aovchinnikov): This location is temporary and will be changed to a
  197 # permanent one as soon as possible.
  198 MANILA_DOCKER_IMAGE_URL=${MANILA_DOCKER_IMAGE_URL:-"https://github.com/a-ovchinnikov/manila-image-elements-lxd-images/releases/download/0.1.0/manila-docker-container.tar.gz"}
  199 
  200 # Network Plugin
  201 MANILA_NETWORK_API_CLASS=${MANILA_NETWORK_API_CLASS:-"manila.network.neutron.neutron_network_plugin.NeutronBindNetworkPlugin"}
  202 MANILA_NEUTRON_VNIC_TYPE=${MANILA_NEUTRON_VNIC_TYPE:-"normal"}
  203 
  204 # SSH TIMEOUT
  205 MANILA_SSH_TIMEOUT=${MANILA_SSH_TIMEOUT:-180}
  206 
  207 # Admin Network setup
  208 MANILA_ADMIN_NET_RANGE=${MANILA_ADMIN_NET_RANGE:=10.2.5.0/24}
  209 
  210 # Data Service IP configuration
  211 MANILA_DATA_NODE_IP=${MANILA_DATA_NODE_IP:=$MANILA_ADMIN_NET_RANGE}
  212 
  213 # Data Service copy validation
  214 MANILA_DATA_COPY_CHECK_HASH=${MANILA_DATA_COPY_CHECK_HASH:=True}
  215 
  216 # Manila IPv6 Setup flag
  217 MANILA_SETUP_IPV6=${MANILA_SETUP_IPV6:=False}
  218 MANILA_RESTORE_IPV6_DEFAULT_ROUTE=${MANILA_RESTORE_IPV6_DEFAULT_ROUTE:=True}
  219 
  220 # Install manila-tempest-plugin system-wide
  221 # This operation has been deprecated. manila-tempest-plugin has a devstack
  222 # plugin that must be preferred over this approach.
  223 MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE=${MANILA_INSTALL_TEMPEST_PLUGIN_SYSTEMWIDE:=True}
  224 
  225 # Enable manila services
  226 # ----------------------
  227 # We have to add Manila to enabled services for screen_it to work
  228 # It consists of 4 parts: m-api (API), m-shr (Share), m-sch (Scheduler)
  229 # and m-dat (Data).
  230 
  231 enable_service manila
  232 enable_service m-api
  233 enable_service m-shr
  234 enable_service m-sch
  235 enable_service m-dat