2025.1 Series Release Notes

2025.1-eom

新特性

  • This release adds three new options for the s3 driver:

    • s3_store_enable_data_integrity_protection (default: False)

    • s3_store_request_checksum_calculation (default: 'when_required')

    • s3_store_response_checksum_validation (default: 'when_required')

    Users who use S3-compatible storage that does not implement checksum calculation and validation must keep s3_store_enable_data_integrity_protection set to False.

  • Support setting s3_store_large_object_size to 0 to force multipart upload when image_size is unknown.

Bug Fixes

  • Bug #2121144: Uploading an image to an S3-compatible backend no longer fails if the backend does not support checksum calculation and validation.

  • Bug #2043740: s3_store_large_object_size can be set to 0 to force multipart upload when creating an image in the S3 backend from a Cinder volume.

4.9.0

升级说明

  • Support for Python 3.8 has been removed. Now the minimum python version supported is 3.9 .

Bug Fixes

  • Cinder (Dell PowerFlex) bug #2086759: Fixed issue when downloading an image. Previously, we used to fail trying to download an image when using Glance -> Cinder -> Dell PowerFlex configuration which is now fixed with better file handling for the volume device.

4.8.0

Bug Fixes

  • Bug #2056179: Cinder Store: Fix issue when updating legacy image location. Previously we only used the user context's credentials to make request to cinder which we have now updated to use the service credentials configured in the config file else use the user context's credentials.

4.7.0

新特性

  • RBD driver: the rados_connect_timeout config option has been un-deprecated and its behavior has been improved. A value of 0 is now respected as disabling timeout in requests, while a value less than zero indicates that glance_store will not set a timeout but instead will use whatever timeouts are set in the Ceph configuration file.

升级说明

  • RBD driver: the default value of the rados_connect_timeout option has been changed from 0 to -1, so that the RBD driver will by default use the timeout values defined in ceph.conf. Be aware that setting this option to 0 disables timeouts (that is, the RBD driver will make requests with a timeout of zero, and all requests wait forever), thereby overriding any timeouts that are set in the Ceph configuration file.

弃用说明

  • The VMWare Datastore has been deprecated. The vmwareapi virt driver in nova was marked as experimental due to lack of CI and maintainers and it may be removed in a future release.

4.6.0

新特性

  • A weight option has been added to the store configuration definition. This allows configuring stores with relative weights to each other for sorting when an image exists in multiple stores.

  • The RBD driver now moves images to the trash if they cannot be deleted immediately due to having snapshots. This fixes the long-standing issue where base images are unable to be deleted until/unless all snapshots of it are also deleted. Moving the image to the trash allows Glance to proceed with the deletion of the image (as far as it is concerned), mark the RBD image for deletion, which will happen once the last snapshot that uses it has been deleted.

4.5.0

Bug Fixes

  • A recent change to the RBD driver introduced a potential threading lockup when using native threads, and also a (process-)blocking call to an external library when using greenthreads. That change has been reverted until a better fix can be made.

4.4.0

安全问题

  • Cinder glance_store driver: in order to avoid a situation where a leftover device could be mapped to a different volume than the one intended, the cinder glance_store driver now instructs the os-brick library to force detach volumes, which ensures that devices are removed from the host.

    See Bug #2004555 for more information about this issue.

4.3.0

新特性

  • Added support for extending in-use volumes in cinder store. A new boolean config option cinder_do_extend_attached is added which allows operators to enable/disable extending in-use volume support when creating an image. By default, cinder_do_extend_attached will be False i.e. old flow of detaching, extending and attaching will be used.

弃用说明

  • The 'rados_connect_timeout' config option for the RBD store has been deprecated and will be removed in the future. It has been silently ignored for multiple releases. Users willing to set a timeout for the connection to the cluster can use Ceph's 'client_mount_timeout' option.

Bug Fixes

  • Bug #2000584: Fixed image create with cinder NFS store when using sparse volumes.

4.1.0

Bug Fixes

  • Now the project_domain_name parameter and the user_domain_name parameter are properly used by swift backends. Previously these two parameters were ignored and the *_domain_id parameters should be set to use a keystone domain different from the default one.

4.0.1

新特性

  • When using the cinder backend, a custom os-brick file lock location can be specified using the lock_path configuration option in the [os_brick] configuration section. Helpful when deploying on the same host as the Cinder service.

升级说明

  • When running Cinder and Glance with Cinder backend on the same host an os-brick shared location can be configured using the lock_path in the [os_brick] configuration section.

4.0.0

升级说明

  • Python 3.6 & 3.7 support has been dropped. The minimum version of Python now supported is Python 3.8.

Bug Fixes

  • Bug #1970698: Cinder: Fixed exception logging when the image create operation fails due to failing to attach volume to glance host.

  • Bug #1969373: Cinder Driver: Correct the retry interval from fixed 1 second to exponential backoff for attaching a volume during image create/save operation.

3.0.0

升级说明

  • Deployments which are using Ceph V2 clone feature (i.e. RBD backend for glance_store as well as cinder driver is RBD or nova is using RBD driver) and minimum ceph client version is greater than 'luminous' need to grant glance osd read access to the cinder and nova RBD pool.

Bug Fixes

    • Bug 1954883: [RBD] Image is unusable if deletion fails

  • Bug #1955668: Fixed issue with glance cinder store passing hostname instead of IP address to os-brick while getting connector information.

  • Bug #1959913: Added wait between the volume being extended and the new size being detected while opening the volume device.

2.7.0

Prelude

This release adds support for handling cinder's multiattach volumes in glance cinder store.

This was a quiet development cycle for the glance_store library. Several bugs were fixed and some code changes were committed to increase stability.

新特性

  • Glance cinder store now supports handling of multiattach volumes.

Bug Fixes

  • Bug #1901138: Blocked creation of images when glance store is cinder, cinder backend is nfs and volumes created are qcow2 format.

  • Bug #1904546:

    Fixed creating multiple instances/volumes from image if multiattach volumes are used.

    • Bug 1926404: HTTP 413 : Failed to add object to Swift. Got error from Swift

    • Bug 1885651: swift_store_endpoint doesn't override keystone catalog

    • Bug 1934849: s3 backend takes time exponentially

2.6.0

新特性

  • For the Cinder store, if using an internal user to store images, it is now possible to have the internal user and the internal project in Keystone domains other than the Default one. Two new config options cinder_store_user_domain_name and cinder_store_project_domain_name are added (both default to Default) and now are possible to use in the configuration of the Cinder store.

2.5.0

Prelude

This was a quiet development cycle for the glance_store library. Several bugs were fixed and some code changes were committed to increase stability.

升级说明

  • Previously, during service startup, the check to validate volume types used to raise BackendException or BadStoreConfiguration exceptions when an invalid volume type was configured hence failing the service startup. It now logs a warning and the glance service starts normally.

Bug Fixes

  • Default value of the cinder_catalog_info parameter has been changed from volumev2::publicURL to volumev3::publicURL, so that the current v3 API is used by default instead of the deprecated v2 API.

  • Bug #1915163: Added handling to log and raise proper exception during image create when an invalid volume type is configured.

    • Bug 1915602: Cinder store: Use v3 API by default

2.3.0

新特性

  • Add new configuration option rbd_thin_provisioning and filesystem_thin_provisioning to rbd and filesystem store to enable or not sparse upload, default are False.

    A sparse file means that we do not actually write null byte sequences but only the data itself at a given offset, the "holes" which can appear will automatically be interpreted by the storage backend as null bytes, and do not really consume your storage.

    Enabling this feature will also speed up image upload and save network traffic in addition to save space in the backend, as null bytes sequences are not sent over the network.

  • Added support for cinder multiple stores. Operators can now configure multiple cinder stores by configuring a unique cinder_volume_type for each cinder store.

升级说明

  • Legacy images will be moved to specific stores as per their current volume's type and the location URL will be updated respectively.

2.2.0

Bug Fixes

  • Bug #1884482: Blocked creation of images on encrypted nfs volumes when glance store is cinder.

2.1.0

Bug Fixes

    • Bug 1875281: API returns 503 if one of the store is mis-configured

    • Bug 1870289: Add lock per share for cinder nfs mount/umount

2.0.0

新特性

  • Implemented S3 driver to use Amazon S3 or S3 compatible storage as Glance backend. This is a revival of the S3 driver supported up to Mitaka, with the addition of a multiple store support.

升级说明

  • Python 2.7 support has been dropped. Last release of glance_store to support py2.7 is OpenStack Train. The minimum version of Python now supported by glance_store is Python 3.6.

Bug Fixes

  • Swift backend now can use custom CA bundle to verify SSL connection to Keystone without adding this bundle to global system ones. For this it re-uses the CA bundle specified as swift_store_cacert config option, so this bundle must verify both certificates of Swift and Keysotne API endpoints.

    For more details see [bug 1820817].

  • Following bugs were fixed and included after 1.0.1 release:

    • Bug 1820817: Swift backend can not use custom CA bundle to verify server SSL certs when those are not added to global system certs

    • Bug 1866966: define mount_point for *fs drivers in glance cinder store

    • Bug 1863691: When Image size greater than the chunk size and the glance buffered upload for swift is enabled, glance just put 0 bytes

    • Bug 1839778: Python3 swift config quotes removal

    • Bug 1863983: Image upload is failing with NoFibreChannelVolumeDeviceFound after configuring Cinder(HP3Par FC storage) as glance backend

其他说明

  • The following improvements were made during the Ussuri release cycle:

    • Partial refactoring of cinder driver of glance store to use cinderclient version 3 and some methods have been moved to class level rather than use them as module level.

    • Droped support for python 2.7 and testing for the same.

    • Drop support for tempest-full

1.1.0

Known Issues

  • At the moment use of reserved stores is only limited to filesystem store driver. Also default filesystem_store_datadir path for these stores is set to /var/lib/glance/<store_name>, so with if you are using devstack for the deployment, you need to make sure you have appropriate permissions to create these reserved stores directories.

其他说明

  • In this version, refactor was made how registering of filesystem configuration options for reserved stores works. Consumer just need to pass the key:value pair where key represents the name of the reserved store and value represents the actual store driver, to the glance_store.

1.0.0

Prelude

The Glance Project Team is excited to announce the version 1.0.0 release of the glance_store library. This release marks the finalization of changes introduced on an experimental basis in previous releases beginning with 0.25.0 to support the Glance Multi-store backend support feature.

新特性

  • Multiple backend stores may be configured using the glance_store.multi_backend module. See the documentation of the create_multi_stores function in the glance_store Reference Guide for details.

Known Issues

  • The responses from some functions in the glance_store.multi_backend module, which was EXPERIMENTAL until this release, have changed. In particular, the glance_store.driver.Store.add function which returns a tuple whose last element is a dictionary of storage system specific information, no longer contains a 'backend' key. Instead, this key is named 'store'. This change extends to any convenience functions that wrap Store.add.

    Consumers relying upon the EXPERIMENTAL behavior should not upgrade past version 0.29.1. Now that the multi_backend module is fully supported in release 1.0.0, it will not undergo any more backward-incompatible changes.

升级说明

  • Consuming services should begin the transition away from the glance_store.backend module and instead use the glance_store.multi_backend module. The backend module is expected to be removed during the 'U' development cycle.

弃用说明

  • The 'stores' and 'default_store' configuration options have been deprecated for removal since the OpenStack Rocky release. They are subject to removal early in the 'U' development cycle. When these options are removed, the glance_store.backend module, that depends on them, will be removed as well.

0.29.1

Critical Issues

  • glance_store 0.29.0 was released with backwards incompatible changes. There was no corresponding releasenote to mention this. 0.29.1 has reverted said change which will be included to 1.0.0 release later on the cycle.

Bug Fixes

  • Following bugs were fixed and included after 0.28.0 release: * Bug 1824533: Do not include ETag when puting manifest in chunked uploads * Bug 1818915: Python3: Fix return type on CooperativeReader.read * Bug 1805332: Prevent unicode object error from zero-byte read

0.29.0

新特性

  • Added keyword argument to register_store_opts and create_multi_stores calls to configure reserved stores by the consuming service. This feature will allow a mix of operator-configured stores via enabled_backends configuration option set in the [glance_store] section of the consuming service's configuration file, and stores that are reserved for use by the consuming service.

升级说明

  • The store_capabilities_update_min_interval configuration option, deprecated since the Rocky release, has been removed. The option configured a capability that was not implemented by any glance_store drivers. Thus its removal will have no impact on any deployments.

0.28.0

Prelude

This was a quiet development cycle for the glance_store library. One new feature was added to the Filesystem store driver. Several bugs were fixed and some code changes were committed to increase stability.

新特性

  • A chunk size config option was added to the filesystem driver to allow some performance tweaking. The former hardcoded 64 KB is the current default value.

升级说明

  • Removal of the stores and default_store configuration options, which were deprecated in Rocky, has been postponed until during the Train development cycle.

弃用说明

  • Removal of stores and default_store has been postponed until Train cycle to allow time to move multiple backends stores from being EXPERIMENTAL due to some unresolved issues with the feature.

Bug Fixes

    • Bug 1785641: Fix Defaults for ConfigParser

    • Bug 1808456: Catch rdb NoSpace Exception

    • Bug 1813092: Fix some types in the FS and VMware drivers

    • Bug 1815335: Do not raise StopIteration

    • Bug 1816721: Fix python3 compatibility of rbd get_fsid

  • The filesystem driver is now using a configurable chunk size. Increasing it may avoid bottlenecks.

0.26.0

Prelude

This release adds support for Glance multihash computation.

From glance_store release 0.26.0 onwards Cinder driver is no longer considered as experimental.

新特性

  • A new function, store_add_to_backend_with_multihash, has been added. This function wraps each store's add method to provide consumers with a constant interface. It is similar to the existing store_add_to_backend function but requires the caller to specify an additional hashing_algo argument whose value is a hashlib algorithm identifier. The function returns a 5-tuple containing a multihash value, which is a hexdigest of the stored data computed using the specified hashing algorithm.

弃用说明

  • The glance_store function store_add_to_backend, which is a wrapper around each store's add() method, is deprecated in this release and is subject to removal at the beginning of the Stein development cycle, following the OpenStack standard deprecation policy.

    The function is replaced by store_add_to_backend_with_multihash, which is a similar wrapper, but which takes an additional argument allowing a caller to specify an secure hashing algorithm. The hexdigest of this algorithm is returned as one of the multiple values returned by the function. The function also returns the md5 checksum for backward compatability.

其他说明

  • During Rocky cycle number of issues still warranting experimental status on Cinder back-end driver was addressed. The team considers the driver stable and production ready from Rocky release onwards (0.26.0).

0.25.0

Prelude

This release contains the base work for multiple back-ends changing how the back-ends get configured. Please note that in Rocky release the work is still experimental. Thus it's not advised to utilize the new configs in production environments before Stein release even though old config options are deprecated for removal.

新特性

  • EXPERIMENTAL: Multiple back-end stores

弃用说明

  • The glance_store configuration option store_capabilities_update_min_interval is deprecated in this release and is subject to removal at the beginning of the Stein development cycle, following the OpenStack standard deprecation policy.

    The option configures a stub method that has not been implemented for any existing store drivers. Hence it is non-operational. Given that it has never been operational, it will not be missed. Its presence is confusing to operators and thus it is hereby deprecated for removal.

  • 'stores' and 'default_store' config options have been deprecated for removal. As the replacements are experimental for Rocky release, migration away from these options in production environments is not advised before Stein release.

Bug Fixes

    • Bug 1606268: Failure to upload to swift when keystone uses "insecure" SSL

    • Bug 1779455: cinder backend causes BadRequest due to NULL mountpoint

    • Bug 1764200: Glance Cinder backed images & multiple regions

0.23.0

Prelude

This was a quiet development cycle for the glance_store library. One new feature was added to the Swift store driver. Several bugs were fixed and some code changes were committed to increase stability.

新特性

  • A BufferedReader has been added to the Swift store driver in order to enable better recovery from errors during uploads of large image files. Because this reader buffers image data, it could cause Glance to use a much larger amount of disk space, and so the Buffered Reader is not enabled by default.

    To use the new reader with the Swift store, you must do the following:

    • Set the glance_store configuration option swift_buffer_on_upload to True

    • Set the glance_store configuration option swift_upload_buffer_dir to a string value representing an absolute directory path. This directory will be used to hold the buffered data.

    The Buffered Reader works by taking advantage of the way Swift stores large objects by segmenting them into discrete chunks. Thus, the amount of disk space a Glance API node will require for buffering is a function of the swift_store_large_object_chunk_size setting and the number of worker threads (configured in glance-api.conf as the value of workers). Disk utilization will cap at the following value

    swift_store_large_object_chunk_size * workers * 1000

    Be aware that depending upon how the file system is configured, the disk space used for buffering may decrease the actual disk space available for the Glance image cache, which may affect overall performance.

    For more information, see the Buffered Reader for Swift Driver spec.

升级说明

  • Two new configuration options, swift_buffer_on_upload and swift_upload_buffer_dir have been introduced. These apply only to users of the Swift store and their use is optional. See the New Features section for more information.

Bug Fixes

    • Bug 1738331: Fix BufferedReader writing zero size chunks

    • Bug 1733502: Use cached auth_ref instead of getting a new one each time

0.21.0

Prelude

This was a quiet development cycle for the glance_store library. No new features were added. Several bugs were fixed and some code changes were committed to increase stability.

Bug Fixes

  • The following bugs were fixed during the Pike release cycle.

    • Bug 1618666: Fix SafeConfigParser DeprecationWarning in Python 3.2+

    • Bug 1668848: PBR 2.0.0 will break projects not using constraints

    • Bug 1657710: Unit test passes only because is launched as non-root user

    • Bug 1686063: RBD driver can't delete image with unprotected snapshot

    • Bug 1691132: Fixed tests failing due to updated oslo.config

    • Bug 1693670: Fix doc generation for Python3

    • Bug 1643516: Cinder driver: TypeError in _open_cinder_volume

    • Bug 1620214: Sheepdog: command execution failure

其他说明

0.19.0

Prelude

Return list of store drivers in sorted order for generating configs. More info in Upgrade Notes and Bug Fixes section.

升级说明

  • Packagers should be aware that the rootwrap configuration files have been moved from etc/ to etc/glance/ in order to be consistent with where other projects place these files.

  • If using Swift in the multi-tenant mode for storing images in Glance, please note that the configuration options swift_store_multi_tenant and swift_store_config_file are now mutually exclusive and cannot be configured together. If you intend to use multi-tenant store, please make sure that you have not set a swift configuration file.

  • This version of glance_store will result in Glance generating the configs in a sorted (deterministic) order. So, preferably store releases on or after this should be used for generating any new configs if the mismatched ordering of the configs results in an issue in your environment.

Bug Fixes

  • Bug 1619487 is fixed which was causing random order of the generation of configs in Glance. See upgrade section for more details.

0.17.0

Prelude

Improved configuration options for glance_store. Please refer to the other section for more information.

Some deprecated exceptions have been removed. See upgrade section for more details.

升级说明

  • 以下的异常列表自0.10.0版本后已经弃用了 ——Conflict, ForbiddenPublicImage ProtectedImageDelete, BadDriverConfiguration, InvalidRedirect, WorkerCreationFailure, SchemaLoadError, InvalidObject, UnsupportedHeaderFeature, ImageDataNotFound, InvalidParameterValue, InvalidImageStatusTransition。该版本移除了这些异常,所以任何遗留的相同的使用方式必须避免或去掉。

其他说明

  • The glance_store configuration options have been improved with detailed help texts, defaults for sample configuration files, explicit choices of values for operators to choose from, and a strict range defined with min and max boundaries. It is to be noted that the configuration options that take integer values now have a strict range defined with "min" and/or "max" boundaries where appropriate. This renders the configuration options incapable of taking certain values that may have been accepted before but were actually invalid. For example, configuration options specifying counts, where a negative value was undefined, would have still accepted the supplied negative value. Such options will no longer accept negative values. However, options where a negative value was previously defined (for example, -1 to mean unlimited) will remain unaffected by this change. Values that do not comply with the appropriate restrictions will prevent the service from starting. The logs will contain a message indicating the problematic configuration option and the reason why the supplied value has been rejected.

0.16.0

Prelude

glance_store._drivers.s3从树上移除了。

升级说明

  • The S3 driver has been removed completely from the glance_store source tree. All environments running and (or) using this s3-driver piece of code and have not been migrated will stop working after the upgrade. We recommend you use a different storage backend that is still being supported by Glance. The standard deprecation path has been used to remove this. The process requiring store driver maintainers was initiated at http://lists.openstack.org/pipermail/openstack-dev/2015-December/081966.html . Since, S3 driver did not get any maintainer, it was decided to remove it.

0.12.0

Prelude

Prevent Unauthorized errors during uploading or donwloading data to Swift store.

新特性

  • Allow glance_store to refresh token when upload or download data to Swift store. glance_store identifies if token is going to expire soon when executing request to Swift and refresh the token. For multi-tenant swift store glance_store uses trusts, for single-tenant swift store glance_store uses credentials from swift store configurations. Please also note that this feature is enabled if and only if Keystone V3 API is available and enabled.

  • Implemented image uploading, downloading and deletion for cinder store. It also supports new settings to put image volumes into a specific project to hide them from users and to control them based on ACL of the images. Note that cinder store is currently considered experimental, so current deployers should be aware that the use of it in production right now may be risky.

安全问题

  • Previously the VMWare Datastore was using HTTPS Connections from httplib which do not verify the connection. By switching to using requests library the VMware storage backend now verifies HTTPS connection to vCenter server and thus addresses the vulnerabilities described in OSSN-0033.

0.11.0

Prelude

glance_store._drivers.gridfs

弃用说明

  • The gridfs driver has been removed from the tree. The environments using this driver that were not migrated will stop working after the upgrade.

其他说明

  • For years, /var/lib/glance/images has been presented as the default dir for the filesystem store. It was not part of the default value until now. New deployments and ppl overriding config files should watch for this.

  • 开始使用reno管理发布说明。