# License for the specific language governing permissions and limitations # under the License. from oslo_config import cfg from oslo_log import log from manila import exception from manila.i18n import _ from manila.share import driver from manila.share.drivers.infortrend import infortrend_nas LOG = log.getLogger(__name__) infortrend_nas_opts = [ cfg.HostAddressOpt('infortrend_nas_ip', required=True, help='Infortrend NAS IP for management.'), cfg.StrOpt('infortrend_nas_user', default='manila', help='User for the Infortrend NAS server.'), cfg.StrOpt('infortrend_nas_password', default=None, secret=True, help='Password for the Infortrend NAS server. ' 'This is not necessary ' 'if infortrend_nas_ssh_key is set.'), cfg.StrOpt('infortrend_nas_ssh_key', default=None, help='SSH key for the Infortrend NAS server. ' 'This is not necessary ' 'if infortrend_nas_password is set.'),
# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. from oslo_config import cfg influxdb_opts = [ cfg.StrOpt('database_name', help='database name where metrics are stored', default='mon'), cfg.HostAddressOpt('ip_address', help='Valid IP address or hostname ' 'to InfluxDB instance'), cfg.PortOpt('port', help='port to influxdb', default=8086), cfg.StrOpt('user', help='influxdb user ', default='mon_persister'), cfg.StrOpt('password', secret=True, help='influxdb password') ] influxdb_group = cfg.OptGroup(name='influxdb', title='influxdb') def register_opts(conf): conf.register_group(influxdb_group) conf.register_opts(influxdb_opts, influxdb_group) def list_opts():
def list_opts(): return [ ("DEFAULT", _cli_options + ( cfg.StrOpt( 'coordination_url', secret=True, deprecated_group="storage", help='Coordination driver URL'), cfg.IntOpt( 'parallel_operations', min=1, deprecated_name='aggregation_workers_number', deprecated_group='storage', help='Number of threads to use to parallelize ' 'some operations. ' 'Default is set to the number of CPU available.'), cfg.BoolOpt( 'use-syslog', default=False, help='Use syslog for logging.'), cfg.BoolOpt( 'use-journal', default=False, help='Enable journald for logging. ' 'If running in a systemd environment you may wish ' 'to enable journal support. Doing so will use the ' 'journal native protocol which includes structured ' 'metadata in addition to log messages.'), cfg.StrOpt( 'syslog-log-facility', default='user', help='Syslog facility to receive log lines.') )), ("indexer", gnocchi.indexer.OPTS), ("metricd", ( cfg.IntOpt('workers', min=1, required=True, help='Number of workers for Gnocchi metric daemons. ' 'By default the available number of CPU is used.'), cfg.IntOpt('metric_processing_delay', default=60, required=True, deprecated_group='storage', help="How many seconds to wait between " "scheduling new metrics to process"), cfg.IntOpt('metric_reporting_delay', deprecated_group='storage', default=120, min=-1, required=True, help="How many seconds to wait between " "metric ingestion reporting. Set value to -1 to " "disable reporting"), cfg.IntOpt('metric_cleanup_delay', deprecated_group='storage', default=300, required=True, help="How many seconds to wait between " "cleaning of expired data"), cfg.IntOpt('processing_replicas', default=3, min=1, help="Number of workers that share a task. A higher " "value may improve worker utilization but may also " "increase load on coordination backend. Value is " "capped by number of workers globally."), )), ("api", ( cfg.StrOpt('paste_config', default="api-paste.ini", help='Path to API Paste configuration.'), cfg.StrOpt('auth_mode', default="basic", choices=list(map(operator.attrgetter("name"), pkg_resources.iter_entry_points( "gnocchi.rest.auth_helper"))), help='Authentication mode to use.'), cfg.IntOpt('max_limit', default=1000, required=True, help=('The maximum number of items returned in a ' 'single response from a collection resource')), cfg.IntOpt('operation_timeout', deprecated_name="refresh_timeout", default=10, min=0, help='Number of seconds before timeout when attempting ' 'to do some operations.'), ) + API_OPTS, ), ("storage", _STORAGE_OPTS), ("incoming", _INCOMING_OPTS), ("statsd", ( cfg.HostAddressOpt('host', default='0.0.0.0', help='The listen IP for statsd'), cfg.PortOpt('port', default=8125, help='The port for statsd'), cfg.Opt( 'resource_id', type=uuid.UUID, help='Resource UUID to use to identify statsd in Gnocchi'), cfg.StrOpt( 'creator', help='Creator value to use to identify statsd in Gnocchi'), cfg.StrOpt( 'archive_policy_name', help='Archive policy name to use when creating metrics'), cfg.FloatOpt( 'flush_delay', default=10, help='Delay between flushes'), )), ("archive_policy", gnocchi.archive_policy.OPTS), ]
from sahara.i18n import _ from sahara.plugins import opts as plugins_base from sahara.service.castellan import config as castellan from sahara.service.edp.data_sources import opts as data_source from sahara.service.edp.job_binaries import opts as job_binary from sahara.topology import topology_helper from sahara.utils.notification import sender from sahara.utils.openstack import cinder from sahara.utils.openstack import keystone from sahara.utils import remote from sahara import version cli_opts = [ cfg.HostAddressOpt('host', default='0.0.0.0', help='Hostname or IP address that will be used ' 'to listen on.'), cfg.PortOpt('port', default=8386, help='Port that will be used to listen on.'), cfg.BoolOpt('log-exchange', default=False, help='Log request/response exchange details: environ, ' 'headers and bodies.') ] edp_opts = [ cfg.IntOpt('job_binary_max_KB', default=5120, help='Maximum length of job binary data in kilobytes that ' 'may be stored or retrieved in a single operation.'), cfg.IntOpt('job_canceling_timeout', default=300,
exc_log_opts = [ cfg.BoolOpt('fatal_exception_format_errors', default=False, help=_('Used if there is a formatting error when generating ' 'an exception message (a programming error). If True, ' 'raise an exception; if False, use the unformatted ' 'message.')), ] service_opts = [ cfg.HostAddressOpt('host', default=socket.getfqdn(), sample_default='localhost', help=_('Name of this node. This can be an opaque ' 'identifier. It is not necessarily a hostname, ' 'FQDN, or IP address. However, the node name ' 'must be valid within an AMQP key, and if using ' 'ZeroMQ, a valid hostname, FQDN, or IP address.') ), cfg.IntOpt('periodic_interval', default=60, help=_('Default interval (in seconds) for running periodic ' 'tasks.')), ] path_opts = [ cfg.StrOpt('pybasedir', default=os.path.abspath( os.path.join(os.path.dirname(__file__), '../')), sample_default='/usr/lib/python/site-packages/kongming/kongming',
from manila.common import constants from manila import exception from manila.i18n import _ from manila import share from manila.share import driver from manila.share.drivers.qnap import api from manila import utils LOG = logging.getLogger(__name__) qnap_manila_opts = [ cfg.StrOpt('qnap_management_url', required=True, help='The URL to manage QNAP Storage.'), cfg.HostAddressOpt('qnap_share_ip', required=True, help='NAS share IP for mounting shares.'), cfg.StrOpt('qnap_nas_login', required=True, help='Username for QNAP storage.'), cfg.StrOpt('qnap_nas_password', required=True, secret=True, help='Password for QNAP storage.'), cfg.StrOpt('qnap_poolname', required=True, help='Pool within which QNAP shares must be created.'), ] CONF = cfg.CONF CONF.register_opts(qnap_manila_opts)
from oslo_utils import netutils try: import asyncio except ImportError: import trollius as asyncio from zaqar.common import decorators from zaqar.i18n import _ from zaqar.transport import base from zaqar.transport.middleware import auth from zaqar.transport.websocket import factory _WS_OPTIONS = ( cfg.HostAddressOpt('bind', default='127.0.0.1', help='Address on which the self-hosting server will ' 'listen.'), cfg.PortOpt('port', default=9000, help='Port on which the self-hosting server will listen.'), cfg.PortOpt('external-port', help='Port on which the service is provided to the user.'), cfg.HostAddressOpt('notification-bind', help='Address on which the notification server will ' 'listen.'), cfg.PortOpt('notification-port', default=0, help='Port on which the notification server will listen.'), ) _WS_GROUP = 'drivers:transport:websocket'
individual modules. It is recommended to Keep options at a single place to ensure re usability and better management of configuration options. """ from oslo_config import cfg netapp_proxy_opts = [ cfg.StrOpt('netapp_storage_family', default='ontap_cluster', help=('The storage family type used on the storage system; ' 'valid values include ontap_cluster for using ' 'clustered Data ONTAP.')), ] netapp_connection_opts = [ cfg.HostAddressOpt('netapp_server_hostname', deprecated_name='netapp_nas_server_hostname', help='The hostname (or IP address) for the storage ' 'system.'), cfg.PortOpt('netapp_server_port', help=('The TCP port to use for communication with the storage ' 'system or proxy server. If not specified, Data ONTAP ' 'drivers will use 80 for HTTP and 443 for HTTPS.')), ] netapp_transport_opts = [ cfg.StrOpt('netapp_transport_type', deprecated_name='netapp_nas_transport_type', default='http', help=('The transport protocol used when communicating with ' 'the storage system or proxy server. Valid values are ' 'http or https.')), ] netapp_basicauth_opts = [
""" import base64 import math from oslo_config import cfg from oslo_log import log from oslo_utils import units import six from manila import exception from manila.i18n import _ from manila.share import driver from manila.share.drivers.zfssa import zfssarest ZFSSA_OPTS = [ cfg.HostAddressOpt('zfssa_host', help='ZFSSA management IP address.'), cfg.HostAddressOpt('zfssa_data_ip', help='IP address for data.'), cfg.StrOpt('zfssa_auth_user', help='ZFSSA management authorized username.'), cfg.StrOpt('zfssa_auth_password', help='ZFSSA management authorized userpassword.'), cfg.StrOpt('zfssa_pool', help='ZFSSA storage pool name.'), cfg.StrOpt('zfssa_project', help='ZFSSA project name.'), cfg.StrOpt('zfssa_nas_checksum', default='fletcher4', help='Controls checksum used for data blocks.'), cfg.StrOpt('zfssa_nas_compression', default='off', help='Data compression-off, lzjb, gzip-2, gzip, gzip-9.'), cfg.StrOpt('zfssa_nas_logbias', default='latency',
LOG = log.getLogger(__name__) service_opts = [ cfg.IntOpt('report_interval', default=10, help='Seconds between nodes reporting state to datastore.'), cfg.IntOpt('periodic_interval', default=60, help='Seconds between running periodic tasks.'), cfg.IntOpt('periodic_fuzzy_delay', default=60, help='Range of seconds to randomly delay when starting the ' 'periodic task scheduler to reduce stampeding. ' '(Disable by setting to 0)'), cfg.HostAddressOpt('osapi_share_listen', default="::", help='IP address for OpenStack Share API to listen ' 'on.'), cfg.PortOpt('osapi_share_listen_port', default=8786, help='Port for OpenStack Share API to listen on.'), cfg.IntOpt('osapi_share_workers', default=1, help='Number of workers for OpenStack Share API service.'), cfg.BoolOpt('osapi_share_use_ssl', default=False, help='Wraps the socket in a SSL context if True is set. ' 'A certificate file and key file must be specified.'), ] CONF = cfg.CONF CONF.register_opts(service_opts)
cfg.ListOpt('osapi_volume_ext_list', default=[], help='Specify list of extensions to load when using osapi_' 'volume_extension option with cinder.api.contrib.' 'select_extensions'), cfg.MultiStrOpt('osapi_volume_extension', default=['cinder.api.contrib.standard_extensions'], help='osapi volume extension to load'), cfg.StrOpt('volume_api_class', default='cinder.volume.api.API', help='The full class name of the volume API class to use'), ] global_opts = [ cfg.HostAddressOpt('my_ip', sample_default='<HOST_IP_ADDRESS>', default=netutils.get_my_ipv4(), help='IP address of this host'), cfg.StrOpt('volume_manager', default='cinder.volume.manager.VolumeManager', help='Full class name for the Manager for volume'), cfg.StrOpt('scheduler_manager', default='cinder.scheduler.manager.SchedulerManager', help='Full class name for the Manager for scheduler'), cfg.HostAddressOpt('host', sample_default='localhost', default=socket.gethostname(), help='Name of this node. This can be an opaque ' 'identifier. It is not necessarily a host name, ' 'FQDN, or IP address.'), # NOTE(vish): default to nova for compatibility with nova installs cfg.StrOpt('storage_availability_zone',
from osprofiler import opts as profiler_opts import routes import routes.middleware import six import webob.dec import webob.exc from webob import multidict from glare.common import exception as glare_exc from glare.common import utils from glare import i18n from glare.i18n import _ bind_opts = [ cfg.HostAddressOpt('bind_host', default='0.0.0.0', help=_('Address to bind the server. Useful when ' 'selecting a particular network interface.')), cfg.PortOpt('bind_port', help=_('The port on which the server will listen.')), ] socket_opts = [ cfg.IntOpt('backlog', default=4096, help=_('The backlog value that will be used when creating the ' 'TCP listener socket.')), cfg.IntOpt('tcp_keepidle', default=600, help=_('The value for the socket option TCP_KEEPIDLE. This is ' 'the time in seconds that the connection must be idle ' 'before TCP starts sending keepalive probes.')),
from __future__ import absolute_import import os import socket from oslo_config import cfg from oslo_db import options as db_options from oslo_log import log as logging from oslo_middleware import cors from congress import version LOG = logging.getLogger(__name__) core_opts = [ cfg.HostAddressOpt('bind_host', default='0.0.0.0', help="The host IP to bind to"), cfg.PortOpt('bind_port', default=1789, help="The port to bind to"), cfg.IntOpt('max_simultaneous_requests', default=1024, help="Thread pool size for eventlet."), cfg.BoolOpt('tcp_keepalive', default=False, help='Set this to true to enable TCP_KEEALIVE socket option ' 'on connections received by the API server.'), cfg.IntOpt('tcp_keepidle', default=600, help='Sets the value of TCP_KEEPIDLE in seconds for each ' 'server socket. Only applies if tcp_keepalive is ' 'true. Not supported on OS X.'), cfg.IntOpt('api_workers', default=1, help='The number of worker processes to serve the congress ' 'API application.'),
import msgpack from oslo_config import cfg from oslo_log import log import oslo_messaging from oslo_utils import netutils from oslo_utils import units from ceilometer import dispatcher from ceilometer.i18n import _ from ceilometer import messaging from ceilometer.publisher import utils as publisher_utils from ceilometer import utils OPTS = [ cfg.HostAddressOpt('udp_address', default='0.0.0.0', help='Address to which the UDP socket is bound. Set to ' 'an empty string to disable.'), cfg.PortOpt('udp_port', default=4952, help='Port to which the UDP socket is bound.'), cfg.IntOpt('batch_size', default=1, help='Number of notification messages to wait before ' 'dispatching them'), cfg.IntOpt('batch_timeout', help='Number of seconds to wait before dispatching samples ' 'when batch_size is not reached (None means indefinitely)'), cfg.IntOpt('workers', default=1, min=1, deprecated_group='DEFAULT',
from oslo_config import cfg opts = [ cfg.HostAddressOpt('host_ip', default='0.0.0.0'), cfg.PortOpt('port', default=8081), cfg.IntOpt('max_limit', default=1000), cfg.StrOpt('public_endpoint'), cfg.IntOpt('api_workers'), cfg.BoolOpt('enable_ssl_api', default=False), cfg.BoolOpt('auth_enable', default=True) ] api_group = cfg.OptGroup('api', title='API Options') def register_opts(conf): conf.register_opts(opts, group=api_group) conf.register_cli_opts(opts, group=api_group)
* False Related options: * enable_v2_api * data_api """)), cfg.HostAddressOpt('pydev_worker_debug_host', sample_default='localhost', help=_(""" Host address of the pydev server. Provide a string value representing the hostname or IP of the pydev server to use for debugging. The pydev server listens for debug connections on this address, facilitating remote debugging in Glance. Possible values: * Valid hostname * Valid IP address Related options: * None """)), cfg.PortOpt('pydev_worker_debug_port', default=5678, help=_(""" Port number that the pydev server will listen on. Provide a port number to bind the pydev server to. The pydev process accepts debug connections on this port and facilitates
from glance.common import utils from glance import i18n from glance.i18n import _, _LE, _LI, _LW bind_opts = [ cfg.HostAddressOpt('bind_host', default='0.0.0.0', help=_(""" IP address to bind the glance servers to. Provide an IP address to bind the glance server to. The default value is ``0.0.0.0``. Edit this option to enable the server to listen on one particular IP address on the network card. This facilitates selection of a particular network interface for the server. Possible values: * A valid IPv4 address * A valid IPv6 address Related options: * None """)), cfg.PortOpt('bind_port', help=_(""" Port number on which the server will listen. Provide a valid port number to bind the server's socket to. This
from oslo_config import cfg from oslo_service import service as _service import testtools from nova import exception from nova import manager from nova import objects from nova.objects import base as obj_base from nova import rpc from nova import service from nova import test from nova.tests.unit import utils test_service_opts = [ cfg.HostAddressOpt("test_service_listen", default='127.0.0.1', help="Host to bind test service to"), cfg.IntOpt("test_service_listen_port", default=0, help="Port number to bind test service to"), ] CONF = cfg.CONF CONF.register_opts(test_service_opts) class FakeManager(manager.Manager): """Fake manager for tests.""" def test_method(self): return 'manager'
help="ID of neutron network used to communicate with admin network," " to create additional admin export locations on."), cfg.StrOpt( "admin_subnet_id", help="ID of neutron subnet used to communicate with admin network," " to create additional admin export locations on. " "Related to 'admin_network_id'."), ] no_share_servers_handling_mode_opts = [ cfg.StrOpt("service_instance_name_or_id", help="Name or ID of service instance in Nova to use for share " "exports. Used only when share servers handling is disabled."), cfg.HostAddressOpt( "service_net_name_or_ip", help="Can be either name of network that is used by service " "instance within Nova to get IP address or IP address itself " "(either IPv4 or IPv6) for managing shares there. " "Used only when share servers handling is disabled."), cfg.HostAddressOpt( "tenant_net_name_or_ip", help="Can be either name of network that is used by service " "instance within Nova to get IP address or IP address itself " "(either IPv4 or IPv6) for exporting shares. " "Used only when share servers handling is disabled."), ] common_opts = [ cfg.StrOpt( "service_instance_user", help="User in service instance that will be used for authentication."), cfg.StrOpt("service_instance_password",
trusted_opts = [ cfg.HostAddressOpt("attestation_server", help=""" The host to use as the attestation server. Cloud computing pools can involve thousands of compute nodes located at different geographical locations, making it difficult for cloud providers to identify a node's trustworthiness. When using the Trusted filter, users can request that their VMs only be placed on nodes that have been verified by the attestation server specified in this option. This option is only used by the FilterScheduler and its subclasses; if you use a different scheduler, this option has no effect. Also note that this setting only affects scheduling if the 'TrustedFilter' filter is enabled. Possible values: * A string representing the host name or IP address of the attestation server, or an empty string. Related options: * attestation_server_ca_file * attestation_port * attestation_api_url * attestation_auth_blob * attestation_auth_timeout * attestation_insecure_ssl """), cfg.StrOpt("attestation_server_ca_file", help="""
help=_('Enables debugger. Note that using this option changes how the ' 'eventlet library is used to support async IO. This could result ' 'in failures that do not occur under normal operation. ' 'Use at your own risk.') ) auth_type_opt = cfg.StrOpt( 'auth_type', default='keystone', help=_('Authentication type (valid options: keystone, keycloak-oidc)') ) api_opts = [ cfg.HostAddressOpt( 'host', default='0.0.0.0', help='Mistral API server host' ), cfg.PortOpt('port', default=8989, help='Mistral API server port'), cfg.BoolOpt( 'allow_action_execution_deletion', default=False, help=_('Enables the ability to delete action_execution which ' 'has no relationship with workflows.') ), cfg.BoolOpt( 'enable_ssl_api', default=False, help=_('Enable the integrated stand-alone API to service requests' 'via HTTPS instead of HTTP.') ),
from keystoneauth1 import loading as ks_loading from oslo_config import cfg from oslo_log import log as logging from oslo_middleware import cors from murano.common.i18n import _ from murano import version paste_deploy_opts = [ cfg.StrOpt('flavor', help='Paste flavor'), cfg.StrOpt('config_file', help='Path to Paste config file'), ] bind_opts = [ cfg.HostAddressOpt('bind-host', default='0.0.0.0', help='Address to bind the Murano API server to.'), cfg.PortOpt('bind-port', default=8082, help='Port the bind the Murano API server to.'), ] rabbit_opts = [ cfg.HostAddressOpt('host', default='localhost', help='The RabbitMQ broker address which used for ' 'communication with Murano guest agents.'), cfg.PortOpt('port', default=5672, help='The RabbitMQ broker port.'), cfg.StrOpt('login', default='guest', help='The RabbitMQ login.'), cfg.StrOpt('password', default='guest',
_STORAGE_OPTS = list(itertools.chain(gnocchi.storage.OPTS, gnocchi.storage.ceph.OPTS, gnocchi.storage.file.OPTS, gnocchi.storage.swift.OPTS, gnocchi.common.redis.OPTS, gnocchi.storage.s3.OPTS)) _INCOMING_OPTS = copy.deepcopy(_STORAGE_OPTS) for opt in _INCOMING_OPTS: opt.default = '${storage.%s}' % opt.name API_OPTS = ( cfg.HostAddressOpt('host', default="0.0.0.0", help="Host to listen on"), cfg.PortOpt('port', default=8041, help="Port to listen on"), ) _cli_options = ( cfg.BoolOpt( 'debug', short='d', default=False, help='If set to true, the logging level will be set to DEBUG.'), cfg.BoolOpt( 'verbose',