2013-04-20 21:35:37 -07:00
|
|
|
[metadata]
|
|
|
|
name = cinder
|
|
|
|
summary = OpenStack Block Storage
|
|
|
|
description-file =
|
|
|
|
README.rst
|
|
|
|
author = OpenStack
|
|
|
|
author-email = openstack-dev@lists.openstack.org
|
2017-07-14 15:12:29 +07:00
|
|
|
home-page = https://docs.openstack.org/cinder/latest/
|
2013-04-20 21:35:37 -07:00
|
|
|
classifier =
|
|
|
|
Environment :: OpenStack
|
|
|
|
Intended Audience :: Information Technology
|
|
|
|
Intended Audience :: System Administrators
|
|
|
|
License :: OSI Approved :: Apache Software License
|
|
|
|
Operating System :: POSIX :: Linux
|
|
|
|
Programming Language :: Python
|
|
|
|
Programming Language :: Python :: 2
|
|
|
|
Programming Language :: Python :: 2.7
|
2017-06-27 15:54:48 +05:30
|
|
|
Programming Language :: Python :: 3
|
|
|
|
Programming Language :: Python :: 3.5
|
2013-04-20 21:35:37 -07:00
|
|
|
|
|
|
|
[global]
|
|
|
|
setup-hooks =
|
|
|
|
pbr.hooks.setup_hook
|
|
|
|
|
|
|
|
[files]
|
2017-09-21 14:02:21 +01:00
|
|
|
data_files =
|
|
|
|
etc/cinder =
|
|
|
|
etc/cinder/api-paste.ini
|
|
|
|
etc/cinder/rootwrap.conf
|
|
|
|
etc/cinder/rootwrap.d = etc/cinder/rootwrap.d/*
|
2013-04-20 21:35:37 -07:00
|
|
|
packages =
|
|
|
|
cinder
|
|
|
|
|
|
|
|
[entry_points]
|
|
|
|
cinder.scheduler.filters =
|
2015-11-24 15:42:17 +01:00
|
|
|
AvailabilityZoneFilter = cinder.scheduler.filters.availability_zone_filter:AvailabilityZoneFilter
|
|
|
|
CapabilitiesFilter = cinder.scheduler.filters.capabilities_filter:CapabilitiesFilter
|
2013-04-20 21:35:37 -07:00
|
|
|
CapacityFilter = cinder.scheduler.filters.capacity_filter:CapacityFilter
|
2014-01-28 14:23:04 +08:00
|
|
|
DifferentBackendFilter = cinder.scheduler.filters.affinity_filter:DifferentBackendFilter
|
2014-12-08 06:52:18 -08:00
|
|
|
DriverFilter = cinder.scheduler.filters.driver_filter:DriverFilter
|
2015-11-24 15:42:17 +01:00
|
|
|
JsonFilter = cinder.scheduler.filters.json_filter:JsonFilter
|
|
|
|
RetryFilter = cinder.scheduler.filters.ignore_attempted_hosts_filter:IgnoreAttemptedHostsFilter
|
2014-01-28 14:23:04 +08:00
|
|
|
SameBackendFilter = cinder.scheduler.filters.affinity_filter:SameBackendFilter
|
2014-12-05 16:09:10 +01:00
|
|
|
InstanceLocalityFilter = cinder.scheduler.filters.instance_locality_filter:InstanceLocalityFilter
|
2013-04-20 21:35:37 -07:00
|
|
|
cinder.scheduler.weights =
|
Add AllocatedCapacityWeigher
AllocatedCapacityWeigher is a weigher that weigh hosts by their
allocated capacity. The main purpose of this weigher is to simulate
the SimpleScheduler's behavior, which sorts hosts by the size of
all volumes on them. So by allocated capacity, it equals to the
sum of size of all volumes on target host.
In order to keep track of 'allocated' capacity, host state is updated
to add a 'allocated_capacity_gb' attribute to record the value, which
means each back-end must report one extra stats to scheduler.
Fortunately, the 'allocated' capacity we are interested in here is
pure Cinder level capacity, the volume manager can take all the burden
to calculate this value without having to query back-ends. The volume
manager does the initial calculation in init_host() by the time when it
has to query all existing volumes from DB for ensure_export(). After
initial calculation, volume manager/scheduler will keep track of every
new request that changes 'allocated_capacity' and make sure this value
is up to date.
!DriverImpact! Cinder driver developers, please read on:
This patch contains a change that might IMPACT volume drivers: volume
manager now uses 'stats' attribute to save 'allocated_capacity_gb'.
And this information will be merged with those stats drivers provide
as a whole for scheduler to consume. If you plan to report any form
of allocated space other than the apparent Cinder level value, (e.g.
actual capacity allocated), Please choose a key name other than
'allocated_capacity_gb', otherwise it will *OVERWRITE* the value volume
manager has calculated and confuse scheduler.
Partially implements bp: deprecate-chance-and-simple-schedulers
Change-Id: I306230b8973c2d1ad77bcab14ccde68e997ea816
2013-12-11 21:46:38 +08:00
|
|
|
AllocatedCapacityWeigher = cinder.scheduler.weights.capacity:AllocatedCapacityWeigher
|
2013-04-20 21:35:37 -07:00
|
|
|
CapacityWeigher = cinder.scheduler.weights.capacity:CapacityWeigher
|
2013-11-27 10:26:03 +00:00
|
|
|
ChanceWeigher = cinder.scheduler.weights.chance:ChanceWeigher
|
2014-12-08 06:52:18 -08:00
|
|
|
GoodnessWeigher = cinder.scheduler.weights.goodness:GoodnessWeigher
|
2014-06-25 10:40:38 +08:00
|
|
|
VolumeNumberWeigher = cinder.scheduler.weights.volume_number:VolumeNumberWeigher
|
2015-08-13 10:17:36 -05:00
|
|
|
oslo.config.opts =
|
|
|
|
cinder = cinder.opts:list_opts
|
2016-03-01 11:31:40 -08:00
|
|
|
oslo.config.opts.defaults =
|
2016-03-11 16:06:11 -05:00
|
|
|
cinder = cinder.common.config:set_middleware_defaults
|
2017-09-23 11:05:31 +08:00
|
|
|
oslo.policy.enforcer =
|
|
|
|
cinder = cinder.policy:get_enforcer
|
|
|
|
oslo.policy.policies =
|
|
|
|
# The sample policies will be ordered by entry point and then by list
|
|
|
|
# returned from that entry point. If more control is desired split out each
|
|
|
|
# list_rules method into a separate entry point rather than using the
|
|
|
|
# aggregate method.
|
|
|
|
cinder = cinder.policies:list_rules
|
2014-01-17 11:28:17 +01:00
|
|
|
console_scripts =
|
2014-06-20 00:30:36 -04:00
|
|
|
cinder-api = cinder.cmd.api:main
|
|
|
|
cinder-backup = cinder.cmd.backup:main
|
|
|
|
cinder-manage = cinder.cmd.manage:main
|
2015-02-03 13:19:40 -08:00
|
|
|
cinder-rootwrap = oslo_rootwrap.cmd:main
|
2014-06-20 00:30:36 -04:00
|
|
|
cinder-rtstool = cinder.cmd.rtstool:main
|
|
|
|
cinder-scheduler = cinder.cmd.scheduler:main
|
|
|
|
cinder-volume = cinder.cmd.volume:main
|
|
|
|
cinder-volume-usage-audit = cinder.cmd.volume_usage_audit:main
|
2015-09-28 15:35:58 +03:00
|
|
|
wsgi_scripts =
|
|
|
|
cinder-wsgi = cinder.wsgi.wsgi:initialize_application
|
2014-02-07 12:20:44 +01:00
|
|
|
# These are for backwards compat with Havana notification_driver configuration values
|
2015-03-02 21:31:46 -06:00
|
|
|
oslo_messaging.notify.drivers =
|
|
|
|
cinder.openstack.common.notifier.log_notifier = oslo_messaging.notify._impl_log:LogDriver
|
|
|
|
cinder.openstack.common.notifier.no_op_notifier = oslo_messaging.notify._impl_noop:NoOpDriver
|
2015-12-18 20:48:54 +08:00
|
|
|
cinder.openstack.common.notifier.rpc_notifier2 = oslo_messaging.notify.messaging:MessagingV2Driver
|
|
|
|
cinder.openstack.common.notifier.rpc_notifier = oslo_messaging.notify.messaging:MessagingDriver
|
2015-03-02 21:31:46 -06:00
|
|
|
cinder.openstack.common.notifier.test_notifier = oslo_messaging.notify._impl_test:TestDriver
|
2015-03-10 20:15:00 -05:00
|
|
|
# These are for backwards compatibility with Juno middleware configurations
|
|
|
|
oslo_middleware =
|
|
|
|
cinder.openstack.common.middleware.request_id = oslo_middleware.request_id
|
2013-04-20 21:35:37 -07:00
|
|
|
|
2014-10-29 15:52:54 +02:00
|
|
|
cinder.database.migration_backend =
|
2015-02-03 13:19:40 -08:00
|
|
|
sqlalchemy = oslo_db.sqlalchemy.migration
|
2014-10-29 15:52:54 +02:00
|
|
|
|
2012-05-03 10:48:26 -07:00
|
|
|
|
|
|
|
[egg_info]
|
2016-01-31 16:03:58 -06:00
|
|
|
tag_build =
|
2012-05-03 10:48:26 -07:00
|
|
|
tag_date = 0
|
|
|
|
tag_svn_revision = 0
|
|
|
|
|
|
|
|
[compile_catalog]
|
|
|
|
directory = cinder/locale
|
2017-03-01 10:49:48 +01:00
|
|
|
domain = cinder
|
2012-05-03 10:48:26 -07:00
|
|
|
|
|
|
|
[update_catalog]
|
|
|
|
domain = cinder
|
|
|
|
output_dir = cinder/locale
|
|
|
|
input_file = cinder/locale/cinder.pot
|
|
|
|
|
|
|
|
[extract_messages]
|
|
|
|
keywords = _ gettext ngettext l_ lazy_gettext
|
|
|
|
mapping_file = babel.cfg
|
|
|
|
output_file = cinder/locale/cinder.pot
|