Advertisement
Guest User

Untitled

a guest
May 1st, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.29 KB | None | 0 0
  1. [DEFAULT]
  2. # Show more verbose log output (sets INFO log level output)
  3. #verbose=True
  4. verbose=True
  5.  
  6. # Show debugging output in logs (sets DEBUG log level output)
  7. #debug=False
  8. debug=False
  9.  
  10. # Which backend scheme should Glance use by default is not specified
  11. # in a request to add a new image to Glance? Known schemes are determined
  12. # by the known_stores option below.
  13. # Default: 'file'
  14. #default_store=file
  15.  
  16. # Maximum image size (in bytes) that may be uploaded through the
  17. # Glance API server. Defaults to 1 TB.
  18. # WARNING: this value should only be increased after careful consideration
  19. # and must be set to a value under 8 EB (9223372036854775808).
  20. #image_size_cap=1099511627776
  21.  
  22. # Address to bind the API server
  23. #bind_host=0.0.0.0
  24. bind_host=10.133.210.153
  25.  
  26. # Port the bind the API server to
  27. #bind_port=9292
  28. bind_port=9292
  29.  
  30. # Log to this file. Make sure you do not set the same log file for both the API
  31. # and registry servers!
  32. #
  33. # If `log_file` is omitted and `use_syslog` is false, then log messages are
  34. # sent to stdout as a fallback.
  35. #log_file=/var/log/glance/api.log
  36. log_file=/var/log/glance/api.log
  37.  
  38. # Backlog requests when creating socket
  39. 1,1 Top
  40. backlog=4096
  41.  
  42. # TCP_KEEPIDLE value in seconds when creating socket.
  43. # Not supported on OS X.
  44. #tcp_keepidle=600
  45.  
  46. # API to use for accessing data. Default value points to sqlalchemy
  47. # package, it is also possible to use: glance.db.registry.api
  48. # data_api = glance.db.sqlalchemy.api
  49.  
  50. # The number of child process workers that will be
  51. # created to service API requests. The default will be
  52. # equal to the number of CPUs available. (integer value)
  53. #workers=4
  54. workers=32
  55.  
  56. # Maximum line size of message headers to be accepted.
  57. # max_header_line may need to be increased when using large tokens
  58. # (typically those generated by the Keystone v3 API with big service
  59. # catalogs)
  60. # max_header_line = 16384
  61.  
  62. # Role used to identify an authenticated user as administrator
  63. #admin_role=admin
  64.  
  65. # Allow unauthenticated users to access the API with read-only
  66. # privileges. This only applies when using ContextMiddleware.
  67. #allow_anonymous_access=False
  68.  
  69. # Allow access to version 1 of glance api
  70. #enable_v1_api=True
  71.  
  72. # Allow access to version 2 of glance api
  73. #enable_v2_api=True
  74.  
  75. # Return the URL that references where the data is stored on
  76. # the backend storage system. For example, if using the
  77. # file system store a URL of 'file:///path/to/image' will
  78. 77,1 5%
  79. #show_image_direct_url=False
  80. show_image_direct_url=False
  81.  
  82. # Send headers containing user and tenant information when making requests to
  83. # the v1 glance registry. This allows the registry to function as if a user is
  84. # authenticated without the need to authenticate a user itself using the
  85. # auth_token middleware.
  86. # The default value is false.
  87. #send_identity_headers=False
  88.  
  89. # Supported values for the 'container_format' image attribute
  90. #container_formats=ami,ari,aki,bare,ovf,ova
  91.  
  92. # Supported values for the 'disk_format' image attribute
  93. #disk_formats=ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso
  94.  
  95. # Directory to use for lock files. Default to a temp directory
  96. # (string value). This setting needs to be the same for both
  97. # glance-scrubber and glance-api.
  98. #lock_path=<None>
  99.  
  100. # Property Protections config file
  101. # This file contains the rules for property protections and the roles/policies
  102. # associated with it.
  103. # If this config value is not specified, by default, property protections
  104. # won't be enforced.
  105. # If a value is specified and the file is not found, then the glance-api
  106. # service will not start.
  107. #property_protection_file =
  108.  
  109. # Specify whether 'roles' or 'policies' are used in the
  110. # property_protection_file.
  111. # The default value for property_protection_rule_format is 'roles'.
  112. #property_protection_rule_format=roles
  113.  
  114. # This value sets what strategy will be used to determine the image location
  115. # order. Currently two strategies are packaged with Glance 'location_order'
  116. # and 'store_type'.
  117. # ================= Syslog Options ============================
  118.  
  119. # Send logs to syslog (/dev/log) instead of to file specified
  120. # by `log_file`
  121. #use_syslog=False
  122. use_syslog=False
  123.  
  124. # Facility to use. If unset defaults to LOG_USER.
  125. #syslog_log_facility=LOG_LOCAL0
  126.  
  127. # ================= SSL Options ===============================
  128.  
  129. # Certificate file to use when starting API server securely
  130. #cert_file=/path/to/certfile
  131.  
  132. # Private key file to use when starting API server securely
  133. #key_file=/path/to/keyfile
  134.  
  135. # CA certificate file to use to verify connecting clients
  136. #ca_file=/path/to/cafile
  137.  
  138. # ================= Security Options ==========================
  139.  
  140. # AES key for encrypting store 'location' metadata, including
  141. # -- if used -- Swift or S3 credentials
  142. # Should be set to a random string of length 16, 24 or 32 bytes
  143. #metadata_encryption_key=<16, 24 or 32 char registry metadata key>
  144.  
  145. # ============ Registry Options ===============================
  146.  
  147. # Address to find the registry server
  148. #registry_host=0.0.0.0
  149. registry_host=10.133.210.153
  150.  
  151. # Port the registry server is listening on
  152. #registry_port=9191
  153. registry_port=9191
  154.  
  155. 157,0-1 17%
  156. # What protocol to use when connecting to the registry server?
  157. # Set to https for secure HTTP communication
  158. #registry_client_protocol=http
  159. registry_client_protocol=http
  160.  
  161. # The path to the key file to use in SSL connections to the
  162. # registry server, if any. Alternately, you may set the
  163. # GLANCE_CLIENT_KEY_FILE environ variable to a filepath of the key file
  164. #registry_client_key_file=/path/to/key/file
  165.  
  166. # The path to the cert file to use in SSL connections to the
  167. # registry server, if any. Alternately, you may set the
  168. # GLANCE_CLIENT_CERT_FILE environ variable to a filepath of the cert file
  169. #registry_client_cert_file=/path/to/cert/file
  170.  
  171. # The path to the certifying authority cert file to use in SSL connections
  172. # to the registry server, if any. Alternately, you may set the
  173. # GLANCE_CLIENT_CA_FILE environ variable to a filepath of the CA cert file
  174. #registry_client_ca_file=/path/to/ca/file
  175.  
  176. # When using SSL in connections to the registry server, do not require
  177. # validation via a certifying authority. This is the registry's equivalent of
  178. # specifying --insecure on the command line using glanceclient for the API
  179. # Default: False
  180. #registry_client_insecure=False
  181.  
  182. # The period of time, in seconds, that the API server will wait for a registry
  183. # request to complete. A value of '0' implies no timeout.
  184. # Default: 600
  185. #registry_client_timeout=600
  186.  
  187. # Whether to automatically create the database tables.
  188. # Default: False
  189. #db_auto_create=False
  190.  
  191. # Enable DEBUG log messages from sqlalchemy which prints every database
  192. 193,1 22%
  193. # ============ Notification System Options =====================
  194.  
  195. # Driver or drivers to handle sending notifications. Set to
  196. # 'messaging' to send notifications to a message queue.
  197. # notification_driver = noop
  198. notification_driver = messaging
  199.  
  200. # Default publisher_id for outgoing notifications.
  201. # default_publisher_id = image.localhost
  202.  
  203. # Messaging driver used for 'messaging' notifications driver
  204. # rpc_backend = 'rabbit'
  205.  
  206. # Configuration options if sending notifications via rabbitmq (these are
  207. # the defaults)
  208. #rabbit_host=localhost
  209. #rabbit_port=5672
  210. #rabbit_use_ssl=false
  211. rabbit_use_ssl=False
  212. #rabbit_userid=guest
  213. rabbit_userid=openstack
  214. #rabbit_password=guest
  215. rabbit_password=xyz
  216. #rabbit_virtual_host=/
  217. rabbit_virtual_host=/
  218. #rabbit_notification_exchange=glance
  219. rabbit_notification_exchange=glance
  220. #rabbit_notification_topic=notifications
  221. rabbit_notification_topic=notifications
  222. #rabbit_durable_queues=False
  223.  
  224. # Configuration options if sending notifications via Qpid (these are
  225. 249,1 30%
  226. image_cache_dir=/var/lib/glance/image-cache
  227.  
  228. # =============== Database Options =================================
  229. rabbit_ha_queues=True
  230. rabbit_hosts=10.133.210.153:5672
  231. amqp_durable_queues=False
  232. log_dir=/var/log/glance
  233. os_region_name=RegionOne
  234. max_retries=-1
  235.  
  236. [database]
  237. connection=mysql://glance:[email protected]/glance
  238.  
  239. # The SQL mode to be used for MySQL sessions. This option,
  240. # including the default, overrides any server-set SQL mode. To
  241. # use whatever SQL mode is set by the server configuration,
  242. # set this to no value. Example: mysql_sql_mode= (string
  243. # value)
  244. #mysql_sql_mode=TRADITIONAL
  245.  
  246. # Timeout before idle sql connections are reaped (integer
  247. # value)
  248. # Deprecated group/name - [DEFAULT]/sql_idle_timeout
  249. # Deprecated group/name - [DATABASE]/sql_idle_timeout
  250. # Deprecated group/name - [sql]/idle_timeout
  251. #idle_timeout=3600
  252. idle_timeout=3600
  253. 345,1 43%
  254. [paste_deploy]
  255. # Name of the paste configuration file that defines the available pipelines
  256. #config_file=/usr/share/glance/glance-api-dist-paste.ini
  257.  
  258. # Partial name of a pipeline in your paste configuration file with the
  259. # service name removed. For example, if your paste section name is
  260. # [pipeline:glance-api-keystone], you would configure the flavor below
  261. # as 'keystone'.
  262. #flavor=
  263. flavor=keystone+cachemanagement
  264.  
  265. [store_type_location_strategy]
  266. # The scheme list to use to get store preference order. The scheme must be
  267. # registered by one of the stores defined by the 'known_stores' config option.
  268. # This option will be applied when you using 'store_type' option as image
  269. # location strategy defined by the 'location_strategy' config option.
  270. #store_type_preference =
  271.  
  272. [profiler]
  273. # If False fully disable profiling feature.
  274. #enabled=False
  275.  
  276. # If False doesn't trace SQL requests.
  277. #trace_sqlalchemy=False
  278.  
  279. 449,0-1 58%
  280. [task]
  281. # ================= Glance Tasks Options ============================
  282.  
  283. # Specifies how long (in hours) a task is supposed to live in the tasks DB
  284. # after succeeding or failing before getting soft-deleted.
  285. # The default value for task_time_to_live is 48 hours.
  286. # task_time_to_live = 48
  287.  
  288. # Specifies which task executor to be used to run the task scripts.
  289. # The default value for task_executor is eventlet.
  290. # task_executor = eventlet
  291.  
  292. # Specifies the maximum number of eventlet threads which can be spun up by
  293. # the eventlet based task executor to perform execution of Glance tasks.
  294. # eventlet_executor_pool_size = 1000
  295.  
  296. [glance_store]
  297. # List of which store classes and store class locations are
  298. # currently known to glance at startup.
  299. # Existing but disabled stores:
  300. # glance.store.rbd.Store,
  301. # glance.store.s3.Store,
  302. # glance.store.swift.Store,
  303. # glance.store.sheepdog.Store,
  304. # glance.store.cinder.Store,
  305. # glance.store.gridfs.Store,
  306. # glance.store.vmware_datastore.Store,
  307. #stores=glance.store.filesystem.Store
  308. stores=glance.store.filesystem.Store,glance.store.http.Store
  309. # glance.store.http.Store
  310.  
  311. filesystem_store_datadir=/var/lib/glance/images/
  312.  
  313. # A list of directories where image data can be stored.
  314. # This option may be specified multiple times for specifying multiple store
  315. # directories. Either one of filesystem_store_datadirs or
  316. # filesystem_store_datadir option is required. A priority number may be given
  317. # after each directory entry, separated by a ":".
  318. # When adding an image, the highest priority directory will be selected, unless
  319. # there is not enough space available in cases where the image size is already
  320. # known. If no priority is given, it is assumed to be zero and the directory
  321. # will be considered for selection last. If multiple directories have the same
  322. # priority, then the one with the most free space available is selected.
  323. # If same store is specified multiple times then BadStoreConfiguration
  324. # exception will be raised.
  325. filesystem_store_datadirs=/var/lib/glance/images/:1
  326.  
  327. # A path to a JSON file that contains metadata describing the storage
  328. # system. When show_multiple_locations is True the information in this
  329. # file will be returned with any location that is contained in this
  330. # store.
  331. #filesystem_store_metadata_file=None
  332.  
  333. # ============ Swift Store Options =============================
  334.  
  335. # Version of the authentication service to use
  336. # Valid versions are '2' for keystone and '1' for swauth and rackspace
  337. #swift_store_auth_version=2
  338.  
  339. # Address where the Swift authentication service lives
  340. # Valid schemes are 'http://' and 'https://'
  341. # If no scheme specified, default to 'https://'
  342. # For swauth, use something like '127.0.0.1:8080/v1.0/'
  343. #swift_store_auth_address=127.0.0.1:5000/v2.0/
  344.  
  345. # User to authenticate against the Swift authentication service
  346. # If you use Swift authentication service, set it to 'account':'user'
  347.  
  348.  
  349.  
  350. default_store=file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement