From 6ca32d280bb519097b3356037aff5c76a7c11b7a Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Tue, 11 Jun 2013 14:47:55 +0300 Subject: python-cinder: added 2013.1.1 -Added configuration files with necessary credentials; -Added initscript to start cinder-api and cinder-volume; Signed-off-by: Mihai Prica --- .../python/python-cinder/api-paste.ini | 62 + .../python/python-cinder/cinder.conf | 1186 ++++++++++++++++++++ .../python/python-cinder/cinder.init | 74 ++ 3 files changed, 1322 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-cinder/api-paste.ini create mode 100644 meta-openstack/recipes-devtools/python/python-cinder/cinder.conf create mode 100644 meta-openstack/recipes-devtools/python/python-cinder/cinder.init (limited to 'meta-openstack/recipes-devtools/python/python-cinder') diff --git a/meta-openstack/recipes-devtools/python/python-cinder/api-paste.ini b/meta-openstack/recipes-devtools/python/python-cinder/api-paste.ini new file mode 100644 index 0000000..69cf346 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/api-paste.ini @@ -0,0 +1,62 @@ +############# +# OpenStack # +############# + +[composite:osapi_volume] +use = call:cinder.api:root_app_factory +/: apiversions +/v1: openstack_volume_api_v1 +/v2: openstack_volume_api_v2 + +[composite:openstack_volume_api_v1] +use = call:cinder.api.middleware.auth:pipeline_factory +noauth = faultwrap sizelimit noauth apiv1 +keystone = faultwrap sizelimit authtoken keystonecontext apiv1 +keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv1 + +[composite:openstack_volume_api_v2] +use = call:cinder.api.middleware.auth:pipeline_factory +noauth = faultwrap sizelimit noauth apiv2 +keystone = faultwrap sizelimit authtoken keystonecontext apiv2 +keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv2 + +[filter:faultwrap] +paste.filter_factory = cinder.api.middleware.fault:FaultWrapper.factory + +[filter:noauth] +paste.filter_factory = cinder.api.middleware.auth:NoAuthMiddleware.factory + +[filter:sizelimit] +paste.filter_factory = cinder.api.middleware.sizelimit:RequestBodySizeLimiter.factory + +[app:apiv1] +paste.app_factory = cinder.api.v1.router:APIRouter.factory + +[app:apiv2] +paste.app_factory = cinder.api.v2.router:APIRouter.factory + +[pipeline:apiversions] +pipeline = faultwrap osvolumeversionapp + +[app:osvolumeversionapp] +paste.app_factory = cinder.api.versions:Versions.factory + +########## +# Shared # +########## + +[filter:keystonecontext] +paste.filter_factory = cinder.api.middleware.auth:CinderKeystoneContext.factory + +[filter:authtoken] +paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory +service_protocol = http +service_host = 127.0.0.1 +service_port = 5000 +auth_host = 127.0.0.1 +auth_port = 35357 +auth_protocol = http +admin_tenant_name = service +admin_user = cinder +admin_password = password +signing_dir = /var/lib/cinder diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf new file mode 100644 index 0000000..1e1c007 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf @@ -0,0 +1,1186 @@ +#################### +# cinder.conf sample # +#################### + +[DEFAULT] +sql_connection = postgresql://nova:nova@localhost/cinder +api_paste_confg = /etc/cinder/api-paste.ini +state_path = /etc/cinder/data/ + +iscsi_helper=tgtadm +volume_name_template = volume-%s +volume_group = cinder-volumes +verbose = True +auth_strategy = keystone + +rpc_backend = cinder.openstack.common.rpc.impl_qpid +qpid_hostname=localhost +qpid_port=5672 + +# +# Options defined in cinder.openstack.common.cfg:CommonConfigOpts +# + +# Print debugging output (boolean value) +#debug=false + +# Print more verbose output (boolean value) +#verbose=false + +# If this option is specified, the logging configuration file +# specified is used and overrides any other logging options +# specified. Please see the Python logging module +# documentation for details on logging configuration files. +# (string value) +#log_config= + +# A logging.Formatter log message format string which may use +# any of the available logging.LogRecord attributes. Default: +# %(default)s (string value) +#log_format=%(asctime)s %(levelname)8s [%(name)s] %(message)s + +# Format string for %%(asctime)s in log records. Default: +# %(default)s (string value) +#log_date_format=%Y-%m-%d %H:%M:%S + +# (Optional) Name of log file to output to. If not set, +# logging will go to stdout. (string value) +#log_file= + +# (Optional) The directory to keep log files in (will be +# prepended to --log-file) (string value) +#log_dir= + +# Use syslog for logging. (boolean value) +#use_syslog=false + +# syslog facility to receive log lines (string value) +#syslog_log_facility=LOG_USER + +# Do not count snapshots against gigabytes quota (bool value) +#no_snapshot_gb_quota=False + +# +# Options defined in cinder.exception +# + +# make exception message format errors fatal (boolean value) +#fatal_exception_format_errors=false + + +# +# Options defined in cinder.flags +# + +# Virtualization api connection type : libvirt, xenapi, or +# fake (string value) +#connection_type= + +# The SQLAlchemy connection string used to connect to the +# database (string value) +#sql_connection=sqlite:///$state_path/$sqlite_db + +# Verbosity of SQL debugging information. 0=None, +# 100=Everything (integer value) +#sql_connection_debug=0 + +# File name for the paste.deploy config for cinder-api (string +# value) +#api_paste_config=api-paste.ini + +# Directory where the cinder python module is installed +# (string value) +#pybasedir=/usr/lib/python/site-packages + +# Directory where cinder binaries are installed (string value) +#bindir=$pybasedir/bin + +# Top-level directory for maintaining cinder's state (string +# value) +#state_path=$pybasedir + +# ip address of this host (string value) +#my_ip=10.0.0.1 + +# default glance hostname or ip (string value) +#glance_host=$my_ip + +# default glance port (integer value) +#glance_port=9292 + +# A list of the glance api servers available to cinder +# ([hostname|ip]:port) (list value) +#glance_api_servers=$glance_host:$glance_port + +# default version of the glance api to use +#glance_api_version=1 + +# Number retries when downloading an image from glance +# (integer value) +#glance_num_retries=0 + +# Allow to perform insecure SSL (https) requests to glance +# (boolean value) +#glance_api_insecure=false + +# the topic scheduler nodes listen on (string value) +#scheduler_topic=cinder-scheduler + +# the topic volume nodes listen on (string value) +#volume_topic=cinder-volume + +# Deploy v1 of the Cinder API. (boolean value) +#enable_v1_api=true + +# Deploy v2 of the Cinder API. (boolean value) +#enable_v2_api=true + +# whether to rate limit the api (boolean value) +#api_rate_limit=true + +# Specify list of extensions to load when using +# osapi_volume_extension option with +# cinder.api.contrib.select_extensions (list value) +#osapi_volume_ext_list= + +# osapi volume extension to load (multi valued) +#osapi_volume_extension=cinder.api.contrib.standard_extensions + +# Base URL that will be presented to users in links to the +# OpenStack Volume API (string value) +#osapi_volume_base_URL= + +# the maximum number of items returned in a single response +# from a collection resource (integer value) +#osapi_max_limit=1000 + +# the filename to use with sqlite (string value) +#sqlite_db=cinder.sqlite + +# If passed, use synchronous mode for sqlite (boolean value) +#sqlite_synchronous=true + +# timeout before idle sql connections are reaped (integer +# value) +#sql_idle_timeout=3600 + +# maximum db connection retries during startup. (setting -1 +# implies an infinite retry count) (integer value) +#sql_max_retries=10 + +# interval between retries of opening a sql connection +# (integer value) +#sql_retry_interval=10 + +# full class name for the Manager for volume (string value) +#volume_manager=cinder.volume.manager.VolumeManager + +# full class name for the Manager for scheduler (string value) +#scheduler_manager=cinder.scheduler.manager.SchedulerManager + +# Name of this node. This can be an opaque identifier. It is +# not necessarily a hostname, FQDN, or IP address. (string +# value) +#host=cinder + +# availability zone of this node (string value) +#storage_availability_zone=nova + +# Memcached servers or None for in process cache. (list value) +#memcached_servers= + +# default volume type to use (string value) +#default_volume_type= + +# time period to generate volume usages for. Time period must +# be hour, day, month or year (string value) +#volume_usage_audit_period=month + +# Path to the rootwrap configuration file to use for running +# commands as root (string value) +#rootwrap_config=/etc/cinder/rootwrap.conf + +# Whether to log monkey patching (boolean value) +#monkey_patch=false + +# List of modules/decorators to monkey patch (list value) +#monkey_patch_modules= + +# maximum time since last check-in for up service (integer +# value) +#service_down_time=60 + +# The full class name of the volume API class to use (string +# value) +#volume_api_class=cinder.volume.api.API + +# The strategy to use for auth. Supports noauth, keystone, and +# deprecated. (string value) +#auth_strategy=noauth + +# AMQP exchange to connect to if using RabbitMQ or Qpid +# (string value) +#control_exchange=cinder + + +# +# Options defined in cinder.policy +# + +# JSON file representing policy (string value) +#policy_file=policy.json + +# Rule checked when requested rule is not found (string value) +#policy_default_rule=default + + +# +# Options defined in cinder.quota +# + +# number of volumes allowed per project (integer value) +#quota_volumes=10 + +# number of volume snapshots allowed per project (integer value) +#quota_snapshots=10 + +# number of volume and snapshot gigabytes allowed per project (integer +# value) +#quota_gigabytes=1000 + +# number of seconds until a reservation expires (integer +# value) +#reservation_expire=86400 + +# count of reservations until usage is refreshed (integer +# value) +#until_refresh=0 + +# number of seconds between subsequent usage refreshes +# (integer value) +#max_age=0 + +# default driver to use for quota checks (string value) +#quota_driver=cinder.quota.DbQuotaDriver + + +# +# Options defined in cinder.service +# + +# seconds between nodes reporting state to datastore (integer +# value) +#report_interval=10 + +# seconds between running periodic tasks (integer value) +#periodic_interval=60 + +# range of seconds to randomly delay when starting the +# periodic task scheduler to reduce stampeding. (Disable by +# setting to 0) (integer value) +#periodic_fuzzy_delay=60 + +# IP address for OpenStack Volume API to listen (string value) +#osapi_volume_listen=0.0.0.0 + +# port for os volume api to listen (integer value) +#osapi_volume_listen_port=8776 + + +# +# Options defined in cinder.test +# + +# File name of clean sqlite db (string value) +#sqlite_clean_db=clean.sqlite + +# should we use everything for testing (boolean value) +#fake_tests=true + + +# +# Options defined in cinder.wsgi +# + +# Number of backlog requests to configure the socket with +# (integer value) +#backlog=4096 + +# Sets the value of TCP_KEEPIDLE in seconds for each server +# socket. Not supported on OS X. (integer value) +#tcp_keepidle=600 + +# CA certificate file to use to verify connecting clients +# (string value) +#ssl_ca_file= + +# Certificate file to use when starting the server securely +# (string value) +#ssl_cert_file= + +# Private key file to use when starting the server securely +# (string value) +#ssl_key_file= + + +# +# Options defined in cinder.api.middleware.auth +# + +# Treat X-Forwarded-For as the canonical remote address. Only +# enable this if you have a sanitizing proxy. (boolean value) +#use_forwarded_for=false + + +# +# Options defined in cinder.api.middleware.sizelimit +# + +# Max size for body of a request (integer value) +#osapi_max_request_body_size=114688 + + +# +# Options defined in cinder.common.deprecated +# + +# make deprecations fatal (boolean value) +#fatal_deprecations=false + + +# +# Options defined in cinder.db.api +# + +# The backend to use for db (string value) +#db_backend=sqlalchemy + +# Services to be added to the available pool on create +# (boolean value) +#enable_new_services=true + +# Template string to be used to generate volume names (string +# value) +#volume_name_template=volume-%s + +# Template string to be used to generate snapshot names +# (string value) +#snapshot_name_template=snapshot-%s + +# Template string to be used to generate backup names (string +# value) +#backup_name_template=backup-%s + +# +# Options defined in cinder.db.base +# + +# driver to use for database access (string value) +#db_driver=cinder.db + + +# +# Options defined in cinder.image.image_utils +# + +# parent dir for tempdir used for image conversion (string +# value) +#image_conversion_dir=/tmp + + +# +# Options defined in cinder.openstack.common.lockutils +# + +# Whether to disable inter-process locks (boolean value) +#disable_process_locking=false + +# Directory to use for lock files (string value) +#lock_path= + + +# +# Options defined in cinder.openstack.common.log +# + +# Log output to a per-service log file in named directory +# (string value) +#logdir= + +# Log output to a named file (string value) +#logfile= + +# Log output to standard error (boolean value) +#use_stderr=true + +# Default file mode used when creating log files (string +# value) +#logfile_mode=0644 + +# format string to use for log messages with context (string +# value) +#logging_context_format_string=%(asctime)s %(levelname)s %(name)s [%(request_id)s %(user_id)s %(project_id)s] %(instance)s%(message)s + +# format string to use for log messages without context +# (string value) +#logging_default_format_string=%(asctime)s %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s + +# data to append to log format when level is DEBUG (string +# value) +#logging_debug_format_suffix=%(funcName)s %(pathname)s:%(lineno)d + +# prefix each line of exception output with this format +# (string value) +#logging_exception_prefix=%(asctime)s %(process)d TRACE %(name)s %(instance)s + +# list of logger=LEVEL pairs (list value) +#default_log_levels=amqplib=WARN,sqlalchemy=WARN,boto=WARN,suds=INFO,keystone=INFO,eventlet.wsgi.server=WARN + +# publish error events (boolean value) +#publish_errors=false + +# If an instance is passed with the log message, format it +# like this (string value) +#instance_format="[instance: %(uuid)s] " + +# If an instance UUID is passed with the log message, format +# it like this (string value) +#instance_uuid_format="[instance: %(uuid)s] " + + +# +# Options defined in cinder.openstack.common.notifier.api +# + +# Driver or drivers to handle sending notifications (multi +# valued) + +# Default notification level for outgoing notifications +# (string value) +#default_notification_level=INFO + +# Default publisher_id for outgoing notifications (string +# value) +#default_publisher_id=$host + + +# +# Options defined in cinder.openstack.common.notifier.rabbit_notifier +# + +# AMQP topic used for openstack notifications (list value) +#notification_topics=notifications + + +# +# Options defined in cinder.openstack.common.rpc +# + +# The messaging module to use, defaults to kombu. (string +# value) +#rpc_backend=cinder.openstack.common.rpc.impl_kombu + +# Size of RPC thread pool (integer value) +#rpc_thread_pool_size=64 + +# Size of RPC connection pool (integer value) +#rpc_conn_pool_size=30 + +# Seconds to wait for a response from call or multicall +# (integer value) +#rpc_response_timeout=60 + +# Seconds to wait before a cast expires (TTL). Only supported +# by impl_zmq. (integer value) +#rpc_cast_timeout=30 + +# Modules of exceptions that are permitted to be recreatedupon +# receiving exception data from an rpc call. (list value) +#allowed_rpc_exception_modules=cinder.openstack.common.exception,nova.exception,cinder.exception + +# If passed, use a fake RabbitMQ provider (boolean value) +#fake_rabbit=false + + +# +# Options defined in cinder.openstack.common.rpc.impl_kombu +# + +# SSL version to use (valid only if SSL enabled) (string +# value) +#kombu_ssl_version= + +# SSL key file (valid only if SSL enabled) (string value) +#kombu_ssl_keyfile= + +# SSL cert file (valid only if SSL enabled) (string value) +#kombu_ssl_certfile= + +# SSL certification authority file (valid only if SSL enabled) +# (string value) +#kombu_ssl_ca_certs= + +# The RabbitMQ broker address where a single node is used +# (string value) +#rabbit_host=localhost + +# The RabbitMQ broker port where a single node is used +# (integer value) +#rabbit_port=5672 + +# RabbitMQ HA cluster host:port pairs (list value) +#rabbit_hosts=$rabbit_host:$rabbit_port + +# connect over SSL for RabbitMQ (boolean value) +#rabbit_use_ssl=false + +# the RabbitMQ userid (string value) +#rabbit_userid=guest + +# the RabbitMQ password (string value) +#rabbit_password=guest + +# the RabbitMQ virtual host (string value) +#rabbit_virtual_host=/ + +# how frequently to retry connecting with RabbitMQ (integer +# value) +#rabbit_retry_interval=1 + +# how long to backoff for between retries when connecting to +# RabbitMQ (integer value) +#rabbit_retry_backoff=2 + +# maximum retries with trying to connect to RabbitMQ (the +# default of 0 implies an infinite retry count) (integer +# value) +#rabbit_max_retries=0 + +# use durable queues in RabbitMQ (boolean value) +#rabbit_durable_queues=false + +# use H/A queues in RabbitMQ (x-ha-policy: all).You need to +# wipe RabbitMQ database when changing this option. (boolean +# value) +#rabbit_ha_queues=false + + +# +# Options defined in cinder.openstack.common.rpc.impl_qpid +# + +# Qpid broker hostname (string value) +#qpid_hostname=localhost + +# Qpid broker port (string value) +#qpid_port=5672 + +# Username for qpid connection (string value) +#qpid_username= + +# Password for qpid connection (string value) +#qpid_password= + +# Space separated list of SASL mechanisms to use for auth +# (string value) +#qpid_sasl_mechanisms= + +# Automatically reconnect (boolean value) +#qpid_reconnect=true + +# Reconnection timeout in seconds (integer value) +#qpid_reconnect_timeout=0 + +# Max reconnections before giving up (integer value) +#qpid_reconnect_limit=0 + +# Minimum seconds between reconnection attempts (integer +# value) +#qpid_reconnect_interval_min=0 + +# Maximum seconds between reconnection attempts (integer +# value) +#qpid_reconnect_interval_max=0 + +# Equivalent to setting max and min to the same value (integer +# value) +#qpid_reconnect_interval=0 + +# Seconds between connection keepalive heartbeats (integer +# value) +#qpid_heartbeat=60 + +# Transport to use, either 'tcp' or 'ssl' (string value) +#qpid_protocol=tcp + +# Disable Nagle algorithm (boolean value) +#qpid_tcp_nodelay=true + + +# +# Options defined in cinder.openstack.common.rpc.impl_zmq +# + +# ZeroMQ bind address. Should be a wildcard (*), an ethernet +# interface, or IP. The "host" option should point or resolve +# to this address. (string value) +#rpc_zmq_bind_address=* + +# MatchMaker driver (string value) +#rpc_zmq_matchmaker=cinder.openstack.common.rpc.matchmaker.MatchMakerLocalhost + +# ZeroMQ receiver listening port (integer value) +#rpc_zmq_port=9501 + +# Number of ZeroMQ contexts, defaults to 1 (integer value) +#rpc_zmq_contexts=1 + +# Directory for holding IPC sockets (string value) +#rpc_zmq_ipc_dir=/var/run/openstack + +# Name of this node. Must be a valid hostname, FQDN, or IP +# address. Must match "host" option, if running Nova. (string +# value) +#rpc_zmq_host=cinder + + +# +# Options defined in cinder.openstack.common.rpc.matchmaker +# + +# Matchmaker ring file (JSON) (string value) +#matchmaker_ringfile=/etc/nova/matchmaker_ring.json + + +# +# Options defined in cinder.scheduler.driver +# + +# The scheduler host manager class to use (string value) +#scheduler_host_manager=cinder.scheduler.host_manager.HostManager + + +# +# Options defined in cinder.scheduler.host_manager +# + +# Which filter class names to use for filtering hosts when not +# specified in the request. (list value) +#scheduler_default_filters=AvailabilityZoneFilter,CapacityFilter,CapabilitiesFilter + +# Which weigher class names to use for weighing hosts. (list +# value) +#scheduler_default_weighers=CapacityWeigher + + +# +# Options defined in cinder.scheduler.manager +# + +# Default scheduler driver to use (string value) +#scheduler_driver=cinder.scheduler.simple.SimpleScheduler + + +# +# Options defined in cinder.scheduler.scheduler_options +# + +# Absolute path to scheduler configuration JSON file. (string +# value) +#scheduler_json_config_location= + + +# +# Options defined in cinder.scheduler.simple +# + +# maximum number of volume gigabytes to allow per host +# (integer value) +#max_gigabytes=10000 + + +# +# Options defined in cinder.scheduler.weights.capacity +# + +# Multiplier used for weighing volume capacity. Negative +# numbers mean to stack vs spread. (floating point value) +#capacity_weight_multiplier=1.0 + + +# +# Options defined in cinder.volume.api +# + +# Create volume from snapshot at the host where snapshot +# resides (boolean value) +#snapshot_same_host=true + + +# +# Options defined in cinder.volume.driver +# + +# number of times to attempt to run flakey shell commands +# (integer value) +#num_shell_tries=3 + +# The percentage of backend capacity is reserved (integer +# value) +#reserved_percentage=0 + +# number of times to rescan iSCSI target to find volume +# (integer value) +#num_iscsi_scan_tries=3 + +# Number of iscsi target ids per host (integer value) +#iscsi_num_targets=100 + +# prefix for iscsi volumes (string value) +#iscsi_target_prefix=iqn.2010-10.org.openstack: + +# The port that the iSCSI daemon is listening on (string +# value) +#iscsi_ip_address=$my_ip + +# The port that the iSCSI daemon is listening on (integer +# value) +#iscsi_port=3260 + +# Optional override to the capacity based volume backend name +# +#volume_backend_name=LVM_iSCSI_unique1 + +# +# Options defined in cinder.volume.drivers.glusterfs +# + +# File with the list of available gluster shares (string +# value) +#glusterfs_shares_config= + +# Base dir where gluster expected to be mounted (string value) +#glusterfs_mount_point_base=$state_path/mnt + +# Use du or df for free space calculation (string value) +#glusterfs_disk_util=df + +# Create volumes as sparsed files which take no space.If set +# to False volume is created as regular file.In such case +# volume creation takes a lot of time. (boolean value) +#glusterfs_sparsed_volumes=true + + +# +# Options defined in cinder.volume.drivers.lvm +# + +# Name for the VG that will contain exported volumes (string +# value) +#volume_group=cinder-volumes + +# Method used to wipe old volumes (valid options are: none, +# zero, shred) (string value) +#volume_clear=zero + +# Size in MiB to wipe at start of old volumes. 0 => all +# (integer value) +#volume_clear_size=0 + +# Size of thin provisioning pool (None uses entire cinder VG) +# (string value) +#pool_size= + +# If set, create lvms with multiple mirrors. Note that this +# requires lvm_mirrors + 2 pvs with available space (integer +# value) +#lvm_mirrors=0 + + +# +# Options defined in cinder.volume.drivers.netapp +# + +# URL of the WSDL file for the DFM server (string value) +#netapp_wsdl_url= + +# User name for the DFM server (string value) +#netapp_login= + +# Password for the DFM server (string value) +#netapp_password= + +# Hostname for the DFM server (string value) +#netapp_server_hostname= + +# Port number for the DFM server (integer value) +#netapp_server_port=8088 + +# Storage service to use for provisioning (when +# volume_type=None) (string value) +#netapp_storage_service= + +# Prefix of storage service name to use for provisioning +# (volume_type name will be appended) (string value) +#netapp_storage_service_prefix= + +# Vfiler to use for provisioning (string value) +#netapp_vfiler= + + +# +# Options defined in cinder.volume.drivers.netapp_nfs +# + +# Does snapshot creation call returns immediately (integer +# value) +#synchronous_snapshot_create=0 + +# URL of the WSDL file for the DFM server (string value) +#netapp_wsdl_url= + +# User name for the DFM server (string value) +#netapp_login= + +# Password for the DFM server (string value) +#netapp_password= + +# Hostname for the DFM server (string value) +#netapp_server_hostname= + +# Port number for the DFM server (integer value) +#netapp_server_port=8088 + +# Storage service to use for provisioning (when +# volume_type=None) (string value) +#netapp_storage_service= + +# Prefix of storage service name to use for provisioning +# (volume_type name will be appended) (string value) +#netapp_storage_service_prefix= + +# Vfiler to use for provisioning (string value) +#netapp_vfiler= + + +# +# Options defined in cinder.volume.drivers.nexenta.volume +# + +# IP address of Nexenta SA (string value) +#nexenta_host= + +# HTTP port to connect to Nexenta REST API server (integer +# value) +#nexenta_rest_port=2000 + +# Use http or https for REST connection (default auto) (string +# value) +#nexenta_rest_protocol=auto + +# User name to connect to Nexenta SA (string value) +#nexenta_user=admin + +# Password to connect to Nexenta SA (string value) +#nexenta_password=nexenta + +# Nexenta target portal port (integer value) +#nexenta_iscsi_target_portal_port=3260 + +# pool on SA that will hold all volumes (string value) +#nexenta_volume=cinder + +# IQN prefix for iSCSI targets (string value) +#nexenta_target_prefix=iqn.1986-03.com.sun:02:cinder- + +# prefix for iSCSI target groups on SA (string value) +#nexenta_target_group_prefix=cinder/ + +# block size for volumes (blank=default,8KB) (string value) +#nexenta_blocksize= + +# flag to create sparse volumes (boolean value) +#nexenta_sparse=false + + +# +# Options defined in cinder.volume.drivers.nfs +# + +# File with the list of available nfs shares (string value) +#nfs_shares_config= + +# Base dir where nfs expected to be mounted (string value) +#nfs_mount_point_base=$state_path/mnt + +# Use du or df for free space calculation (string value) +#nfs_disk_util=df + +# Create volumes as sparsed files which take no space.If set +# to False volume is created as regular file.In such case +# volume creation takes a lot of time. (boolean value) +#nfs_sparsed_volumes=true + +# Mount options passed to the nfs client (string value) +# The value set here is passed directly to the -o flag +# of the mount command. See the nfs man page for details. +#nfs_mount_options=None + + +# +# Options defined in cinder.volume.drivers.rbd +# + +# the RADOS pool in which rbd volumes are stored (string +# value) +#rbd_pool=rbd + +# the RADOS client name for accessing rbd volumes (string +# value) +#rbd_user= + +# the libvirt uuid of the secret for the rbd_uservolumes +# (string value) +#rbd_secret_uuid= + +# where to store temporary image files if the volume driver +# does not write them directly to the volume (string value) +#volume_tmp_dir= + + +# +# Options defined in cinder.volume.drivers.san.san +# + +# Use thin provisioning for SAN volumes? (boolean value) +#san_thin_provision=true + +# IP address of SAN controller (string value) +#san_ip= + +# Username for SAN controller (string value) +#san_login=admin + +# Password for SAN controller (string value) +#san_password= + +# Filename of private key to use for SSH authentication +# (string value) +#san_private_key= + +# Cluster name to use for creating volumes (string value) +#san_clustername= + +# SSH port to use with SAN (integer value) +#san_ssh_port=22 + +# Execute commands locally instead of over SSH; use if the +# volume service is running on the SAN device (boolean value) +#san_is_local=false + +# SSH connection timeout in seconds (integer value) +#ssh_conn_timeout=30 + +# Minimum ssh connections in the pool (integer value) +#ssh_min_pool_conn=1 + +# Maximum ssh connections in the pool (integer value) +#ssh_max_pool_conn=5 + + +# +# Options defined in cinder.volume.drivers.san.solaris +# + +# The ZFS path under which to create zvols for volumes. +# (string value) +#san_zfs_volume_base=rpool/ + + +# +# Options defined in cinder.volume.drivers.scality +# + +# Path or URL to Scality SOFS configuration file (string +# value) +#scality_sofs_config= + +# Base dir where Scality SOFS shall be mounted (string value) +#scality_sofs_mount_point=$state_path/scality + +# Path from Scality SOFS root to volume dir (string value) +#scality_sofs_volume_dir=cinder/volumes + + +# +# Options defined in cinder.volume.drivers.solidfire +# + +# Set 512 byte emulation on volume creation; (boolean value) +#sf_emulate_512=true + +# Allow tenants to specify QOS on create (boolean value) +#sf_allow_tenant_qos=false + + +# +# Options defined in cinder.volume.drivers.storwize_svc +# + +# Storage system storage pool for volumes (string value) +#storwize_svc_volpool_name=volpool + +# Storage system space-efficiency parameter for volumes +# (string value) +#storwize_svc_vol_rsize=2% + +# Storage system threshold for volume capacity warnings +# (string value) +#storwize_svc_vol_warning=0 + +# Storage system autoexpand parameter for volumes (True/False) +# (boolean value) +#storwize_svc_vol_autoexpand=true + +# Storage system grain size parameter for volumes +# (32/64/128/256) (string value) +#storwize_svc_vol_grainsize=256 + +# Storage system compression option for volumes (boolean +# value) +#storwize_svc_vol_compression=false + +# Enable Easy Tier for volumes (boolean value) +#storwize_svc_vol_easytier=true + +# Maximum number of seconds to wait for FlashCopy to be +# prepared. Maximum value is 600 seconds (10 minutes). (string +# value) +#storwize_svc_flashcopy_timeout=120 + + +# +# Options defined in cinder.volume.drivers.windows +# + +# Path to store VHD backed volumes (string value) +#windows_iscsi_lun_path=C:\iSCSIVirtualDisks + + +# +# Options defined in cinder.volume.drivers.xenapi.sm +# + +# NFS server to be used by XenAPINFSDriver (string value) +#xenapi_nfs_server= + +# Path of exported NFS, used by XenAPINFSDriver (string value) +#xenapi_nfs_serverpath= + +# URL for XenAPI connection (string value) +#xenapi_connection_url= + +# Username for XenAPI connection (string value) +#xenapi_connection_username=root + +# Password for XenAPI connection (string value) +#xenapi_connection_password= + + +# +# Options defined in cinder.volume.drivers.xiv +# + +# Proxy driver (string value) +#xiv_proxy=xiv_openstack.nova_proxy.XIVNovaProxy + + +# +# Options defined in cinder.volume.drivers.zadara +# + +# Management IP of Zadara VPSA (string value) +#zadara_vpsa_ip= + +# Zadara VPSA port number (string value) +#zadara_vpsa_port= + +# Use SSL connection (boolean value) +#zadara_vpsa_use_ssl=false + +# User name for the VPSA (string value) +#zadara_user= + +# Password for the VPSA (string value) +#zadara_password= + +# Name of VPSA storage pool for volumes (string value) +#zadara_vpsa_poolname= + +# Default cache policy for volumes (string value) +#zadara_default_cache_policy=write-through + +# Default encryption policy for volumes (string value) +#zadara_default_encryption=NO + +# Default striping mode for volumes (string value) +#zadara_default_striping_mode=simple + +# Default stripe size for volumes (string value) +#zadara_default_stripesize=64 + +# Default template for VPSA volume names (string value) +#zadara_vol_name_template=OS_%s + +# Automatically detach from servers on volume delete (boolean +# value) +#zadara_vpsa_auto_detach_on_delete=true + +# Don't halt on deletion of non-existing volumes (boolean +# value) +#zadara_vpsa_allow_nonexistent_delete=true + + +# +# Options defined in cinder.volume.iscsi +# + +# iscsi target user-land tool to use (string value) +#iscsi_helper=tgtadm + +# Volume configuration file storage directory (string value) +#volumes_dir=$state_path/volumes + +# IET configuration file (string value) +#iet_conf=/etc/iet/ietd.conf + +# Comma-separatd list of initiator IQNs allowed to connect to +# the iSCSI target. (From Nova compute nodes.) (string value) +#lio_initiator_iqns= + + +# +# Options defined in cinder.volume.manager +# + +# Driver to use for volume creation (string value) +#volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver + + +# +# Multi backend options +# + +# Define the names of the groups for multiple volume backends +#enabled_backends=fakedriver,lvmdriver + +# Define the groups as above +#[lvmdriver] +#volume_group=lvm-group-1 +#volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver +#volume_backend_name=LVM_iSCSI_unique1 +#[fakedriver] +#volume_driver=cinder.volume.driver.FakeISCSIDriver + + +# Total option count: 255 diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.init b/meta-openstack/recipes-devtools/python/python-cinder/cinder.init new file mode 100644 index 0000000..7ae3dbf --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.init @@ -0,0 +1,74 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: cinder-api +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: postgresql rabbitmq-server +# Should-Stop: postgresql rabbitmq-server +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: OpenStack Block Storage (Cinder) - API +# Description: OpenStack Block Storage (Cinder) - API +### END INIT INFO + +SUFFIX=@suffix@ +DESC="cinder-$SUFFIX" +DAEMON="/usr/bin/cinder-$SUFFIX" +PIDFILE="/var/run/cinder-$SUFFIX.pid" + +start() +{ + if [ -e $PIDFILE ]; then + PIDDIR=/proc/$(cat $PIDFILE) + if [ -d ${PIDDIR} ]; then + echo "$DESC already running." + exit 1 + else + echo "Removing stale PID file $PIDFILE" + rm -f $PIDFILE + fi + fi + + echo -n "Starting $DESC..." + + start-stop-daemon --start --quiet --background \ + --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} + + if [ $? -eq 0 ]; then + echo "done." + else + echo "failed." + fi +} + +stop() +{ + echo -n "Stopping $DESC..." + start-stop-daemon --stop --quiet --pidfile $PIDFILE + if [ $? -eq 0 ]; then + echo "done." + else + echo "failed." + fi + rm -f $PIDFILE +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|force-reload) + stop + start + ;; + *) + echo "Usage: $0 {start|stop|force-reload|restart}" + exit 1 + ;; +esac + +exit 0 -- cgit v1.2.3-54-g00ecf