From 57cc3e6aadc8766f3e30239e882a72d236054edc Mon Sep 17 00:00:00 2001 From: Jakob Meng Date: Wed, 21 Sep 2022 12:40:10 +0200 Subject: [PATCH] Bump minimum required openstacksdk release to 0.101.0 Latest release candidate 0.101.0 of openstacksdk's first major release brings new features and bug fixes, e.g. for floating ips [1], [2]. [1] https://review.opendev.org/c/openstack/openstacksdk/+/851976 [2] https://github.com/openstack/openstacksdk/commit/0ded7ac398843b6b1ce46668eb3b45ce02628428 Change-Id: I4f63e9edab19ba25918513b8c89fcd62913ae75a --- README.md | 6 +++--- plugins/doc_fragments/openstack.py | 2 +- plugins/module_utils/openstack.py | 2 +- requirements.txt | 2 +- tests/constraints-openstacksdk-0.x.x.txt | 2 +- tests/constraints-openstacksdk-1.x.x.txt | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f76e3f7d..a4e257b8 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Dear contributors and users of the Ansible OpenStack collection! Our codebase has been split into two separate release series: * `2.x.x` releases of Ansible OpenStack collection are compatible with OpenStack SDK `1.x.x` and its release candidates - `0.99.x` *only* (OpenStack Zed and later). Our `master` branch tracks our `2.x.x` releases. + `0.99.0` and later *only* (OpenStack Zed and later). Our `master` branch tracks our `2.x.x` releases. * `1.x.x` releases of Ansible OpenStack collection are compatible with OpenStack SDK `0.x.x` prior to `0.99.0` *only* (OpenStack Yoga and earlier). Our `stable/1.0.0` branch tracks our `1.x.x` releases. @@ -24,7 +24,7 @@ module parameters backward compatible by offering aliases but e.g. the semantics modules have changed due to updates in the OpenStack SDK. Our decision to break backward compatibility was not taken lightly. OpenStack SDK's first major release (`1.0.0` and its -release candidates `0.99.x`) has streamlined and improved large parts of its codebase. For example, its Connection +release candidates >=`0.99.0`) has streamlined and improved large parts of its codebase. For example, its Connection interface now consistently uses the Resource interfaces under the hood. This required breaking changes from older SDK releases though. The Ansible OpenStack collection is heavily based on OpenStack SDK. With OpenStack SDK becoming backward incompatible, so does our Ansible OpenStack collection. We simply lack the devpower to maintain a backward @@ -48,7 +48,7 @@ For using the Openstack Cloud collection firstly you need to install `ansible` a For example with pip: ```bash -pip install "ansible>=2.9" "openstacksdk>=0.99.0" +pip install "ansible>=2.9" "openstacksdk>=0.101.0" ``` OpenStackSDK has to be available to Ansible and to the Python interpreter on the host, where Ansible executes the module (target host). diff --git a/plugins/doc_fragments/openstack.py b/plugins/doc_fragments/openstack.py index c8df14a2..c3cb4adb 100644 --- a/plugins/doc_fragments/openstack.py +++ b/plugins/doc_fragments/openstack.py @@ -97,7 +97,7 @@ options: choices: [INFO, DEBUG] requirements: - python >= 3.6 - - openstacksdk >= 0.99.0 + - openstacksdk >= 0.101.0 notes: - The standard OpenStack environment variables, such as C(OS_USERNAME) may be used instead of providing explicit values. diff --git a/plugins/module_utils/openstack.py b/plugins/module_utils/openstack.py index b837f555..f116ca42 100644 --- a/plugins/module_utils/openstack.py +++ b/plugins/module_utils/openstack.py @@ -51,7 +51,7 @@ OVERRIDES = {} CUSTOM_VAR_PARAMS = ['min_ver', 'max_ver'] -MINIMUM_SDK_VERSION = '0.99.0' +MINIMUM_SDK_VERSION = '0.101.0' MAXIMUM_SDK_VERSION = None diff --git a/requirements.txt b/requirements.txt index 3037d8e3..9bb84ac7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -openstacksdk>=0.99.0 +openstacksdk>=0.101.0 diff --git a/tests/constraints-openstacksdk-0.x.x.txt b/tests/constraints-openstacksdk-0.x.x.txt index d5bbddf9..8196c38d 100644 --- a/tests/constraints-openstacksdk-0.x.x.txt +++ b/tests/constraints-openstacksdk-0.x.x.txt @@ -1,2 +1,2 @@ -# 0.99.x are release candidates for the first major release of OpenStackSDK 1.x.x +# 0.99.0 and later are release candidates for the first major release of OpenStackSDK 1.x.x openstacksdk<0.99.0 diff --git a/tests/constraints-openstacksdk-1.x.x.txt b/tests/constraints-openstacksdk-1.x.x.txt index 7610c454..27cebe8b 100644 --- a/tests/constraints-openstacksdk-1.x.x.txt +++ b/tests/constraints-openstacksdk-1.x.x.txt @@ -1,2 +1,2 @@ -# 0.99.x are release candidates for the first major release of OpenStackSDK 1.x.x -openstacksdk>=0.99.0 +# 0.99.0 and later are release candidates for the first major release of OpenStackSDK 1.x.x +openstacksdk>=0.101.0