components/openstack/glance/files/glance-scrubber.conf
branchs11u3-sru
changeset 6035 c9748fcc32de
parent 4072 db0cec748ec0
child 5705 1dd01efcbd26
equal deleted inserted replaced
6016:a477397bba8b 6035:c9748fcc32de
     1 [DEFAULT]
     1 [DEFAULT]
     2 # Show more verbose log output (sets INFO log level output)
     2 
     3 #verbose = False
     3 #
     4 
     4 # From glance.scrubber
     5 # Show debugging output in logs (sets DEBUG log level output)
     5 #
     6 #debug = False
     6 
     7 
     7 # Whether to allow users to specify image properties beyond what the
     8 # Log to this file. Make sure you do not set the same log file for both the API
     8 # image schema provides (boolean value)
     9 # and registry servers!
     9 #allow_additional_image_properties = true
    10 #
    10 
    11 # If `log_file` is omitted and `use_syslog` is false, then log messages are
    11 # Maximum number of image members per image. Negative values evaluate
    12 # sent to stdout as a fallback.
    12 # to unlimited. (integer value)
    13 log_file = /var/log/glance/scrubber.log
    13 #image_member_quota = 128
    14 
    14 
    15 # Send logs to syslog (/dev/log) instead of to file specified by `log_file`
    15 # Maximum number of properties allowed on an image. Negative values
    16 #use_syslog = False
    16 # evaluate to unlimited. (integer value)
    17 
    17 #image_property_quota = 128
    18 # Should we run our own loop or rely on cron/scheduler to run us
    18 
    19 daemon = True
    19 # Maximum number of tags allowed on an image. Negative values evaluate
    20 
    20 # to unlimited. (integer value)
    21 # Loop time between checking for new items to schedule for delete
    21 #image_tag_quota = 128
    22 wakeup_time = 300
    22 
    23 
    23 # Maximum number of locations allowed on an image. Negative values
    24 # Directory that the scrubber will use to remind itself of what to delete
    24 # evaluate to unlimited. (integer value)
    25 # Make sure this is also set in glance-api.conf
    25 #image_location_quota = 10
    26 scrubber_datadir = /var/lib/glance/scrubber
    26 
    27 
    27 # Python module path of data access API (string value)
    28 # Only one server in your deployment should be designated the cleanup host
    28 #data_api = glance.db.sqlalchemy.api
    29 cleanup_scrubber = False
    29 
    30 
    30 # Default value for the number of items returned by a request if not
    31 # pending_delete items older than this time are candidates for cleanup
    31 # specified explicitly in the request (integer value)
    32 cleanup_scrubber_time = 86400
    32 #limit_param_default = 25
    33 
    33 
    34 # Address to find the registry server for cleanups
    34 # Maximum permissible number of items that could be returned by a
    35 registry_host = 0.0.0.0
    35 # request (integer value)
    36 
    36 #api_limit_max = 1000
    37 # Port the registry server is listening on
    37 
    38 registry_port = 9191
    38 # Whether to include the backend image storage location in image
    39 
    39 # properties. Revealing storage location can be a security risk, so
    40 # Auth settings if using Keystone
    40 # use this setting with caution! (boolean value)
       
    41 #show_image_direct_url = false
       
    42 
       
    43 # Whether to include the backend image locations in image properties.
       
    44 # For example, if using the file system store a URL of
       
    45 # "file:///path/to/image" will be returned to the user in the
       
    46 # 'direct_url' meta-data field. Revealing storage location can be a
       
    47 # security risk, so use this setting with caution!  The overrides
       
    48 # show_image_direct_url. (boolean value)
       
    49 #show_multiple_locations = false
       
    50 
       
    51 # Maximum size of image a user can upload in bytes. Defaults to
       
    52 # 1099511627776 bytes (1 TB).WARNING: this value should only be
       
    53 # increased after careful consideration and must be set to a value
       
    54 # under 8 EB (9223372036854775808). (integer value)
       
    55 #image_size_cap = 1099511627776
       
    56 
       
    57 # Set a system wide quota for every user. This value is the total
       
    58 # capacity that a user can use across all storage systems. A value of
       
    59 # 0 means unlimited.Optional unit can be specified for the value.
       
    60 # Accepted units are B, KB, MB, GB and TB representing Bytes,
       
    61 # KiloBytes, MegaBytes, GigaBytes and TeraBytes respectively. If no
       
    62 # unit is specified then Bytes is assumed. Note that there should not
       
    63 # be any space between value and unit and units are case sensitive.
       
    64 # (string value)
       
    65 #user_storage_quota = 0
       
    66 
       
    67 # Deploy the v1 OpenStack Images API. (boolean value)
       
    68 #enable_v1_api = true
       
    69 
       
    70 # Deploy the v2 OpenStack Images API. (boolean value)
       
    71 #enable_v2_api = true
       
    72 
       
    73 # Deploy the v1 OpenStack Registry API. (boolean value)
       
    74 #enable_v1_registry = true
       
    75 
       
    76 # Deploy the v2 OpenStack Registry API. (boolean value)
       
    77 #enable_v2_registry = true
       
    78 
       
    79 # The hostname/IP of the pydev process listening for debug connections
       
    80 # (string value)
       
    81 #pydev_worker_debug_host = <None>
       
    82 
       
    83 # The port on which a pydev process is listening for connections.
       
    84 # (integer value)
       
    85 #pydev_worker_debug_port = 5678
       
    86 
       
    87 # AES key for encrypting store 'location' metadata. This includes, if
       
    88 # used, Swift or S3 credentials. Should be set to a random string of
       
    89 # length 16, 24 or 32 bytes (string value)
       
    90 #metadata_encryption_key = <None>
       
    91 
       
    92 # Digest algorithm which will be used for digital signature; the
       
    93 # default is sha1 the default in Kilo for a smooth upgrade process,
       
    94 # and it will be updated with sha256 in next release(L). Use the
       
    95 # command "openssl list-message-digest-algorithms" to get the
       
    96 # available algorithms supported by the version of OpenSSL on the
       
    97 # platform. Examples are "sha1", "sha256", "sha512", etc. (string
       
    98 # value)
       
    99 #digest_algorithm = sha1
       
   100 
       
   101 # Directory that the scrubber will use to track information about what
       
   102 # to delete. Make sure this is set in glance-api.conf and glance-
       
   103 # scrubber.conf. (string value)
       
   104 #scrubber_datadir = /var/lib/glance/scrubber
       
   105 
       
   106 # The amount of time in seconds to delay before performing a delete.
       
   107 # (integer value)
       
   108 #scrub_time = 0
       
   109 
       
   110 # A boolean that determines if the scrubber should clean up the files
       
   111 # it uses for taking data. Only one server in your deployment should
       
   112 # be designated the cleanup host. (boolean value)
       
   113 #cleanup_scrubber = false
       
   114 
       
   115 # Turn on/off delayed delete. (boolean value)
       
   116 #delayed_delete = false
       
   117 
       
   118 # Items must have a modified time that is older than this value in
       
   119 # order to be candidates for cleanup. (integer value)
       
   120 #cleanup_scrubber_time = 86400
       
   121 
       
   122 # Loop time between checking for new items to schedule for delete.
       
   123 # (integer value)
       
   124 #wakeup_time = 300
       
   125 
       
   126 # Run as a long-running process. When not specified (the default) run
       
   127 # the scrub operation once and then exits. When specified do not exit
       
   128 # and run scrub on wakeup_time interval as specified in the config.
       
   129 # (boolean value)
       
   130 daemon = true
       
   131 
       
   132 # Whether to pass through the user token when making requests to the
       
   133 # registry. (boolean value)
       
   134 #use_user_token = true
       
   135 
       
   136 # The administrators user name. If "use_user_token" is not in effect,
       
   137 # then admin credentials can be specified. (string value)
       
   138 admin_user = %SERVICE_USER%
       
   139 
       
   140 # The administrators password. If "use_user_token" is not in effect,
       
   141 # then admin credentials can be specified. (string value)
       
   142 admin_password = %SERVICE_PASSWORD%
       
   143 
       
   144 # The tenant name of the administrative user. If "use_user_token" is
       
   145 # not in effect, then admin tenant name can be specified. (string
       
   146 # value)
       
   147 admin_tenant_name = %SERVICE_TENANT_NAME%
       
   148 
       
   149 # The URL to the keystone service. If "use_user_token" is not in
       
   150 # effect and using keystone auth, then URL of keystone can be
       
   151 # specified. (string value)
    41 auth_url = http://127.0.0.1:5000/v2.0/
   152 auth_url = http://127.0.0.1:5000/v2.0/
    42 admin_tenant_name = %SERVICE_TENANT_NAME%
   153 
    43 admin_user = %SERVICE_USER%
   154 # The strategy to use for authentication. If "use_user_token" is not
    44 admin_password = %SERVICE_PASSWORD%
   155 # in effect, then auth strategy can be specified. (string value)
    45 
   156 #auth_strategy = noauth
    46 # Directory to use for lock files. Default to a temp directory
   157 
    47 # (string value). This setting needs to be the same for both
   158 # The region for the authentication service. If "use_user_token" is
    48 # glance-scrubber and glance-api.
   159 # not in effect and using keystone auth, then region name can be
    49 #lock_path=<None>
   160 # specified. (string value)
    50 
   161 #auth_region = <None>
    51 # API to use for accessing data. Default value points to sqlalchemy
   162 
    52 # package, it is also possible to use: glance.db.registry.api
   163 # Address to find the registry server. (string value)
    53 #data_api = glance.db.sqlalchemy.api
   164 #registry_host = 0.0.0.0
    54 
   165 
    55 # ================= Security Options ==========================
   166 # Port the registry server is listening on. (integer value)
    56 
   167 #registry_port = 9191
    57 # AES key for encrypting store 'location' metadata, including
   168 
    58 # -- if used -- Swift or S3 credentials
   169 #
    59 # Should be set to a random string of length 16, 24 or 32 bytes
   170 # From oslo.log
    60 #metadata_encryption_key = <16, 24 or 32 char registry metadata key>
   171 #
    61 
   172 
    62 # ================= Database Options ===============+==========
   173 # Print debugging output (set logging level to DEBUG instead of
       
   174 # default WARNING level). (boolean value)
       
   175 #debug = false
       
   176 
       
   177 # Print more verbose output (set logging level to INFO instead of
       
   178 # default WARNING level). (boolean value)
       
   179 #verbose = false
       
   180 
       
   181 # The name of a logging configuration file. This file is appended to
       
   182 # any existing logging configuration files. For details about logging
       
   183 # configuration files, see the Python logging module documentation.
       
   184 # (string value)
       
   185 # Deprecated group/name - [DEFAULT]/log_config
       
   186 #log_config_append = <None>
       
   187 
       
   188 # DEPRECATED. A logging.Formatter log message format string which may
       
   189 # use any of the available logging.LogRecord attributes. This option
       
   190 # is deprecated.  Please use logging_context_format_string and
       
   191 # logging_default_format_string instead. (string value)
       
   192 #log_format = <None>
       
   193 
       
   194 # Format string for %%(asctime)s in log records. Default: %(default)s
       
   195 # . (string value)
       
   196 #log_date_format = %Y-%m-%d %H:%M:%S
       
   197 
       
   198 # (Optional) Name of log file to output to. If no default is set,
       
   199 # logging will go to stdout. (string value)
       
   200 # Deprecated group/name - [DEFAULT]/logfile
       
   201 #log_file = <None>
       
   202 
       
   203 # (Optional) The base directory used for relative --log-file paths.
       
   204 # (string value)
       
   205 # Deprecated group/name - [DEFAULT]/logdir
       
   206 #log_dir = <None>
       
   207 
       
   208 # Use syslog for logging. Existing syslog format is DEPRECATED during
       
   209 # I, and will change in J to honor RFC5424. (boolean value)
       
   210 #use_syslog = false
       
   211 
       
   212 # (Optional) Enables or disables syslog rfc5424 format for logging. If
       
   213 # enabled, prefixes the MSG part of the syslog message with APP-NAME
       
   214 # (RFC5424). The format without the APP-NAME is deprecated in I, and
       
   215 # will be removed in J. (boolean value)
       
   216 #use_syslog_rfc_format = false
       
   217 
       
   218 # Syslog facility to receive log lines. (string value)
       
   219 #syslog_log_facility = LOG_USER
       
   220 
       
   221 # Log output to standard error. (boolean value)
       
   222 #use_stderr = true
       
   223 
       
   224 # Format string to use for log messages with context. (string value)
       
   225 #logging_context_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s
       
   226 
       
   227 # Format string to use for log messages without context. (string
       
   228 # value)
       
   229 #logging_default_format_string = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
       
   230 
       
   231 # Data to append to log format when level is DEBUG. (string value)
       
   232 #logging_debug_format_suffix = %(funcName)s %(pathname)s:%(lineno)d
       
   233 
       
   234 # Prefix each line of exception output with this format. (string
       
   235 # value)
       
   236 #logging_exception_prefix = %(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s
       
   237 
       
   238 # List of logger=LEVEL pairs. (list value)
       
   239 #default_log_levels = amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN,suds=INFO,oslo.messaging=INFO,iso8601=WARN,requests.packages.urllib3.connectionpool=WARN,urllib3.connectionpool=WARN,websocket=WARN,requests.packages.urllib3.util.retry=WARN,urllib3.util.retry=WARN,keystonemiddleware=WARN,routes.middleware=WARN,stevedore=WARN
       
   240 
       
   241 # Enables or disables publication of error events. (boolean value)
       
   242 #publish_errors = false
       
   243 
       
   244 # Enables or disables fatal status of deprecations. (boolean value)
       
   245 #fatal_deprecations = false
       
   246 
       
   247 # The format for an instance that is passed with the log message.
       
   248 # (string value)
       
   249 #instance_format = "[instance: %(uuid)s] "
       
   250 
       
   251 # The format for an instance UUID that is passed with the log message.
       
   252 # (string value)
       
   253 #instance_uuid_format = "[instance: %(uuid)s] "
       
   254 
    63 
   255 
    64 [database]
   256 [database]
    65 
   257 
    66 # The SQLAlchemy connection string used to connect to the
   258 #
    67 # database (string value)
   259 # From oslo.db
    68 connection=mysql://%SERVICE_USER%:%SERVICE_PASSWORD%@localhost/glance
   260 #
    69 
   261 
    70 # The SQLAlchemy connection string used to connect to the
   262 # The file name to use with SQLite. (string value)
    71 # slave database (string value)
   263 # Deprecated group/name - [DEFAULT]/sqlite_db
    72 #slave_connection=
   264 #sqlite_db = oslo.sqlite
    73 
   265 
    74 # timeout before idle sql connections are reaped (integer
   266 # If True, SQLite uses synchronous mode. (boolean value)
    75 # value)
   267 # Deprecated group/name - [DEFAULT]/sqlite_synchronous
    76 #idle_timeout=3600
   268 #sqlite_synchronous = true
    77 
   269 
    78 # Minimum number of SQL connections to keep open in a pool
   270 # The back end to use for the database. (string value)
       
   271 # Deprecated group/name - [DEFAULT]/db_backend
       
   272 #backend = sqlalchemy
       
   273 
       
   274 # The SQLAlchemy connection string to use to connect to the database.
       
   275 # (string value)
       
   276 # Deprecated group/name - [DEFAULT]/sql_connection
       
   277 # Deprecated group/name - [DATABASE]/sql_connection
       
   278 # Deprecated group/name - [sql]/connection
       
   279 connection = mysql://%SERVICE_USER%:%SERVICE_PASSWORD%@localhost/glance
       
   280 
       
   281 # The SQLAlchemy connection string to use to connect to the slave
       
   282 # database. (string value)
       
   283 #slave_connection = <None>
       
   284 
       
   285 # The SQL mode to be used for MySQL sessions. This option, including
       
   286 # the default, overrides any server-set SQL mode. To use whatever SQL
       
   287 # mode is set by the server configuration, set this to no value.
       
   288 # Example: mysql_sql_mode= (string value)
       
   289 #mysql_sql_mode = TRADITIONAL
       
   290 
       
   291 # Timeout before idle SQL connections are reaped. (integer value)
       
   292 # Deprecated group/name - [DEFAULT]/sql_idle_timeout
       
   293 # Deprecated group/name - [DATABASE]/sql_idle_timeout
       
   294 # Deprecated group/name - [sql]/idle_timeout
       
   295 #idle_timeout = 3600
       
   296 
       
   297 # Minimum number of SQL connections to keep open in a pool. (integer
       
   298 # value)
       
   299 # Deprecated group/name - [DEFAULT]/sql_min_pool_size
       
   300 # Deprecated group/name - [DATABASE]/sql_min_pool_size
       
   301 #min_pool_size = 1
       
   302 
       
   303 # Maximum number of SQL connections to keep open in a pool. (integer
       
   304 # value)
       
   305 # Deprecated group/name - [DEFAULT]/sql_max_pool_size
       
   306 # Deprecated group/name - [DATABASE]/sql_max_pool_size
       
   307 #max_pool_size = <None>
       
   308 
       
   309 # Maximum number of database connection retries during startup. Set to
       
   310 # -1 to specify an infinite retry count. (integer value)
       
   311 # Deprecated group/name - [DEFAULT]/sql_max_retries
       
   312 # Deprecated group/name - [DATABASE]/sql_max_retries
       
   313 #max_retries = 10
       
   314 
       
   315 # Interval between retries of opening a SQL connection. (integer
       
   316 # value)
       
   317 # Deprecated group/name - [DEFAULT]/sql_retry_interval
       
   318 # Deprecated group/name - [DATABASE]/reconnect_interval
       
   319 #retry_interval = 10
       
   320 
       
   321 # If set, use this value for max_overflow with SQLAlchemy. (integer
       
   322 # value)
       
   323 # Deprecated group/name - [DEFAULT]/sql_max_overflow
       
   324 # Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow
       
   325 #max_overflow = <None>
       
   326 
       
   327 # Verbosity of SQL debugging information: 0=None, 100=Everything.
    79 # (integer value)
   328 # (integer value)
    80 #min_pool_size=1
   329 # Deprecated group/name - [DEFAULT]/sql_connection_debug
    81 
   330 #connection_debug = 0
    82 # Maximum number of SQL connections to keep open in a pool
   331 
       
   332 # Add Python stack traces to SQL as comment strings. (boolean value)
       
   333 # Deprecated group/name - [DEFAULT]/sql_connection_trace
       
   334 #connection_trace = false
       
   335 
       
   336 # If set, use this value for pool_timeout with SQLAlchemy. (integer
       
   337 # value)
       
   338 # Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout
       
   339 #pool_timeout = <None>
       
   340 
       
   341 # Enable the experimental use of database reconnect on connection
       
   342 # lost. (boolean value)
       
   343 #use_db_reconnect = false
       
   344 
       
   345 # Seconds between retries of a database transaction. (integer value)
       
   346 #db_retry_interval = 1
       
   347 
       
   348 # If True, increases the interval between retries of a database
       
   349 # operation up to db_max_retry_interval. (boolean value)
       
   350 #db_inc_retry_interval = true
       
   351 
       
   352 # If db_inc_retry_interval is set, the maximum seconds between retries
       
   353 # of a database operation. (integer value)
       
   354 #db_max_retry_interval = 10
       
   355 
       
   356 # Maximum retries in case of connection error or deadlock error before
       
   357 # error is raised. Set to -1 to specify an infinite retry count.
    83 # (integer value)
   358 # (integer value)
    84 #max_pool_size=<None>
   359 #db_max_retries = 20
    85 
   360 
    86 # maximum db connection retries during startup. (setting -1
   361 #
    87 # implies an infinite retry count) (integer value)
   362 # From oslo.db.concurrency
    88 #max_retries=10
   363 #
    89 
   364 
    90 # interval between retries of opening a sql connection
   365 # Enable the experimental use of thread pooling for all DB API calls
    91 # (integer value)
   366 # (boolean value)
    92 #retry_interval=10
   367 # Deprecated group/name - [DEFAULT]/dbapi_use_tpool
    93 
   368 #use_tpool = false
    94 # If set, use this value for max_overflow with sqlalchemy
   369 
    95 # (integer value)
   370 
    96 #max_overflow=<None>
   371 [oslo_concurrency]
    97 
   372 
    98 # Verbosity of SQL debugging information. 0=None,
   373 #
    99 # 100=Everything (integer value)
   374 # From oslo.concurrency
   100 #connection_debug=0
   375 #
   101 
   376 
   102 # Add python stack traces to SQL as comment strings (boolean
   377 # Enables or disables inter-process locks. (boolean value)
   103 # value)
   378 # Deprecated group/name - [DEFAULT]/disable_process_locking
   104 #connection_trace=false
   379 #disable_process_locking = false
   105 
   380 
   106 # If set, use this value for pool_timeout with sqlalchemy
   381 # Directory to use for lock files.  For security, the specified
   107 # (integer value)
   382 # directory should only be writable by the user running the processes
   108 #pool_timeout=<None>
   383 # that need locking. Defaults to environment variable OSLO_LOCK_PATH.
   109 
   384 # If external locks are used, a lock path must be set. (string value)
   110 [glance_store]
   385 # Deprecated group/name - [DEFAULT]/lock_path
   111 
   386 #lock_path = <None>
   112 # ============ Filesystem Store Options ========================
   387 
   113 
   388 
   114 # Directory that the Filesystem backend store
   389 [oslo_policy]
   115 # writes image data to
   390 
   116 filesystem_store_datadir = /var/lib/glance/images/
   391 #
       
   392 # From oslo.policy
       
   393 #
       
   394 
       
   395 # The JSON file that defines policies. (string value)
       
   396 # Deprecated group/name - [DEFAULT]/policy_file
       
   397 #policy_file = policy.json
       
   398 
       
   399 # Default rule. Enforced when a requested rule is not found. (string
       
   400 # value)
       
   401 # Deprecated group/name - [DEFAULT]/policy_default_rule
       
   402 #policy_default_rule = default
       
   403 
       
   404 # Directories where policy configuration files are stored. They can be
       
   405 # relative to any directory in the search path defined by the
       
   406 # config_dir option, or absolute paths. The file defined by
       
   407 # policy_file must exist for these directories to be searched.
       
   408 # Missing or empty directories are ignored. (multi valued)
       
   409 # Deprecated group/name - [DEFAULT]/policy_dirs
       
   410 #policy_dirs = policy.d