このコンテンツは選択した言語では利用できません。

8.5. Configure back ends


The Image service supports several back ends for storing virtual machine images:
  • A directory on a local file system
  • GridFS
  • Ceph RBD
  • Amazon S3
  • Sheepdog
  • OpenStack Object Storage (swift)
  • VMware ESX
The following tables detail the options available for each.
Expand
Table 8.22. Description of filesystem configuration options
Configuration option = Default value Description
[glance_store]
filesystem_store_datadir = None (StrOpt) Directory to which the Filesystem backend store writes images.
filesystem_store_datadirs = None (MultiStrOpt) List of directories and its priorities to which the Filesystem backend store writes images.
filesystem_store_file_perm = 0 (IntOpt) The required permission for created image file. In this way the user other service used, e.g. Nova, who consumes the image could be the exclusive member of the group that owns the files created. Assigning it less then or equal to zero means don't change the default permission of the file. This value will be decoded as an octal digit.
filesystem_store_metadata_file = None (StrOpt) The path to a file which contains the metadata to be returned with any location associated with this store. The file must contain a valid JSON object. The object should contain the keys 'id' and 'mountpoint'. The value for both keys should be 'string'.
Expand
Table 8.23. Description of GridFS configuration options
Configuration option = Default value Description
[glance_store]
mongodb_store_db = None (StrOpt) Database to use
mongodb_store_uri = None (StrOpt) Hostname or IP address of the instance to connect to, or a mongodb URI, or a list of hostnames / mongodb URIs. If host is an IPv6 literal it must be enclosed in '[' and ']' characters following the RFC2732 URL syntax (e.g. '[::1]' for localhost)
Expand
Table 8.24. Description of RBD configuration options
Configuration option = Default value Description
[glance_store]
rados_connect_timeout = 0 (IntOpt) Timeout value (in seconds) used when connecting to ceph cluster. If value <= 0, no timeout is set and default librados value is used.
rbd_store_ceph_conf = /etc/ceph/ceph.conf (StrOpt) Ceph configuration file path. If <None>, librados will locate the default config. If using cephx authentication, this file should include a reference to the right keyring in a client.<USER> section.
rbd_store_chunk_size = 8 (IntOpt) RADOS images will be chunked into objects of this size (in megabytes). For best performance, this should be a power of two.
rbd_store_pool = localhost (StrOpt) RADOS pool in which images are stored.
rbd_store_user = None (StrOpt) RADOS user to authenticate as (only applicable if using Cephx. If <None>, a default will be chosen based on the client. section in rbd_store_ceph_conf)
Expand
Table 8.25. Description of S3 configuration options
Configuration option = Default value Description
[glance_store]
s3_store_access_key = None (StrOpt) The S3 query token access key.
s3_store_bucket = None (StrOpt) The S3 bucket to be used to store the Glance data.
s3_store_bucket_url_format = subdomain (StrOpt) The S3 calling format used to determine the bucket. Either subdomain or path can be used.
s3_store_create_bucket_on_put = False (BoolOpt) A boolean to determine if the S3 bucket should be created on upload if it does not exist or if an error should be returned to the user.
s3_store_host = None (StrOpt) The host where the S3 server is listening.
s3_store_large_object_chunk_size = 10 (IntOpt) What multipart upload part size, in MB, should S3 use when uploading parts. The size must be greater than or equal to 5M.
s3_store_large_object_size = 100 (IntOpt) What size, in MB, should S3 start chunking image files and do a multipart upload in S3.
s3_store_object_buffer_dir = None (StrOpt) The local directory where uploads will be staged before they are transferred into S3.
s3_store_proxy_host = None (StrOpt) Address or hostname for the proxy server.
s3_store_proxy_password = None (StrOpt) The password to use when connecting over a proxy.
s3_store_proxy_port = 8080 (IntOpt) The port to use when connecting over a proxy.
s3_store_proxy_user = None (StrOpt) The username to connect to the proxy.
s3_store_secret_key = None (StrOpt) The S3 query token secret key.
s3_store_thread_pools = 10 (IntOpt) The number of thread pools to perform a multipart upload in S3.
Expand
Table 8.26. Description of Sheepdog configuration options
Configuration option = Default value Description
[glance_store]
sheepdog_store_address = localhost (StrOpt) IP address of sheep daemon.
sheepdog_store_chunk_size = 64 (IntOpt) Images will be chunked into objects of this size (in megabytes). For best performance, this should be a power of two.
sheepdog_store_port = 7000 (IntOpt) Port of sheep daemon.
Expand
Table 8.27. Description of swift configuration options
Configuration option = Default value Description
[DEFAULT]
default_swift_reference = ref1 (StrOpt) The reference to the default swift account/backing store parameters to use for adding new images.
swift_store_auth_address = None (StrOpt) The address where the Swift authentication service is listening.(deprecated)
swift_store_config_file = None (StrOpt) The config file that has the swift account(s)configs.
swift_store_key = None (StrOpt) Auth key for the user authenticating against the Swift authentication service. (deprecated)
swift_store_user = None (StrOpt) The user to authenticate against the Swift authentication service (deprecated)
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat