[release-announce] [ironic] python-ironicclient 2.0.0 (queens)

no-reply at openstack.org no-reply at openstack.org
Mon Nov 13 09:32:51 UTC 2017


We are ecstatic to announce the release of:

python-ironicclient 2.0.0: OpenStack Bare Metal Provisioning API
Client Library

This release is part of the queens release series.

The source is available from:

    https://git.openstack.org/cgit/openstack/python-ironicclient

Download the package from:

    https://pypi.python.org/pypi/python-ironicclient

Please report issues through launchpad:

    https://bugs.launchpad.net/python-ironicclient

For more details, please see below.

2.0.0
^^^^^


Prelude
*******

The 2.0 release has three major changes:

* The default API version for the "openstack baremetal" and "ironic"
  commands changed from "1.9" to "latest". "latest" is the maximum
  version understood by both the client and the server. This change
  makes the CLI automatically pull in new features and changes
  (including potentially breaking), from servers.

* The "python-ironicclient" package no longer includes the "python-
  openstackclient" (OSC) package as a requirement. "python-
  openstackclient" is needed if using the "openstack baremetal" CLI.

* The "ironic" command line interface ("ironic" commands) is
  deprecated and will be removed in the OpenStack S* release. Please
  use the "openstack baremetal" CLI instead.


New Features
************

* Adds missing "wanboot" value to the list of supported boot
  devices.

* The "ironic" command now supports the specification of API version
  "1". The actual version used will be the maximum 1.x version
  understood by both the client and the server.  Thus, it is currently
  identical to the "latest" value.

* The bare metal OSC client ("openstack baremetal" commands) now
  supports the specification of API version "1". The actual version
  used will be the maximum 1.x version understood by both the client
  and the server. Thus, it is currently identical to the "latest"
  value.

* Adds the ability to specify a configuration drive when rebuilding
  a node, via the "--config-drive" option to the "openstack baremetal
  node rebuild" command. This is available starting with Bare Metal
  API version 1.35.


Upgrade Notes
*************

* The default API version for the "ironic" command changed from
  "1.9" to "latest". "latest" is the maximum version understood by
  both the client and the server. This change makes the CLI
  automatically pull in new features and changes (including
  potentially breaking), when talking to new servers.

  Scripts that used the previous default API version, or that rely on
  some specific API behavior, should set the "IRONIC_API_VERSION"
  environment variable or use the "--ironic-api-version" CLI argument.

  Note: This change does not affect the Python API.

* The default API version for the bare metal OSC client ("openstack
  baremetal" commands) changed from "1.9" to "latest". "latest" is the
  maximum version understood by both the client and the server. This
  change makes the CLI automatically pull in new features and changes
  (including potentially breaking), when talking to new servers.

  Scripts that used the previous default API version, or that rely on
  some specific API behavior, should set the
  "OS_BAREMETAL_API_VERSION" environment variable or use the "--os-
  baremetal-api-version" CLI argument.

  Note: This change does not affect the Python API.

* "python-ironicclient" package no longer has the "python-
  openstackclient" package (OSC) as a requirement.

  Users installing only the "python-ironicclient" package will not
  automatically get access to "openstack baremetal ..." OSC commands.
  To have them available, the "python-openstackclient" package must be
  installed separately, or, when installing "python-ironicclient" via
  "pip", the new "cli" extra can be used to also install OSC:

     pip install python-ironicclient[cli]

* These previously deprecated commands were removed and are no
  longer available:

  * "openstack baremetal delete"

  * "openstack baremetal list"

  * "openstack baremetal show"

  * "openstack baremetal set"

  * "openstack baremetal unset"

  Instead, use these corresponding equivalent commands:

  * "openstack baremetal node delete"

  * "openstack baremetal node list"

  * "openstack baremetal node show"

  * "openstack baremetal node set"

  * "openstack baremetal node unset"

* Support for creating a single node via "openstack baremetal
  create" had been previously deprecated; it is now no longer
  available. Instead, use the equivalent command "openstack baremetal
  node create".  The only valid usage of "openstack baremetal create"
  is to create various resources (chassis, nodes, port groups, and
  ports) from resource files.


Deprecation Notes
*****************

* The "ironic" command line interface ("ironic" commands) is
  deprecated and will be removed in the OpenStack S* release.  Please
  use the "openstack baremetal" command line interface instead.


Bug Fixes
*********

* "openstack baremetal" commands no longer fail when specifying
  "latest" as the API version (via "--os-baremetal-api-version" or
  "export OS_BAREMETAL_API_VERSION=latest"). For more details, see bug
  1712935 (https://bugs.launchpad.net/ironic/+bug/1712935).

* Fixes a bug where the client could not access the ironic API
  service when the client was instantiated with a keystone token and
  an ironic API endpoint that included a virtual host (such as
  "http://hostname/baremetal"). For more details, see bug 1721599
  (https://launchpad.net/bugs/1721599).

* Users of the "ironic" command no longer have to specify an
  explicit API version to use the latest features. The default API
  version changed from "1.9" to "latest", which is the maximum version
  understood by both the client and the server.

* Users of the "openstack baremetal" commands no longer have to
  specify an explicit API version to use the latest features. The
  default API version changed from "1.9" to "latest", which is the
  maximum version understood by both the client and the server.

* When using "--os-baremetal-api-version=latest" (for "openstack
  baremetal" CLI) or "--ironic-api-version=latest" (for "ironic" CLI),
  the resulting API version is now the maximum API version supported
  by both the client and the server. Previously, the maximum API
  version supported by the client was used, which prevented "latest"
  from working with older servers.

* No longer emits the incorrect warning "Please specify what to set"
  (or "unset") when only the "--target-raid-config" is specified in
  the "openstack baremetal node set" (or "unset") command.

Changes in python-ironicclient 1.16.0..2.0.0
--------------------------------------------

9ab4193 Update release notes
12371e0 [reno] Prelude for release 2.0
9232ebd Move legacy ironicclient jobs in-tree
0729022 Add ability to provide configdrive when rebuilding with OSC
534810f Pass missing arguments to session in SessionClient._make_session_request
2856039 Switch the deprecated "ironic" CLI to "latest" API version by default
ac5b86a Make functional tests on JSON output debugable
c534b94 Set the default API version of OSC CLI to "latest"
27de3f6 Synchronize ironic and ironicclients list of boot devices
bc4403f Allow re-negotiation of the latest version supplied by CLI
c709b7f Clean up the release notes
2ce404b Use generic user for both zuul v2 and v3
8c58b75 Deprecate the ironic CLI
61c5eba Do not use urljoin in base http client
60e0ea2 Replace testr with stestr
ad1fe20 Update documentation
55864c9 Update README
a283a3e Updated from global requirements
9798f19 Cleanup test-requirements
6b1fefe Do not depend on python-openstackclient
8ba18c4 Updated from global requirements
23b2bf9 Updated from global requirements
64a8006 Remove deprecated OSC baremetal commands
f94722a flake8: Enable some off-by-default checks
2aba0dd Updated from global requirements
4cc3c6e Fix to use "." to source script files
ebb168a tox.ini: Add 'py36' to the default envlist
9d8afb3 Allow OS_BAREMETAL_API_VERSION=latest to work
bc2a3aa Add auto-generated CLI reference
14b5463 Updated from global requirements
1375c2e Add test for set/unset node target_raid_config
db99f8f Skip warning when changing target_raid_config
8d0e4ac Update the documentation link for doc migration
42dc387 Updated from global requirements
bf330cb Add basic tests for OSC plugin baremetal driver commands
fab6a8b Pass os_identity_api_version into functional tests
835775e Update reno for stable/pike
b369925 Create port with specific port group UUID in OSC


Diffstat (except docs and test files)
-------------------------------------

.gitignore                                         |   1 +
.stestr.conf                                       |   3 +
.testr.conf                                        |   5 -
CONTRIBUTING.rst                                   |   4 +-
README.rst                                         |  95 +++++++-----
ironicclient/common/http.py                        |  19 ++-
ironicclient/osc/plugin.py                         |  95 +++++++-----
ironicclient/osc/v1/baremetal_create.py            |  55 +------
ironicclient/osc/v1/baremetal_node.py              |  85 +++--------
ironicclient/shell.py                              |  65 ++++----
.../osc/v1/test_baremetal_driver_basic.py          |  42 ++++++
.../functional/osc/v1/test_baremetal_node_basic.py |  71 ++++++---
.../osc/v1/test_baremetal_node_provision_states.py |  49 +++---
.../functional/osc/v1/test_baremetal_port_basic.py |  18 +++
ironicclient/v1/client.py                          |   8 +-
ironicclient/v1/utils.py                           |   2 +-
.../legacy/ironicclient-dsvm-functional/post.yaml  |  15 ++
.../legacy/ironicclient-dsvm-functional/run.yaml   |  68 +++++++++
.../legacy/ironicclient-tempest-dsvm-src/post.yaml |  15 ++
.../legacy/ironicclient-tempest-dsvm-src/run.yaml  | 166 +++++++++++++++++++++
...sion_env_var_to_be_latest-28c8eed24f389673.yaml |   7 +
...4974-add-wanboot-to-supported-boot-devices.yaml |   3 +
.../deprecate-ironic-cli-686b7a238ddf3e25.yaml     |   6 +
.../fix-token-with-vhosts-5d0a6d53e807fa5e.yaml    |   7 +
.../notes/ironic-cli-version-a5cdec73d585444d.yaml |  27 ++++
.../notes/latest-default-41fdcc49701c4d70.yaml     |  28 ++++
.../latest-renegotiation-55daa01b3fc261be.yaml     |   9 ++
.../notes/no-osc-requirement-411f25fd10f18caa.yaml |  15 ++
...-node-rebuild-configdrive-8979d5b1373e8d5f.yaml |   7 +
...-unset-target-raid-config-9a1cecb5620eafda.yaml |   5 +
.../prelude-2-0-release-ee44150902d3d399.yaml      |  18 +++
...remove-deprecated-osc-cmd-6dc980299d2fbde4.yaml |  27 ++++
releasenotes/source/index.rst                      |   1 +
releasenotes/source/pike.rst                       |   6 +
requirements.txt                                   |  13 +-
setup.cfg                                          |   9 +-
test-requirements.txt                              |  16 +-
tools/run_functional.sh                            |   2 +-
tox.ini                                            |  20 ++-
zuul.d/legacy-ironicclient-jobs.yaml               |  17 +++
zuul.d/project.yaml                                |  30 ++++
63 files changed, 1320 insertions(+), 520 deletions(-)


Requirements updates
--------------------

diff --git a/requirements.txt b/requirements.txt
index 46e7c90..7f6e1ea 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -7,2 +7,2 @@ dogpile.cache>=0.6.2 # BSD
-jsonschema!=2.5.0,<3.0.0,>=2.0.0 # MIT
-keystoneauth1>=3.0.1 # Apache-2.0
+jsonschema<3.0.0,>=2.6.0 # MIT
+keystoneauth1>=3.2.0 # Apache-2.0
@@ -10,3 +10,3 @@ osc-lib>=1.7.0 # Apache-2.0
-oslo.i18n!=3.15.2,>=2.1.0 # Apache-2.0
-oslo.serialization!=2.19.1,>=1.10.0 # Apache-2.0
-oslo.utils>=3.20.0 # Apache-2.0
+oslo.i18n>=3.15.3 # Apache-2.0
+oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
+oslo.utils>=3.28.0 # Apache-2.0
@@ -14,2 +14 @@ PrettyTable<0.8,>=0.7.1 # BSD
-python-openstackclient!=3.10.0,>=3.3.0 # Apache-2.0
-PyYAML>=3.10.0 # MIT
+PyYAML>=3.10 # MIT
diff --git a/test-requirements.txt b/test-requirements.txt
index 22f529d..d86b63e 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -4 +4 @@
-hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
+hacking>=1.0.0 # Apache-2.0
@@ -6 +6 @@ coverage!=4.4,>=4.0 # Apache-2.0
-doc8 # Apache-2.0
+doc8>=0.6.0 # Apache-2.0
@@ -8,2 +8,2 @@ fixtures>=3.0.0 # Apache-2.0/BSD
-requests-mock>=1.1 # Apache-2.0
-mock>=2.0 # BSD
+requests-mock>=1.1.0 # Apache-2.0
+mock>=2.0.0 # BSD
@@ -11,2 +11,2 @@ Babel!=2.4.0,>=2.3.4 # BSD
-openstackdocstheme>=1.11.0 # Apache-2.0
-reno!=2.3.1,>=1.8.0 # Apache-2.0
+openstackdocstheme>=1.17.0 # Apache-2.0
+reno>=2.5.0 # Apache-2.0
@@ -14 +13,0 @@ oslotest>=1.10.0 # Apache-2.0
-python-subunit>=0.0.18 # Apache-2.0/BSD
@@ -18 +17 @@ tempest>=16.1.0 # Apache-2.0
-os-testr>=0.8.0 # Apache-2.0
+os-testr>=1.0.0 # Apache-2.0
@@ -19,0 +19 @@ ddt>=1.0.1 # MIT
+python-openstackclient>=3.12.0 # Apache-2.0






More information about the Release-announce mailing list