We contentedly announce the release of: python-ironicclient 2.4.0: OpenStack Bare Metal Provisioning API Client Library This release is part of the rocky release series. The source is available from: https://git.openstack.org/cgit/openstack/python-ironicclient Download the package from: https://pypi.org/project/python-ironicclient Please report issues through launchpad: https://storyboard.openstack.org/#!/project/959 For more details, please see below. 2.4.0 ^^^^^ New Features ************ * The client now supports "none" authorization method, which should be used if the Identity service is not present in the deployment that the client talks to. To use it: * openstack baremetal CLI -- supported starting with "osc-lib" version "1.10.0", by providing "--os-auth-type none" and "--os- endpoint" argument to "openstack" command * ironic CLI -- just specify the "--ironic-url" or "--os-endpoint" argument in the "ironic" command (or set the corresponding environment variable) * python API -- specify the "endpoint_override" argument to the "client.get_client()" method (in addition to the required "api_version") * Supports the node's "fault" field, introduced in the Bare Metal API version 1.42, including displaying or querying nodes by this field. * Adds two new commands. * "openstack baremetal node bios setting list <node_ident>" * "openstack baremetal node bios setting show <node_ident> <setting_name>" The first command returns a list of BIOS settings for a given node, the second command returns a specified BIOS setting from the given node. Also adds support of bios_interface for the commands below. * "openstack baremetal node create" * "openstack baremetal node show" * "openstack baremetal node set" * "openstack baremetal node unset" * "openstack baremetal driver list" * "openstack baremetal driver show" * Adds support for "NodeManager.set_provision_state", "NodeManager.update", "NodeManager.get", and "NodeManager.list" to accept an "os_ironic_api_version" keyword argument to override the API version for that specific call to the REST API. When overridden, the API version is not preserved, and if an unsupported version is requested from the remote API, an "UnsupportedVersion" exception is raised. Deprecation Notes ***************** * "common.http.HTTPClient" class is deprecated and will be removed in the Stein release. If you initialize the ironic client via "v1.client.Client" class directly, please pass the keystoneauth (https://docs.openstack.org/keystoneauth/latest/) session to the Client constructor, so that "common.http.SessionClient" is used instead. * As part of standardizing argument naming to the one used by keystoneauth (https://docs.openstack.org/keystoneauth/latest/), the following arguments to "client.get_client" method are deprecated and will be removed in Stein release: * "os_auth_token": use "token" instead * "os_username": use "username" instead * "os_password": use "password" instead * "os_auth_url": use "auth_url" instead * "os_project_id": use "project_id" instead * "os_project_name": use "project_name" instead * "os_tenant_id": use "tenant_id" instead * "os_tenant_name": use "tenant_name" instead * "os_region_name": use "region_name" instead * "os_user_domain_id": use "user_domain_id" instead * "os_user_domain_name": use "user_domain_name" instead * "os_project_domain_id": use "project_domain_id" instead * "os_project_domain_name": use "project_domain_name" instead * "os_service_type": use "service_type" instead * "os_endpoint_type": use "interface" instead * "ironic_url": use "endpoint" instead * "os_cacert", "ca_file": use "cafile" instead * "os_cert", "cert_file": use "certfile" instead * "os_key", "key_file": use "keyfile" instead * The "endpoint" argument to the "v1.client.Client" constructor is deprecated and will be removed in Stein release. Instead, please use the standard keystoneauth (https://docs.openstack.org/keystoneauth/latest/) argument name "endpoint_override". Bug Fixes ********* * Waiting for a provision state to be reached (via CLI "--wait" argument or the "wait_for_provision_state" function) no longer aborts when the node's "last_error" field gets populated. It can cause a normal deployment to abort if a heartbeat from the ramdisk fails because of locking - see story 2002094 (https://storyboard.openstack.org/#!/story/2002094). Changes in python-ironicclient 2.3.0..2.4.0 ------------------------------------------- 144ce25 Add microversion override for get and list 2fabfa4 BIOS Settings support db27727 Switch functional tests to the fake-hardware hardware type 78902bf Power fault recovery: client support c660111 fix tox python3 overrides 7a1575e Support per-call version: set_provision_state 11ed23c Switch to using stestr 5821bd9 Wire in header microversion into negotiation 3f730d3 Include python API reference in docs 8940d72 Do not abort wait_for_provision_state of last_errors becomes non-empty 40a87d5 Allow to use none auth in functional tests f988eb6 Stop double json decoding API error messages c6596e9 Gate fix: Cap hacking to avoid gate failure 58c39b7 Switch to none auth for standalone mode 4beff7d Do not run functional (API) tests in the CI fd7ccff Follow the new PTI for document build 1a9c706 Fix incompatible requirement in lower-constraints 6396804 Update references to launchpad for storyboard 93822ec Updated from global requirements d9e44d6 fix a typo in documentation da8c01c add lower-constraints job 3a301aa Minor version bump for 2.3.0 b7864bf Updated from global requirements 0eb4b41 [doc] Add 'openstack create' command to command reference 4d14e80 Switch the CI to hardware types and clean up playbook e4d1c8f Updated from global requirements 6a38f19 Minor changes to version negotiation logic 77f2dcd Updated from global requirements Diffstat (except docs and test files) ------------------------------------- README.rst | 2 +- ironicclient/client.py | 208 +++++++--------- ironicclient/common/base.py | 53 ++++- ironicclient/common/http.py | 146 +++++++----- ironicclient/osc/plugin.py | 4 +- ironicclient/osc/v1/baremetal_node.py | 101 +++++++- ironicclient/shell.py | 79 +++++-- .../osc/v1/test_baremetal_driver_basic.py | 2 - .../functional/osc/v1/test_baremetal_node_basic.py | 4 +- .../osc/v1/test_baremetal_node_create_negative.py | 2 +- ironicclient/v1/client.py | 29 ++- ironicclient/v1/node.py | 68 ++++-- ironicclient/v1/resource_fields.py | 14 ++ lower-constraints.txt | 101 ++++++++ .../legacy/ironicclient-tempest-dsvm-src/run.yaml | 62 +---- .../deprecate-http-client-8d664e5ec50ec403.yaml | 73 ++++++ .../notes/node-fault-adbe74fd600063ee.yaml | 5 + ...al-node-bios-setting-list-b062b31d0d4de337.yaml | 19 ++ .../notes/version-overrides-4e9ba1266a238c6a.yaml | 11 + .../wait-for-prov-last-error-5f49b1c488879775.yaml | 8 + requirements.txt | 2 +- setup.cfg | 13 +- test-requirements.txt | 9 +- tools/run_functional.sh | 3 +- tox.ini | 34 ++- zuul.d/project.yaml | 2 + 51 files changed, 1316 insertions(+), 611 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index 9277e32..9189585 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9 +9 @@ keystoneauth1>=3.4.0 # Apache-2.0 -osc-lib>=1.8.0 # Apache-2.0 +osc-lib>=1.10.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index a0317c3..5e868e8 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4 +4 @@ -hacking>=1.0.0 # Apache-2.0 +hacking>=1.0.0,<1.1.0 # Apache-2.0 @@ -8 +8 @@ fixtures>=3.0.0 # Apache-2.0/BSD -requests-mock>=1.1.0 # Apache-2.0 +requests-mock>=1.2.0 # Apache-2.0 @@ -11,2 +10,0 @@ Babel!=2.4.0,>=2.3.4 # BSD -openstackdocstheme>=1.18.1 # Apache-2.0 -reno>=2.5.0 # Apache-2.0 @@ -14 +11,0 @@ oslotest>=3.2.0 # Apache-2.0 -sphinx!=1.6.6,>=1.6.2 # BSD @@ -17 +14 @@ tempest>=17.1.0 # Apache-2.0 -os-testr>=1.0.0 # Apache-2.0 +stestr>=1.0.0 # Apache-2.0
participants (1)
-
no-reply@openstack.org