We are delighted to announce the release of: shade 1.21.0: Simple client library for interacting with OpenStack clouds This release is part of the pike release series. Download the package from: https://pypi.python.org/pypi/shade For more details, please see below. 1.21.0 ^^^^^^ New Features ************ * get_compute_usage now has a default value for the start parameter of 2010-07-06. That was the date the OpenStack project started. It's completely impossible for someone to have Nova usage data that goes back further in time. Also, both the start and end date parameters now also accept strings which will be parsed and timezones will be properly converted to UTC which is what Nova expects. Bug Fixes ********* * Added requests and Babel to the direct dependencies list to work around issues with pip installation, entrypoints and transitive dependencies with conflicting exclusion ranges. Packagers of shade do not need to add these two new requirements to shade's dependency list - they are transitive depends and should be satisfied by the other things in the requirements list. Both will be removed from the list again once the python client libraries that pull them in have been removed. Changes in shade 1.20.0..1.21.0 ------------------------------- ba0e945 Pick most recent rather than first fixed address 072001a Allow a user to submit start and end time as strings 12b07e1 Fix get_compute_limits error message 8d34399 Fix get_compute_usage normalization problem e3d43e7 Find private ip addr based on fip attachment 329b939 Add ability to run any tox env in python3 ee01121 Fix issue with list_volumes when pagination is used b9872da Make sure security_groups is always a list c19a797 Updated from global requirements 750e0a9 Remove direct uses of nova_client in functional tests 5991a5e Updated from global requirements 892b502 Remove designateclient mock from recordset tests 4199976 Convert list_server_security_groups to REST f11edd7 Remove two unused nova tasks dbb42fc Include error message from server if one exists 9ecf600 Optimize the case of versioned image endpoint in catalog 40f66c7 Fix broken version discovery endpoints e1dfc72 Remove cinderclient from install-tips.sh a88d41e Fix tips jobs and convert Nova Floating IP calls dc77e7d Convert first ironic_client test to REST f94880c Move mocks of designate API discovery calls to base test class be0a0c9 Fix exception when using boot_from_volume for create_server 1c0a95b Move legacy client constructors to mixin 103bc13 Fix pep8 errors that were lurking 3f76b25 Remove cinder client 3ed9725 Make deprecated client helper method d3b653f Add 'public' as a default interface for get_mock_url ef35f02 Add super basic machine normalization d1d9ed7 Remove designateclient mock from zones tests 61141ae Remove direct calls to cinderclient fcaf06c Add "Multi Cloud with Shade" presentation 7801de7 Use REST API for volume quotas calls b6926bb Add pprint and pformat helper methods 2f8285d extend security_group and _rule with project id 81239f6 Remove neutronclient from shade's dependencies 1a8cb0a Remove cinderclient mocks from quotas tests e00ff9c Fix Neutron floating IP test c43f1d8 Use REST API for volume snapshot calls ad516fb Remove usage of neutron_client from functional tests 55ef136 Enable neutron service in server create and rebuild tests 072be85 Replace neutronclient with REST API calls in FIP commands 81d39a9 Updated from global requirements b390450 Add assert_calls check testing volume calls with timeout enabled f7f54d0 Remove has_service mock from Neutron FIP tests 4b75c85 Remove cinderclient mocks from snapshot tests 2449488 Remove neutronclient mocks from floating ips tests 689d3bb Use REST API for volume attach and volume backup calls f52448d Replace neutronclient with REST API calls in ports commands f7b1eb5 Don't get ports info from unavailable neutron service a2aad70 Removing unsed fake methods and classes 77bac2b Replace neutronclient with REST API calls in quotas commands cbc233d Replace neutronclient with REST API calls in security groups commands bcc7ea6 Use REST API for volume delete and detach calls be92751 Use REST API for volume type_access and volume create f430b94 Refactor the test_create_volume_invalidates test 7abe4e9 Replace neutronclient with REST API calls in router commands 478d4ba Move REST error_messages to error_message argument 944556e Remove two lines that are leftover and broken 17ab75b Convert test_role_assignments to requests mock 05f1600 Remove neutronclient mocks from sec groups tests 2079366 Remove neutronclient mocks from quotas tests b9073b5 Remove neutronclient mocks from ports tests e81bec0 Add optional error_message to adapter.request 8a4f997 Add in a bunch of TODOs about interface=admin a5c49cb Set interface=admin for keystonev2 keystone tests 60569b2 Add a _normalize_volume_backups method ca2f10b Use requests-mock for the volume backup tests a71bea8 Remove neutronclient mocks from router tests 8b6ae89 Replace neutronclient with REST API calls in subnet commands b964757 Define a base function to remove unneeded attributes 66e3168 Remove neutronclient mocks from subnet tests 80ebf88 Replace neutronclient with REST API calls in network commands 1c0c81f Move router related tests to separate module c214477 Updated from global requirements 65c350f Move subnet related tests to separate module cee8b6c Fix list_servers tests to not need a ton of neutron 950c450 Remove neutronclient mocks from network create tests d1d6706 Remove neutronclient mocks from network exceptions tests 0a39c01 Remove neutronclient mocks from network delete tests e61a5c0 Remove neutronclient mocks from network list tests 258a6a3 Use requests-mock for the list/add/remove volume types tests 09af82b Fix create/rebuild tests to not need a ton of neutron 7a2b579 Don't do all the network stuff in the rebuild poll 5dae187 Move unit tests for list networks to test_network.py file 4f807b8 Include two transitive dependencies to work around conflicts 0bfdaf4 Use requests-mock for all the attach/detach/delete tests 5c0f3f5 Remove stray line d5396cf Strip trailing slashes in test helper method 49fe112 Clarify some variable names in glance discovery afed15f Remove extra unneeded API calls Diffstat (except docs and test files) ------------------------------------- .../examples/service-conditional-overrides.py | 5 + extras/install-tips.sh | 11 +- .../compute-usage-defaults-5f5b2936f17ff400.yaml | 9 + ...orkaround-transitive-deps-1e7a214f3256b77e.yaml | 9 + requirements.txt | 14 +- shade/__init__.py | 2 - shade/_adapter.py | 10 +- shade/_legacy_clients.py | 197 ++ shade/_normalize.py | 113 +- shade/_tasks.py | 282 -- shade/_utils.py | 30 +- shade/exc.py | 38 +- shade/meta.py | 45 +- shade/openstackcloud.py | 1208 +++---- shade/operatorcloud.py | 193 +- .../unit/fixtures/catalog-versioned-image.json | 71 + test-requirements.txt | 4 +- tox.ini | 3 +- 77 files changed, 8411 insertions(+), 3595 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index 30a7fdd..8472bc6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11 +11,8 @@ ipaddress>=1.0.7;python_version<'3.3' # PSF -os-client-config>=1.22.0 # Apache-2.0 +os-client-config>=1.27.0 # Apache-2.0 +# These two are here to prevent issues with version pin mismatches from our +# client library transitive depends. +# Babel can be removed when ironicclient is removed (because of openstackclient +# transitive depend) +Babel!=2.4.0,>=2.3.4 # BSD +# requests can be removed when designateclient is removed +requests!=2.12.2,!=2.13.0,>=2.10.0 # Apache-2.0 @@ -14,0 +22 @@ futures>=3.0;python_version=='2.7' or python_version=='2.6' # BSD +iso8601>=0.1.11 # MIT @@ -16 +24 @@ futures>=3.0;python_version=='2.7' or python_version=='2.6' # BSD -keystoneauth1>=2.18.0 # Apache-2.0 +keystoneauth1>=2.20.0 # Apache-2.0 @@ -20,2 +27,0 @@ python-keystoneclient>=3.8.0 # Apache-2.0 -python-cinderclient>=2.0.1 # Apache-2.0 -python-neutronclient>=5.1.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index d1c79ca..2241f2a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6 +6 @@ hacking<0.12,>=0.11.0 # Apache-2.0 -coverage>=4.0 # Apache-2.0 +coverage!=4.4,>=4.0 # Apache-2.0 @@ -12 +12 @@ requests-mock>=1.1 # Apache-2.0 -sphinx>=1.5.1 # BSD +sphinx!=1.6.1,>=1.5.1 # BSD
participants (1)
-
no-reply@openstack.org