Current Series Release Notes¶
4.22.0-44¶
New Features¶
Add
LogandLoggableResourcefornetworkAlso addcreate_log,delete_log,find_log,get_log,logs,update_logsandloggable_resourcesto network._proxy.Proxy
The
NetworkSegmentRangeresource now supports tags. Tags can be managed with theset_tags,add_tag,remove_tagandget_tagsnetwork proxy methods, and network segment ranges can be filtered by tag when listing using thetags,any_tags,not_tagsandnot_any_tagsquery parameters.
Adds support for querying a baremetal node’s history as per functionality introduced in API 1.78.
The
Trunkresource now supports theadd_tagsmethod, 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_payloadparameter tokey_manager.get_secretandkey_manager.find_secret. It defaults toTrueforget_secretandFalseforfind_secret. Set it toFalseto retrieve metadata without requesting the payload. Addkey_manager.fetch_secret_payloadto populate the payload on an existing secret, including a secret returned bykey_manager.secrets, without fetching its metadata again. When passing a secret ID instead of a resource, the keyword-onlycontent_typeparameter 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.NotSupportedexception before sending the resource request, rather than relying on the server to reject it.
Object-store resources expose the
transaction_idresponse header. Thecreate_objectmethod’sdataargument now explicitly accepts binary file streams for single-request uploads without segmentation.
Object-store container and object listings accept
paginated=Falseto retrieve only the first page. Object listings support delimiter and end-marker filters, and expose common prefixes as objects with a name and asubdirattribute.
Upgrade Notes¶
openstack.key_manager.v1.secret.Secret.fetchnow retrieves only the main resource, without fetching its payload. UseSecret.fetch_payloadto populate the payload separately. The proxy’sget_secretmethod continues to retrieve both metadata and payload.
Bug Fixes¶
Calling the bare metal
conductors()orinspection_rules()proxy methods withdetails=Truenow requests the detailed view from the Bare Metal service. Previously the flag was passed as an unknowndetailsattribute and applied as a client-side filter instead of being sent as thedetailquery parameter.
Adds the missing
disable_ramdiskfield to the bare metalRunbookresource. The bare metal service has accepted and returned this field since runbooks were introduced in API microversion 1.92.
The
sort_keyandsort_dirquery 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 fromZoneExporttostr; callers needing the export metadata should continue to useconnection.dns.get_zone_export().
find_domaincan 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_storeandProxy.migrate_secret_storeto migrate an existing Barbican secret onto another secret store via path-basedPUT /v1/secrets/{id}/secret-store/{secret-store-id}(key-manager microversion 1.3). The destination is a single requiredsecret_storeargument (UUID, URI, orSecretStoreinstance). Secret resources also expose computedsecret_store_idandsecret_store_reffrom GET/list (may be null).
The block storage v3 proxy
attachmentsAPI now supports adetailsparameter, 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.SecretandSecretStorenow negotiate viaopenstack.key_manager.v1._microversion, which probes discovery with an explicitOpenStack-API-Versionheader (the same workaround already used by python-barbicanclient).
Connection.connect_as()andConnection.connect_as_project()now use the project they are given when the parent connection was configured fromOS_*environment variables. Since openstacksdk 2.0.0 the values ofOS_PROJECT_IDandOS_PROJECT_NAMEtook precedence, so the new connection silently stayed scoped to the original project. Among other things this madeopenstack project cleanup --project <project>delete the resources of the project from the environment instead of the requested one. The same applies todomain_id/domain_name,tokenandpasscode. Passing only one ofproject_idorproject_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_delayandretriable_status_codesoptions are now passed to the service adapter. Previously they were ignored, both inclouds.yamland 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/cleanandPOST /v2/cache/prune(clean invalid cache entries and prune cache size). This adds theclean_cacheandprune_cachemethods 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_configargument), environment variables (STATSD_HOST,STATSD_PORT,STATSD_PREFIX) and finally themetrics.statsdsection ofclouds.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_portandstatsd_prefixarguments ofopenstack.config.cloud_region.CloudRegionhave been deprecated in favour of the newstatsd_configargument, which accepts a single dict of statsd configuration. The legacy arguments continue to work but cannot be combined withstatsd_config.
Bug Fixes¶
Remove incorrect
TagMixinfromDomainresource. The Keystone Identity API does not support tags on domains. [bug 2166512]
Connectionno longer keeps itself alive for the lifetime of the process. Cleanup was registered withatexit.register(self.close), and because a bound method holds a strong reference to its instance, everyConnectionever created stayed reachable from theatexitregistry along with its keystoneauth1 session, that session’surllib3connection pools and their CA-loadedSSLContextobjects. Applications that build aConnectionper request, such as Horizon, grew by hundreds of kilobytes per request until the worker was restarted. Cleanup now usesweakref.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 therequests.Sessionheld 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_menuandos_require_quiesceimage properties are now parsed as boolean strings, so a value of"false"is treated asFalse. These properties andhw_vif_multiqueue_enablednow interpret their values the same way as Nova:1,t,true,on,yandyes(case-insensitively) areTrue, and any other value isFalse. 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_enabledare returned as strings ("true"/"false"). The image resource now deserializeshw_vif_multiqueue_enabledwithBoolStrso"false"is treated asFalserather thanTrue. (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 notcache.authis 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.