Current Series Release Notes

4.22.0-44

New Features

  • Add Log and LoggableResource for network Also add create_log, delete_log, find_log, get_log, logs, update_logs and loggable_resources to network._proxy.Proxy

  • The NetworkSegmentRange resource now supports tags. Tags can be managed with the set_tags, add_tag, remove_tag and get_tags network proxy methods, and network segment ranges can be filtered by tag when listing using the tags, any_tags, not_tags and not_any_tags query parameters.

  • Adds support for querying a baremetal node’s history as per functionality introduced in API 1.78.

  • The Trunk resource now supports the add_tags method, which creates (POST) tags on a trunk without replacing the existing ones, as already supported by other network resources.

  • Added support for the /info/import/detail endpoint of Glance.

  • Add a keyword-only get_payload parameter to key_manager.get_secret and key_manager.find_secret. It defaults to True for get_secret and False for find_secret. Set it to False to retrieve metadata without requesting the payload. Add key_manager.fetch_secret_payload to populate the payload on an existing secret, including a secret returned by key_manager.secrets, without fetching its metadata again. When passing a secret ID instead of a resource, the keyword-only content_type parameter is required. It may also be used to override a resource’s payload content type.

  • Add is_l2_adjacent flag to indicate if the network is L2 adjacent in Neutron.

  • The SDK now checks client-side whether the selected API microversion meets a resource’s minimum requirements. If the version negotiated with the server or the configured default microversion is too low, the SDK raises the existing openstack.exceptions.NotSupported exception before sending the resource request, rather than relying on the server to reject it.

  • Object-store resources expose the transaction_id response header. The create_object method’s data argument now explicitly accepts binary file streams for single-request uploads without segmentation.

  • Object-store container and object listings accept paginated=False to retrieve only the first page. Object listings support delimiter and end-marker filters, and expose common prefixes as objects with a name and a subdir attribute.

Upgrade Notes

  • openstack.key_manager.v1.secret.Secret.fetch now retrieves only the main resource, without fetching its payload. Use Secret.fetch_payload to populate the payload separately. The proxy’s get_secret method continues to retrieve both metadata and payload.

Bug Fixes

  • Calling the bare metal conductors() or inspection_rules() proxy methods with details=True now requests the detailed view from the Bare Metal service. Previously the flag was passed as an unknown details attribute and applied as a client-side filter instead of being sent as the detail query parameter.

  • Adds the missing disable_ramdisk field to the bare metal Runbook resource. The bare metal service has accepted and returned this field since runbooks were introduced in API microversion 1.92.

  • The sort_key and sort_dir query parameters are now sent to the Bare Metal service when listing allocations, chassis, conductors, deploy templates, inspection rules, nodes, ports, port groups, runbooks, volume connectors and volume targets. Previously they were not part of the resources’ query mappings and were instead applied as client-side attribute filters, which typically caused the listing to return no results rather than sorted results.

  • Service proxies now default to requesting JSON responses, improving error details on services that otherwise return HTML. Explicit Accept headers, including empty values and proxy-level additional headers, are preserved. Object storage continues to accept arbitrary object media types.

  • Fixed connection.dns.get_zone_export_text() to request the DNS zone-file representation and return its contents as a string. Previously, this method attempted to decode the zone file as JSON, causing downloads to fail. Its documented return type has been corrected from ZoneExport to str; callers needing the export metadata should continue to use connection.dns.get_zone_export().

  • find_domain can now resolve domains referenced by the cached authentication token when policy prevents listing domains. This allows non-admin users to resolve their user, project, or scoped domain without an additional API request. [bug 2145017]

  • Image API v2 requests now default to Accept: application/json, including image uploads, staging, and metadata updates. This requests JSON error responses from existing Glance deployments instead of their HTML default. Explicit response-format choices are preserved. Image downloads accept both binary image data and JSON errors.

  • HTTP exceptions now include the error details returned by the Placement API, rather than falling back to the generic HTTP reason. When the response contains multiple errors, their details are joined with newlines.

  • Project cleanup now deletes security groups after the ports, networks and routers of the project. Previously security groups were deleted first, which failed with a 409 Conflict (“Security Group … in use”) whenever a port that was about to be cleaned up still used them. See bug 2100958.

  • Shared resource request preparation and listing now URL-encode raw resource IDs and URI attributes before inserting them into request paths. Reserved characters and literal percent escapes in name-based identifiers, such as Image metadata definitions and Identity federation resources, are no longer interpreted as URL syntax. Resource attributes retain their original values.

  • Object-store listings now continue until an empty page is returned. This avoids truncated results when optional count headers are absent and supports pagination of filtered and delimiter-based listings.

  • Object-store resource requests now URL-encode container and object names correctly, including reserved characters, literal percent escapes, and leading or trailing slashes in object names.

  • Workflow definition writes explicitly accept both text and JSON responses.

4.22.0

New Features

  • Added openstack.key_manager.v1.secret.Secret.migrate_store and Proxy.migrate_secret_store to migrate an existing Barbican secret onto another secret store via path-based PUT /v1/secrets/{id}/secret-store/{secret-store-id} (key-manager microversion 1.3). The destination is a single required secret_store argument (UUID, URI, or SecretStore instance). Secret resources also expose computed secret_store_id and secret_store_ref from GET/list (may be null).

  • The block storage v3 proxy attachments API now supports a details parameter, allowing users to list volume attachments with or without additional details.

Bug Fixes

  • Fixed key-manager microversion negotiation against Barbican. Barbican’s unversioned discovery document never carries a microversion range (by design, for backward compatibility with pre-microversion clients), so openstack.utils.supports_microversion() / maximum_supported_microversion() could never detect support. Secret and SecretStore now negotiate via openstack.key_manager.v1._microversion, which probes discovery with an explicit OpenStack-API-Version header (the same workaround already used by python-barbicanclient).

  • Connection.connect_as() and Connection.connect_as_project() now use the project they are given when the parent connection was configured from OS_* environment variables. Since openstacksdk 2.0.0 the values of OS_PROJECT_ID and OS_PROJECT_NAME took precedence, so the new connection silently stayed scoped to the original project. Among other things this made openstack project cleanup --project <project> delete the resources of the project from the environment instead of the requested one. The same applies to domain_id/domain_name, token and passcode. Passing only one of project_id or project_name (and likewise for the domain, project domain and user domain) now also stops the other half of the pair from being inherited.

  • The status_code_retry_delay and retriable_status_codes options are now passed to the service adapter. Previously they were ignored, both in clouds.yaml and in oslo.config adapter options.

4.21.0

New Features

  • Added support for key manager container ACL operations.

  • Add support for the Glance image-cache API POST /v2/cache/clean and POST /v2/cache/prune (clean invalid cache entries and prune cache size). This adds the clean_cache and prune_cache methods on the image v2 proxy and cache resource.

Upgrade Notes

  • The precedence used when resolving statsd metrics configuration has changed. Values are now resolved in the following order, from highest to lowest priority: values passed explicitly (e.g. via the statsd_config argument), environment variables (STATSD_HOST, STATSD_PORT, STATSD_PREFIX) and finally the metrics.statsd section of clouds.yaml. Previously the configuration file took precedence over environment variables, which was inconsistent with how configuration is resolved elsewhere.

Deprecation Notes

  • The statsd_host, statsd_port and statsd_prefix arguments of openstack.config.cloud_region.CloudRegion have been deprecated in favour of the new statsd_config argument, which accepts a single dict of statsd configuration. The legacy arguments continue to work but cannot be combined with statsd_config.

Bug Fixes

  • Remove incorrect TagMixin from Domain resource. The Keystone Identity API does not support tags on domains. [bug 2166512]

  • Connection no longer keeps itself alive for the lifetime of the process. Cleanup was registered with atexit.register(self.close), and because a bound method holds a strong reference to its instance, every Connection ever created stayed reachable from the atexit registry along with its keystoneauth1 session, that session’s urllib3 connection pools and their CA-loaded SSLContext objects. Applications that build a Connection per request, such as Horizon, grew by hundreds of kilobytes per request until the worker was restarted. Cleanup now uses weakref.finalize, which still runs at interpreter shutdown for connections that are still alive but does not prevent them from being garbage collected earlier.

  • Connection.close() now also releases the connection pool of the requests.Session held by the keystoneauth1 session. Previously the pooled (keep-alive) connections were only released when the keystoneauth1 session object was garbage collected, which could leave sockets open for the lifetime of the process. Externally supplied sessions are still left untouched.

  • The hw_boot_menu and os_require_quiesce image properties are now parsed as boolean strings, so a value of "false" is treated as False. These properties and hw_vif_multiqueue_enabled now interpret their values the same way as Nova: 1, t, true, on, y and yes (case-insensitively) are True, and any other value is False. An unrecognised value no longer raises an exception that prevents the image from loading. (bug 2169133)

  • Glance extra image properties such as hw_vif_multiqueue_enabled are returned as strings ("true" / "false"). The image resource now deserializes hw_vif_multiqueue_enabled with BoolStr so "false" is treated as False rather than True. (bug 1996033)

4.20.0

New Features

  • Added CloudRegion.clear_auth_cache, which discards any authentication cached for a cloud. Both the copy kept in the keyring and the state held in memory by the plugin are dropped, so that a connection already built from the region cannot keep using the credential or write it back when it closes. The next authentication starts from scratch, which for an interactive plugin means asking the user again. Use it when the cached credential is known to be unusable, such as after it has been revoked or when a different account is wanted. It works whether or not cache.auth is currently enabled and whether or not a keyring is available: the in-memory state is dropped regardless, and a credential cached while caching was on can still be removed once it has been turned off.