[openstack-announce] [release][openstack] python-openstackclient 2.4.0 release (newton)

no-reply at openstack.org no-reply at openstack.org
Wed Apr 20 18:07:50 UTC 2016


We are psyched to announce the release of:

python-openstackclient 2.4.0: OpenStack Command-line Client

This release is part of the newton release series.

With source available at:

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

With package available at:

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

Please report issues through launchpad:

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

For more details, please see below.

2.4.0
^^^^^


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

* Add "--disable-reason" option to the "service set" command

* Add "port create", "port list" and "port set" commands [Bug
  1519909 (https://bugs.launchpad.net/python-
  openstackclient/+bug/1519909)]

* Add "server restore" command

* The "security group create", "security group set" and "security
  group show" commands now uses Network v2 when enabled which results
  in a more detailed output for network security group rules. [Bug
  1519511 (https://bugs.launchpad.net/bugs/1519511)]

* Add "--project" and "--project-domain" options to the "security
  group create" command for Network v2. [Bug 1519511
  (https://bugs.launchpad.net/bugs/1519511)]

* Add "--ingress", "--egress", "--ethertype", "--project" and "--
  project-domain" options to the "security group rule create" command
  for Network v2 only. These options enable "egress" and "IPv6"
  security group rules along with setting the project. [Bug 1519512
  (https://bugs.launchpad.net/bugs/1519512)]

* The "security group rule list" command now uses Network v2 when
  enabled which results in "egress" security group rules being
  displayed. The "--long" option was also added for Network v2 to
  display direction and ethertype information. In addition, security
  group rules for all projects will be displayed when the "group"
  argument is not specified (admin only). This is done by default when
  using Network v2, but requires the new "--all-projects" option when
  using Compute v2. [Bug 1519512
  (https://bugs.launchpad.net/bugs/1519512)]

* The "security group rule create" command now supports a security
  group name for the "--src-group" option. [Bug 1540656
  (https://bugs.launchpad.net/bugs/1540656)]

* Add "subnet create" command. [Bug 1542364
  (https://bugs.launchpad.net/bugs/1542364)]

* Add "subnet pool create" and "subnet pool set" commands. [Bug
  1544586 (https://bugs.launchpad.net/python-
  openstackclient/+bug/1544586)] [Bug 1544591
  (https://bugs.launchpad.net/python-openstackclient/+bug/1544591)]

* Add provider network options "--provider-network-type", "--
  provider- physical-network" and "--provider-segment" to the "network
  create" and "network set" commands. These options are available for
  NetworkV2 only. [Bug 1545537
  (https://bugs.launchpad.net/bugs/1545537)]

* Add external network options "--external|--internal" and "--
  external" suboptions "--default|--no-default" to the "network
  create" and "network set" commands. These options are available for
  Network version 2 only. [Bug 1545537
  (https://bugs.launchpad.net/bugs/1545537)]

* Add "--image-property" option to "volume set" and "volume unset"
  commands

  Image properties are copied when a volume is created from an image.
  The properties are immutable on the image itself but may be updated
  or removed from the volume created from that image.

  [Bug 1554877 (https://bugs.launchpad.net/python-
  openstackclient/+bug/1554877)] [Bug 1554879
  (https://bugs.launchpad.net/python-openstackclient/+bug/1554879)]

* Add "--project" and "--project-domain" options to "volume type
  set" and "volume type unset" commands

  Use the "--project" option to restrict a volume type to a specific
  project. Volume types are public by default, restricted volume types
  should be made private with the "--private" option to the "volume
  create" command.

  [Bug 1554889 (https://bugs.launchpad.net/python-
  openstackclient/+bug/1554889)] [Bug 1554890
  (https://bugs.launchpad.net/python-openstackclient/+bug/1554890)]

* Add "host set" command [Bug 1556929 (https://bugs.launchpad.net
  /python-openstackclient/+bug/1556929)]

* Add "aggregate unset" command [Bug 1559866
  (https://bugs.launchpad.net/python-openstackclient/+bug/1559866)]

* Add global options "os-cert" and "--os-key" to support client
  certificate/key.  Environment variables "OS_CERT" and "OS_KEY", as
  well as the "cert" and "key" values in clouds.yaml may also be used
  [Bug 1565112 (https://bugs.launchpad.net/bugs/1565112)]

* Add "router add port" command [Bug 1546849
  (https://bugs.launchpad.net/bugs/1546849)]

* Add "router remove port" command [Bug 1546849
  (https://bugs.launchpad.net/bugs/1546849)]

* Add "router add subnet" command [Bug 1546849
  (https://bugs.launchpad.net/bugs/1546849)]

* Add "router remove subnet" command [Bug 1546849
  (https://bugs.launchpad.net/bugs/1546849)]

* Add "subnet set" command. [Bug 1542363
  (https://bugs.launchpad.net/bugs/1542363)]


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

* The "ip floating create" command now uses Network v2 when enabled
  [Bug 1519502 (https://bugs.launchpad.net/python-
  openstackclient/+bug/1519502)]

* The "security group rule create" command now uses Network v2 when
  enabled which results in a more detailed output for network security
  group rules that matches the "security group rule show" command.
  [Bug 1519512 (https://bugs.launchpad.net/bugs/1519512)]

* Deprecate global option "--profile" in favor of "--os-profile".

  "--profile" interferes with existing command options with the same
  name. Unfortunately it appeared in a release so we must follow the
  deprecation process and wait one year (April 2017) before removing
  it.

  [Bug 1571812 (https://bugs.launchpad.net/python-
  openstackclient/+bug/1571812)]


Bug Fixes
*********

* The "security group create" command now uses Network v2 when
  enabled which allows the security group description to be created
  with an empty value. In addition, the "tenant_id" field changed to
  "project_id" to match the "security group show" command output. [Bug
  1519511 (https://bugs.launchpad.net/bugs/1519511)]

* The "security group rule list" command no longer ignores the
  "group" argument when it is set to an empty value. [Bug 1519512
  (https://bugs.launchpad.net/bugs/1519512)]

* Fixed "openstack command list" to display properly [Bug 1545609
  (https://bugs.launchpad.net/python-openstackclient/+bug/1545609)]

* Fixed SSL/TLS verification for Network v2 commands. The commands
  were ignoring the "--insecure" and "--os-cacert" options and the
  "OS_CACERT" environment variable which caused them to fail with "An
  SSL error occurred." when authenticating using SSL/TLS. [Bug 1560157
  (https://bugs.launchpad.net/python-openstackclient/+bug/1560157)]

* Fixed "subnet pool list" command to properly disply the list of
  subnet pool prefixes in the "Prefixes" column. This fix is
  consistent with the "subnet pool create" and "subnet pool show"
  command output. [Bug 1569480
  (https://bugs.launchpad.net/bugs/1569480)]

* Make "--name" optional in "volume snapshot create" and "volume
  backup create" commands.

Changes in python-openstackclient 2.2.0..2.4.0
----------------------------------------------

530fe42 Rename --profile to --os-profile
8ab267c Updated from global requirements
02a46a0 Fix client certificate/key support for Network v2 commands
2a66493 Imported Translations from Zanata
aa1495e Add provider network options to osc network set
baf9641 Clean up for next release
94c9cd5 Add options to security group rule list
8c6b5a0 Initialize neutron client with region name
f9e3d45 Updated from global requirements
cc3a062 Remove methods argument from vloume/v2/fakes.py
8944585 State i18() changes and help messages improved
92950b6 Add support for removing volume-type-access
e128370 Fix wrong attribute name and add functional test for --snapshot
df3ee61 Remove methods argument from FakeHypervisorStats
926330d Propagate AttributeErrors when lazily loading plugins
67f8b89 Add external network options to osc network set
46decfb Trivial: Fix incorrect comment text
c92ac9d Append existing information during port set
573bb6b Use CommandFailed exception from tempest_lib
379fd72 Updated from global requirements
3a4d53a Fix prefixes output for subnet pool list
32c627e Doc: Unify repeatable option comments
a281ef8 Remove fake methods code from compute network
61a60ef Add Testing Ref in README.rst
a5a9cae Add project options to security group rule create
3a3f33b Add network options to security group rule create
be2d2a1 Add support for setting volume-type-access
827be8f Move keys() methods in each resource class to FakeResource
b3649a5 Add --address-scope option "subnet pool create/set"
0ea80a9 Fix pep8 fail that crept in
f3f8c20 use correct manager for volume snapshots
b5f10f4 Fix SSL/TLS verification for network commands
6b76860 Doc: Fix network command documentation issues
03d932e Append existing information during subnet set
a8c085f TrivialFix: Rename provider segment option
3485c22 Updated from global requirements
29c92f5 Updated from global requirements
ad6727d Clean up release notes since 2.2.0 release
2a9ba9d TrivialFix: Fix help messages for port set
73d15e3 Add option to clear information from ports
311e775 Make snapshot and backup name optional
b13ec98 Prefer assertEqual/assertIn over assertOutput/assertInOutput
e2e9c49 Correct addCleanup use in functests
3a8320a Support client certificate/key
1b351e1 Add provider network options to osc network create
107bc51 Add external network options to osc network create
67a8947 Fix typos in docstrings and comments
3c82c0e Improve tmpfile cleanup in functests
139a45b Remove unused method cleanup_tmpfile
bad2159 Use fixtures and addCleanup instead of tearDown
4d3f996 Log hint when --enable present with --disable-reason
c3f6ee9 Trivial: Rename FakehypervisorStats to FakeHypervisorStats
66f94dc Add name option to 'port set'
97492c1 rxtx factor should be a float
55b37d5 Don't mask authorization errors
7027d91 Add default value to pool-prefix in Subnet-pool
8ba257c Devref: Options with Multiple Values
cd96d29 Doc: Add missing command objects
a1a4706 Add --project to "subnet pool create"
c5c15a0 Follow Boolean Option rule
029654b Add fixed keypair create functional test
9174bc0 Fix subnet pool prefix length option
63c57eb Wrong param type in compute-service.rst
848d531 Remove unused method 'from_response'
b2e47b6 Aggregate object should be "grouping of compute hosts"
a3a2a7e Docs cleanup: volume command help
b4402a0 Docs cleanup: volume type
9d65abc Docs cleanup: sort subnet commands
c5b58a4 Refactor security group rule list to use SDK
add0e10 Added functional tests for 'service provider' v3 commands
e1e6880 Add unit tests for compute v2 aggregate
4cbcd02 Add "aggregate unset" to osc
2b95e36 Subnet: Add "subnet set" command using SDK
860dbc1 [Floating IP] Neutron support for "ip floating create" command
2109bce Support security group name for --src-group
d906507 Refactor security group rule create to use SDK
3e0e1f8 Trivial: Fix typo in common/limits.py
ee62150 Fix "server unset" document issue
4185398 Use assert_called_once_with() instead of assert_called_with()
9e42daa Add Subnet add/remove support to router
526f2f9 Remove superfluous variable assignment statements
0a65e8d Style fix for one line docstring according to flake8
8ecdc57 Add "router remove port" to osc
2e94f28 Add "router add port" to osc
236e74d Updated from global requirements
1d1c7a0 Image API v2: make volume_type optional
15edb2f Improve error for token issue command without auth
91eeacd Devref: Document OSC interfaces available to plugins
21e414d Fix keypair create --public-key
89182c4 Functional tests for openstackclient help messages
3ccc4f7 Trivial-Fix : Add a ' to the choices documentation
92aa981 update docs with status of plugins
aeef568 Fix options in port create/set
f70d9b8 Updated from global requirements
62a0246 Add option to allow filtering by router on port list
9bafea5 Add support for deleting Image-property
4d5c5d9 Add support for setting Image-property
8c31383 Sort commands in docs
1f02142 Doc: Fix documentation errors for command object
8664a2f Support "--long" option in ListService
7b2e3c7 Use assertItemsEqual() instead of assertListEqual()
6abed7a Trivial: Add release note for "subnet pool create" command
dc7e4fc Fix dict.keys() compatibility for python 3
3d6b072 Add doc describing how to handle API errors
a7c7687 Add project options to security group create
515cc87 Add incompatibility info for "ip floating list" command
4208f02 Enhance list extension unit test
2debde3 Trivial: Reorder classes in identity v3 in alphabetical order
ab9f80e Update reno for stable/mitaka
71b8919 Add "os subnet create" command using SDK
ea2dd8e Refactor security group create to use SDK
564c8ff Refactor security group show to use SDK
87d90f3 Add subnet pool functional tests
f0c3b4e Fixed command list
13e2bb9 Trivial: Use 'SSH' rather than 'Ssh'
237d7fe [Identity] Check return value is None in identity v3 unit tests
b711c3a Add --reason for disable service
81930ab Remove FakeFlavorResource class
9fcbd0a Add port functional tests
e0d5864 Add 'port set' command
3d741d3 [Subnet pool] Add 'subnet pool create' command support
f2fb007 [Subnet pool] Add 'subnet pool set' command support
11c253c Trivial: Fix incorrect comments in compute fakes.py
3ed5d23 remove py26 workaround in osc
762c4c9 [Identity] Check return value is None in identity v3 unit tests
d548942 Add port list command
fc24f37 Trivial: Remove useless return
7ba7384 Use _get_columns() to obtain columns in network.py
46e86e5 Add release note for security group set refactor
eb15742 Test take_action() instead of run() in unit tests
3ede46d Updated from global requirements
d1d4a40 Add 'port create' command
bf2dbf3 Add subnet functional tests
6a96ffc Updated from global requirements
2d3ded5 Updated from global requirements
e354d17 " openstack server image create " doesn't print proper info
b58dd4f [Volume] Check return value is None in volume unit tests
5044312 Fix incorrect unit test for router
bac9fb1 Refactor security group set to use SDK
84942bb Add test cases to test some commands with '--wait' and fix bug
ff3a1d3 [compute] Add set host command
6902a28 [compute] Support restore server
042e2b7 [compute] Add unit test for keypair

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

README.rst                                         |    4 +-
functional/common/exceptions.py                    |   26 -
functional/common/test.py                          |    9 +-
openstackclient/api/api.py                         |    2 +-
openstackclient/api/utils.py                       |    2 +-
openstackclient/common/clientmanager.py            |   22 +-
openstackclient/common/commandmanager.py           |    2 +-
openstackclient/common/exceptions.py               |   32 +-
openstackclient/common/limits.py                   |    4 +-
openstackclient/common/module.py                   |   20 +-
openstackclient/common/utils.py                    |   27 +-
openstackclient/compute/v2/aggregate.py            |   31 +
openstackclient/compute/v2/flavor.py               |    6 +-
openstackclient/compute/v2/floatingip.py           |   23 -
openstackclient/compute/v2/host.py                 |   57 ++
openstackclient/compute/v2/keypair.py              |    3 +-
openstackclient/compute/v2/security_group.py       |  295 ------
openstackclient/compute/v2/server.py               |   60 +-
openstackclient/compute/v2/service.py              |   65 +-
openstackclient/identity/v2_0/endpoint.py          |    1 -
openstackclient/identity/v2_0/project.py           |    3 -
openstackclient/identity/v2_0/role.py              |    1 -
openstackclient/identity/v2_0/service.py           |    1 -
openstackclient/identity/v2_0/token.py             |    1 -
openstackclient/identity/v2_0/user.py              |    2 -
openstackclient/identity/v3/identity_provider.py   |    4 +-
openstackclient/identity/v3/token.py               |    6 +-
openstackclient/identity/v3/trust.py               |    2 +-
openstackclient/image/v2/image.py                  |    5 +-
.../locale/de/LC_MESSAGES/openstackclient.po       |   28 +-
openstackclient/locale/openstackclient.pot         | 1045 +++++++++++++++-----
.../locale/zh_TW/LC_MESSAGES/openstackclient.po    |   21 +-
openstackclient/network/client.py                  |    9 +-
openstackclient/network/utils.py                   |   41 +
openstackclient/network/v2/floating_ip.py          |   90 +-
openstackclient/network/v2/network.py              |  171 +++-
openstackclient/network/v2/port.py                 |  355 ++++++-
openstackclient/network/v2/router.py               |  196 +++-
openstackclient/network/v2/security_group.py       |  239 ++++-
openstackclient/network/v2/security_group_rule.py  |  350 ++++++-
openstackclient/network/v2/subnet.py               |  299 +++++-
openstackclient/network/v2/subnet_pool.py          |  167 +++-
openstackclient/shell.py                           |   53 +-
openstackclient/volume/v1/backup.py                |    1 -
openstackclient/volume/v1/snapshot.py              |    3 +-
openstackclient/volume/v1/volume.py                |   46 +-
openstackclient/volume/v1/volume_type.py           |   50 +-
openstackclient/volume/v2/backup.py                |    1 -
openstackclient/volume/v2/snapshot.py              |    3 +-
openstackclient/volume/v2/volume.py                |   97 +-
openstackclient/volume/v2/volume_type.py           |  110 ++-
.../notes/add-disable-reason-6e0f28459a09a60d.yaml |    4 +
.../notes/add-port-commands-a3580662721a6312.yaml  |    5 +
.../notes/add-restore-server-d8c73e0e83df17dd.yaml |    4 +
.../notes/bug-1519502-d534db6c18adef20.yaml        |    4 +
.../notes/bug-1519502-f72236598d14d350.yaml        |    4 +
.../notes/bug-1519511-65b8901ae6ea2e63.yaml        |   14 +
.../notes/bug-1519511-65d8d21dde31e5e2.yaml        |    5 +
.../notes/bug-1519511-74bab0e0d32db043.yaml        |    7 +-
.../notes/bug-1519512-4231ac6014109142.yaml        |    7 +
.../notes/bug-1519512-48d98f09e44220a3.yaml        |    7 +
.../notes/bug-1519512-65df002102b7fb99.yaml        |   16 +
.../notes/bug-1540656-f7b7b7e3feef2440.yaml        |    5 +
.../notes/bug-1542364-5d1e93cfd24f0b65.yaml        |    5 +
.../notes/bug-1544586-0e6ca9a09dac0726.yaml        |    5 +
.../notes/bug-1545537-12bbf01d2280dd2f.yaml        |    8 +
.../notes/bug-1545537-7a66219d263bb1e5.yaml        |    8 +
.../notes/bug-1545609-bdc1efc17214463b.yaml        |    5 +
.../notes/bug-1554877-7f8479791eab45b7.yaml        |   11 +
.../notes/bug-1554889-32ba8d4bfb0f5f3d.yaml        |   12 +
.../notes/bug-1556929-edd78cded88ecdc9.yaml        |    4 +
.../notes/bug-1559866-733988f5dd5b07bb.yaml        |    4 +
.../notes/bug-1560157-bce572f58b43efa1.yaml        |    7 +
.../notes/bug-1565112-e0cea9bfbcab954f.yaml        |    6 +
.../notes/bug-1569480-c52e330548bfbd78.yaml        |    7 +
.../notes/bug-1571812-49cdce4df5f3d481.yaml        |   10 +
...-and-backup-name-optional-01971d33640ef1c8.yaml |    4 +
.../notes/router-port-add-0afe7392c080bcb8.yaml    |    5 +
.../notes/router-remove-port-058078c93819b0f4.yaml |    5 +
.../notes/router-subnet-469d095ae0bac884.yaml      |    8 +
.../notes/subnet-set-bbc26ecc16929302.yaml         |    5 +
releasenotes/source/index.rst                      |    1 +
releasenotes/source/mitaka.rst                     |    6 +
requirements.txt                                   |   14 +-
setup.cfg                                          |   34 +-
test-requirements.txt                              |   14 +-
192 files changed, 10323 insertions(+), 2877 deletions(-)


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

diff --git a/requirements.txt b/requirements.txt
index 7c01b7c..f88e771 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -7,2 +7,2 @@ six>=1.9.0 # MIT
-Babel>=1.3 # BSD
-cliff!=1.16.0,>=1.15.0 # Apache-2.0
+Babel!=2.3.0,!=2.3.1,!=2.3.2,!=2.3.3,>=1.3 # BSD
+cliff!=1.16.0,!=1.17.0,>=1.15.0 # Apache-2.0
@@ -10 +10 @@ keystoneauth1>=2.1.0 # Apache-2.0
-openstacksdk>=0.7.4 # Apache-2.0
+openstacksdk>=0.8.5 # Apache-2.0
@@ -12 +12 @@ os-client-config>=1.13.1 # Apache-2.0
-oslo.config>=3.7.0 # Apache-2.0
+oslo.config>=3.9.0 # Apache-2.0
@@ -15 +15 @@ oslo.utils>=3.5.0 # Apache-2.0
-python-glanceclient>=1.2.0 # Apache-2.0
+python-glanceclient>=2.0.0 # Apache-2.0
@@ -18 +18 @@ python-novaclient!=2.33.0,>=2.29.0 # Apache-2.0
-python-cinderclient>=1.3.1 # Apache-2.0
+python-cinderclient>=1.6.0 # Apache-2.0
@@ -20 +20 @@ requests!=2.9.0,>=2.8.1 # Apache-2.0
-stevedore>=1.5.0 # Apache-2.0
+stevedore>=1.9.0 # Apache-2.0
diff --git a/test-requirements.txt b/test-requirements.txt
index 5db2336..99fcbe8 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -8 +8 @@ discover # BSD
-fixtures>=1.3.1 # Apache-2.0/BSD
+fixtures<2.0,>=1.3.1 # Apache-2.0/BSD
@@ -12 +12 @@ oslotest>=1.10.0 # Apache-2.0
-reno>=0.1.1 # Apache2
+reno>=1.6.2 # Apache2
@@ -22,2 +22,2 @@ osprofiler>=1.1.0 # Apache-2.0
-python-barbicanclient>=3.3.0 # Apache-2.0
-python-congressclient>=1.0.0 # Apache-2.0
+python-barbicanclient>=4.0.0 # Apache-2.0
+python-congressclient<2000,>=1.0.0 # Apache-2.0
@@ -26,0 +27 @@ python-ironicclient>=1.1.0 # Apache-2.0
+python-ironic-inspector-client>=1.5.0 # Apache-2.0
@@ -27,0 +29 @@ python-mistralclient>=1.0.0 # Apache-2.0
+python-muranoclient>=0.8.2 # Apache-2.0
@@ -29 +31,3 @@ python-saharaclient>=0.13.0 # Apache-2.0
-python-zaqarclient>=0.3.0 # Apache-2.0
+python-searchlightclient>=0.2.0 #Apache-2.0
+python-senlinclient>=0.3.0 # Apache-2.0
+python-zaqarclient>=1.0.0 # Apache-2.0





More information about the OpenStack-announce mailing list