We are jazzed to announce the release of: openstacksdk 4.2.0 This release is part of the epoxy release series. The source is available from: https://opendev.org/openstack/openstacksdk Download the package from: https://pypi.org/project/openstacksdk Please report issues through: https://storyboard.openstack.org/#!/project/openstack/openstacksdk For more details, please see below. 4.2.0 ^^^^^ New Features ************ * Add "trunk_details" attribute to "port" resource. This attribute is a dictionary with the trunk ID and a list of subports. Each element in the subports list is a dictionary with the subport ID, the segmentation type and segmentation ID. * Add support for granting inherited roles. Roles assignments can be added to a user or group on the system, a domain, or a project. * Added a method to create (POST) tags in the network resources. This method is idempotent. Upgrade Notes ************* * IPv6 support now is detected according to the IP addresses assigned to all network interfaces, instead of presence of IPv6 default route. In case there is any IP v6 address, which is not loopback or link-local, then the host is considered to support IPv6. Changes in openstacksdk 4.1.0..4.2.0 ------------------------------------ ad6beea7 compute: Use security group name or ID 7df9a721 Replace netifaces library 85aa947e Skip disabling compute service 1c13a05e Remove reference to removed nova services 6ad5fbe1 Fix swift metadata setting documentation 85a14888 Add port bindings to SDK 1a196d9e reno: Update master for unmaintained/2023.1 c5d74ad3 identity: Add tags, options to Domain 399dfcc0 pre-commit: Migrate pyupgrade to ruff-format 33b5bfac pre-commit: Bump versions 30d41a4b Timing tests should use a threshold. b2683886 doc: Add multiple examples of authentication configuration 1453d56c block storage: Add user_id query param for Volume 30153433 compute: Add additional migration parameters 677192bf identity: Add functional tests for projects 70054827 Add method to create network resource tags 1621b490 Skip disabling compute service b07720cb Fix missing 'f' prefix in exception message aff5e358 Identity: Support assigning inherited roles 545f0af9 Add options property to User 7e592aab Add functional test for tags in Neutron resources 886fb80f Add ``trunk_details`` to ``ports`` resource f6b9a390 compute: Add locked filter for Server 0b592bce Avoid race condition between rule removal and share deletion in tearDown Diffstat (except docs and test files) ------------------------------------- .pre-commit-config.yaml | 13 +- examples/compute/create.py | 8 +- openstack/__main__.py | 5 +- openstack/accelerator/v2/deployable.py | 2 +- openstack/baremetal/configdrive.py | 9 +- openstack/baremetal/v1/_proxy.py | 9 +- openstack/baremetal/v1/allocation.py | 5 +- openstack/baremetal/v1/driver.py | 4 +- openstack/baremetal/v1/node.py | 123 +++----- openstack/baremetal/v1/port.py | 4 + .../baremetal_introspection/v1/introspection.py | 9 +- openstack/block_storage/_base_proxy.py | 4 +- openstack/block_storage/v2/backup.py | 2 +- openstack/block_storage/v3/backup.py | 2 +- openstack/block_storage/v3/volume.py | 1 + openstack/cloud/_baremetal.py | 27 +- openstack/cloud/_block_storage.py | 22 +- openstack/cloud/_coe.py | 4 +- openstack/cloud/_compute.py | 55 ++-- openstack/cloud/_dns.py | 15 +- openstack/cloud/_identity.py | 64 ++-- openstack/cloud/_image.py | 9 +- openstack/cloud/_network.py | 72 ++--- openstack/cloud/_network_common.py | 110 +++---- openstack/cloud/_object_store.py | 28 +- openstack/cloud/_utils.py | 42 +-- openstack/cloud/exc.py | 4 +- openstack/cloud/meta.py | 18 +- openstack/cloud/openstackcloud.py | 16 +- openstack/compute/v2/_proxy.py | 20 +- openstack/compute/v2/server.py | 31 +- openstack/compute/v2/server_group.py | 2 +- openstack/config/cloud_region.py | 64 ++-- openstack/config/loader.py | 49 ++-- openstack/config/vendors/__init__.py | 8 +- openstack/exceptions.py | 23 +- openstack/format.py | 4 +- openstack/identity/v3/_proxy.py | 80 +++-- openstack/identity/v3/domain.py | 47 ++- openstack/identity/v3/project.py | 41 ++- openstack/identity/v3/user.py | 2 + openstack/image/_download.py | 4 +- openstack/image/v2/_proxy.py | 24 +- openstack/key_manager/v1/_format.py | 2 +- openstack/message/v2/message.py | 2 +- openstack/network/v2/_base.py | 20 ++ openstack/network/v2/_proxy.py | 169 ++++++++++- openstack/network/v2/floating_ip.py | 6 +- openstack/network/v2/network.py | 6 +- openstack/network/v2/port.py | 5 +- openstack/network/v2/port_binding.py | 72 +++++ openstack/network/v2/router.py | 6 +- openstack/network/v2/security_group.py | 6 +- openstack/network/v2/security_group_rule.py | 6 +- openstack/network/v2/subnet.py | 6 +- openstack/network/v2/subnet_pool.py | 7 +- openstack/object_store/v1/_proxy.py | 34 +-- openstack/orchestration/util/environment_format.py | 2 +- openstack/orchestration/util/event_utils.py | 2 +- openstack/orchestration/util/template_utils.py | 9 +- openstack/orchestration/util/utils.py | 2 +- openstack/orchestration/v1/_proxy.py | 2 +- openstack/orchestration/v1/stack.py | 13 +- openstack/proxy.py | 27 +- openstack/resource.py | 73 ++--- openstack/service_description.py | 32 +- openstack/shared_file_system/v2/_proxy.py | 2 +- openstack/test/fakes.py | 10 +- .../functional/baremetal/test_baremetal_driver.py | 8 +- .../functional/cloud/test_cluster_templates.py | 4 +- .../functional/network/v2/test_floating_ip.py | 20 +- .../functional/network/v2/test_security_group.py | 19 +- .../functional/network/v2/test_subnet_pool.py | 21 +- .../shared_file_system/test_share_access_rule.py | 2 + .../unit/cloud/test_qos_bandwidth_limit_rule.py | 12 +- .../unit/cloud/test_qos_minimum_bandwidth_rule.py | 10 +- openstack/utils.py | 14 +- openstack/workflow/v2/workflow.py | 2 +- pyproject.toml | 3 + .../add-port-trunk-details-ed2d98a36ce70c0f.yaml | 7 + ...oud-mixin-inherited-roles-ed66bb78ddeca2c9.yaml | 6 + ...etwork-create-tags-method-ccb37b01ed52a58c.yaml | 5 + .../notes/replace-netifaces-632f60884fb7ae00.yaml | 7 + releasenotes/source/2023.1.rst | 2 +- requirements.txt | 2 +- tools/nova_version.py | 2 +- tools/print-services.py | 4 +- zuul.d/functional-jobs.yaml | 5 - 170 files changed, 2277 insertions(+), 2113 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index ad1c7e95..1637cc40 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8 +7,0 @@ keystoneauth1>=3.18.0 # Apache-2.0 -netifaces>=0.10.4 # MIT @@ -11,0 +11 @@ platformdirs>=3 # MIT License +psutil>=3.2.2 # BSD