Hello community,
here is the log from the commit of package python-cinderclient for
openSUSE:Factory checked in at 2019-06-12 13:15:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cinderclient (Old)
and /work/SRC/openSUSE:Factory/.python-cinderclient.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cinderclient"
Wed Jun 12 13:15:59 2019 rev:35 rq:709041 version:4.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cinderclient/python-cinderclient.changes
2019-05-03 22:40:13.210962756 +0200
+++
/work/SRC/openSUSE:Factory/.python-cinderclient.new.4811/python-cinderclient.changes
2019-06-12 13:16:01.696707891 +0200
@@ -1,0 +2,26 @@
+Tue Jun 11 06:16:28 UTC 2019 - [email protected]
+
+- update to version 4.2.0
+ - More shell completion cache additions
+ - Fix: cinder group-list not working with non-admin user
+ - Update .gitreview for stable/stein
+ - Add Python 3.6 classifier to setup.cfg
+ - Re-enable shell UUID completion cache
+ - Remove i18n.enable_lazy() translation
+ - Fix doc build error
+ - Add support for backup user ID
+ - Add dependency on requests lib
+ - Change openstack-dev to openstack-discuss
+ - Cleanup the home page
+ - Fix max version handling for help output
+ - Replace openstack.org git:// URLs with https://
+ - Replace assertRaisesRegexp with assertRaisesRegex
+ - Raise API max version for Stein updates
+ - Don't quote {posargs} in tox.ini
+ - Fix incorrect punctuation
+ - OpenDev Migration Patch
+ - Raise API max version for Rocky updates
+ - Change bash completion dir permissions to 0750
+ - Update UPPER_CONSTRAINTS_FILE for stable/stein
+
+-------------------------------------------------------------------
Old:
----
python-cinderclient-4.1.0.tar.gz
New:
----
python-cinderclient-4.2.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cinderclient.spec ++++++
--- /var/tmp/diff_new_pack.TIc1fU/_old 2019-06-12 13:16:02.128707438 +0200
+++ /var/tmp/diff_new_pack.TIc1fU/_new 2019-06-12 13:16:02.132707434 +0200
@@ -17,13 +17,13 @@
Name: python-cinderclient
-Version: 4.1.0
+Version: 4.2.0
Release: 0
Summary: Python API and CLI for OpenStack Cinder
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/python-cinderclient
-Source0:
https://files.pythonhosted.org/packages/source/p/python-cinderclient/python-cinderclient-4.1.0.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/p/python-cinderclient/python-cinderclient-4.2.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python2-PrettyTable >= 0.7.1
@@ -93,14 +93,14 @@
This package contains auto-generated documentation.
%prep
-%autosetup -p1 -n python-cinderclient-4.1.0
+%autosetup -p1 -n python-cinderclient-4.2.0
%py_req_cleanup
%build
%{python_build}
-PBR_VERSION=4.1.0 sphinx-build -b html doc/source doc/build/html
-PBR_VERSION=4.1.0 sphinx-build -b man doc/source doc/build/man
+PBR_VERSION=4.2.0 sphinx-build -b html doc/source doc/build/html
+PBR_VERSION=4.2.0 sphinx-build -b man doc/source doc/build/man
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
++++++ python-cinderclient-4.1.0.tar.gz -> python-cinderclient-4.2.0.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/.zuul.yaml
new/python-cinderclient-4.2.0/.zuul.yaml
--- old/python-cinderclient-4.1.0/.zuul.yaml 2018-10-08 20:03:35.000000000
+0200
+++ new/python-cinderclient-4.2.0/.zuul.yaml 2019-05-16 08:25:18.000000000
+0200
@@ -6,7 +6,7 @@
timeout: 4200
voting: false
required-projects:
- - openstack-infra/devstack-gate
+ - openstack/devstack-gate
- openstack/cinder
- openstack/python-cinderclient
@@ -18,7 +18,7 @@
timeout: 4200
voting: false
required-projects:
- - openstack-infra/devstack-gate
+ - openstack/devstack-gate
- openstack/cinder
- openstack/python-cinderclient
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/AUTHORS
new/python-cinderclient-4.2.0/AUTHORS
--- old/python-cinderclient-4.1.0/AUTHORS 2018-10-08 20:04:26.000000000
+0200
+++ new/python-cinderclient-4.2.0/AUTHORS 2019-05-16 08:26:12.000000000
+0200
@@ -85,6 +85,7 @@
Huanxuan Ao <[email protected]>
Hugh Saunders <[email protected]>
Ian Cordasco <[email protected]>
+Ian Wienand <[email protected]>
Igor A. Lukyanenkov <[email protected]>
Ivan Kolodyazhny <[email protected]>
Jakub Ruzicka <[email protected]>
@@ -201,6 +202,7 @@
Van Hung Pham <[email protected]>
Vasyl Khomenko <[email protected]>
Victor Stinner <[email protected]>
+Vieri <[email protected]>
Vincent Hou <[email protected]>
Vipin Balachandran <[email protected]>
Vishvananda Ishaya <[email protected]>
@@ -265,6 +267,7 @@
pawnesh.kumar <[email protected]>
pooja jadhav <[email protected]>
poojajadhav <[email protected]>
+qingszhao <[email protected]>
rajat29 <[email protected]>
rajiv <[email protected]>
reedip <[email protected]>
@@ -281,6 +284,7 @@
shu-mutou <[email protected]>
sonu.kumar <[email protected]>
stmcginnis <[email protected]>
+sunjia <[email protected]>
tpatil <[email protected]>
unknown <[email protected]>
venkatamahesh <[email protected]>
@@ -295,12 +299,14 @@
xing-yang <[email protected]>
yanjun.fu <[email protected]>
yatin karel <[email protected]>
+yenai <[email protected]>
yfzhao <[email protected]>
yrunts <[email protected]>
yuyafei <[email protected]>
zhangbailin <[email protected]>
zhangchenchen <[email protected]>
zhangdaolong <[email protected]>
+zhangyangyang <[email protected]>
zhangyanxian <[email protected]>
zheng yin <[email protected]>
zhengyin <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/ChangeLog
new/python-cinderclient-4.2.0/ChangeLog
--- old/python-cinderclient-4.1.0/ChangeLog 2018-10-08 20:04:26.000000000
+0200
+++ new/python-cinderclient-4.2.0/ChangeLog 2019-05-16 08:26:12.000000000
+0200
@@ -1,6 +1,31 @@
CHANGES
=======
+4.2.0
+-----
+
+* Raise API max version for Stein updates
+* Add support for backup user ID
+* Raise API max version for Rocky updates
+* OpenDev Migration Patch
+* Fix max version handling for help output
+* Replace openstack.org git:// URLs with https://
+* Don't quote {posargs} in tox.ini
+* More shell completion cache additions
+* Re-enable shell UUID completion cache
+* Change bash completion dir permissions to 0750
+* Fix: cinder group-list not working with non-admin user
+* Add dependency on requests lib
+* Fix incorrect punctuation
+* Fix doc build error
+* Cleanup the home page
+* Change openstack-dev to openstack-discuss
+* Add Python 3.6 classifier to setup.cfg
+* Remove i18n.enable\_lazy() translation
+* Replace assertRaisesRegexp with assertRaisesRegex
+* Update UPPER\_CONSTRAINTS\_FILE for stable/stein
+* Update .gitreview for stable/stein
+
4.1.0
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/PKG-INFO
new/python-cinderclient-4.2.0/PKG-INFO
--- old/python-cinderclient-4.1.0/PKG-INFO 2018-10-08 20:04:27.000000000
+0200
+++ new/python-cinderclient-4.2.0/PKG-INFO 2019-05-16 08:26:12.000000000
+0200
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: python-cinderclient
-Version: 4.1.0
+Version: 4.2.0
Summary: OpenStack Block Storage API Client Library
Home-page: https://docs.openstack.org/python-cinderclient/latest/
Author: OpenStack
-Author-email: [email protected]
+Author-email: [email protected]
License: UNKNOWN
Description: ========================
Team and repository tags
@@ -387,3 +387,4 @@
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/cinderclient/api_versions.py
new/python-cinderclient-4.2.0/cinderclient/api_versions.py
--- old/python-cinderclient-4.1.0/cinderclient/api_versions.py 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/api_versions.py 2019-05-16
08:25:18.000000000 +0200
@@ -29,7 +29,7 @@
# key is a deprecated version and value is an alternative version.
DEPRECATED_VERSIONS = {"1": "2"}
DEPRECATED_VERSION = "2.0"
-MAX_VERSION = "3.52"
+MAX_VERSION = "3.58"
MIN_VERSION = "3.0"
_SUBSTITUTIONS = {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/cinderclient/base.py
new/python-cinderclient-4.2.0/cinderclient/base.py
--- old/python-cinderclient-4.1.0/cinderclient/base.py 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/base.py 2019-05-16
08:25:18.000000000 +0200
@@ -273,7 +273,7 @@
cache_dir = os.path.expanduser(os.path.join(base_dir, uniqifier))
try:
- os.makedirs(cache_dir, 0o755)
+ os.makedirs(cache_dir, 0o750)
except OSError:
# NOTE(kiall): This is typically either permission denied while
# attempting to create the directory, or the directory
@@ -309,7 +309,10 @@
def write_to_completion_cache(self, cache_type, val):
cache = getattr(self, "_%s_cache" % cache_type, None)
if cache:
- cache.write("%s\n" % val)
+ try:
+ cache.write("%s\n" % val)
+ except UnicodeEncodeError:
+ pass
def _get(self, url, response_key=None):
resp, body = self.api.client.get(url)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/cinderclient/shell.py
new/python-cinderclient-4.2.0/cinderclient/shell.py
--- old/python-cinderclient-4.1.0/cinderclient/shell.py 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/shell.py 2019-05-16
08:25:12.000000000 +0200
@@ -39,7 +39,6 @@
import six.moves.urllib.parse as urlparse
import cinderclient
-from cinderclient import _i18n
from cinderclient._i18n import _
from cinderclient import api_versions
from cinderclient import client
@@ -47,10 +46,7 @@
from cinderclient import utils
-# Enable i18n lazy translation
-_i18n.enable_lazy()
-
-
+DEFAULT_MAJOR_OS_VOLUME_API_VERSION = "3"
DEFAULT_CINDER_ENDPOINT_TYPE = 'publicURL'
V1_SHELL = 'cinderclient.v1.shell'
V2_SHELL = 'cinderclient.v2.shell'
@@ -532,8 +528,10 @@
'--help' in argv) or ('-h' in argv) or not argv
if not options.os_volume_api_version:
- api_version = api_versions.get_api_version(
- api_versions.MAX_VERSION)
+ use_version = DEFAULT_MAJOR_OS_VOLUME_API_VERSION
+ if do_help:
+ use_version = api_versions.MAX_VERSION
+ api_version = api_versions.get_api_version(use_version)
else:
api_version = api_versions.get_api_version(
options.os_volume_api_version)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/cinderclient/tests/unit/test_api_versions.py
new/python-cinderclient-4.2.0/cinderclient/tests/unit/test_api_versions.py
--- old/python-cinderclient-4.1.0/cinderclient/tests/unit/test_api_versions.py
2018-10-08 20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/tests/unit/test_api_versions.py
2019-05-16 08:25:18.000000000 +0200
@@ -236,12 +236,12 @@
api_versions.MIN_VERSION = client_min
if exp_range:
- self.assertRaisesRegexp(exceptions.UnsupportedVersion,
- ".*range is '%s' to '%s'.*" %
- (server_min, server_max),
- api_versions.discover_version,
- self.fake_client,
- api_versions.APIVersion(requested_version))
+ self.assertRaisesRegex(exceptions.UnsupportedVersion,
+ ".*range is '%s' to '%s'.*" %
+ (server_min, server_max),
+ api_versions.discover_version,
+ self.fake_client,
+ api_versions.APIVersion(requested_version))
else:
discovered_version = api_versions.discover_version(
self.fake_client,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/cinderclient/tests/unit/test_shell.py
new/python-cinderclient-4.2.0/cinderclient/tests/unit/test_shell.py
--- old/python-cinderclient-4.1.0/cinderclient/tests/unit/test_shell.py
2018-10-08 20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/tests/unit/test_shell.py
2019-05-16 08:25:18.000000000 +0200
@@ -114,9 +114,11 @@
self.assertRaises(exceptions.CommandError, self.shell, 'help foofoo')
def test_help(self):
+ # Some expected help output, including microversioned commands
required = [
'.*?^usage: ',
'.*?(?m)^\s+create\s+Creates a volume.',
+ '.*?(?m)^\s+summary\s+Get volumes summary.',
'.*?(?m)^Run "cinder help SUBCOMMAND" for help on a subcommand.',
]
help_text = self.shell('help')
@@ -133,6 +135,16 @@
for r in required:
self.assertThat(help_text,
matchers.MatchesRegex(r, re.DOTALL | re.MULTILINE))
+
+ def test_help_on_subcommand_mv(self):
+ required = [
+ '.*?^usage: cinder summary',
+ '.*?(?m)^Get volumes summary.',
+ ]
+ help_text = self.shell('help summary')
+ for r in required:
+ self.assertThat(help_text,
+ matchers.MatchesRegex(r, re.DOTALL | re.MULTILINE))
@ddt.data('backup-create --help', '--help backup-create')
def test_dash_dash_help_on_subcommand(self, cmd):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/cinderclient/tests/unit/v2/test_shell.py
new/python-cinderclient-4.2.0/cinderclient/tests/unit/v2/test_shell.py
--- old/python-cinderclient-4.1.0/cinderclient/tests/unit/v2/test_shell.py
2018-10-08 20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/tests/unit/v2/test_shell.py
2019-05-16 08:25:18.000000000 +0200
@@ -529,10 +529,10 @@
def test_rename_invalid_args(self):
"""Ensure that error generated does not reference an HTTP code."""
- self.assertRaisesRegexp(exceptions.ClientException,
- '(?!HTTP)',
- self.run_command,
- 'rename volume-1234-abcd')
+ self.assertRaisesRegex(exceptions.ClientException,
+ '(?!HTTP)',
+ self.run_command,
+ 'rename volume-1234-abcd')
def test_rename_snapshot(self):
# basic rename with positional arguments
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/cinderclient/tests/unit/v3/test_shell.py
new/python-cinderclient-4.2.0/cinderclient/tests/unit/v3/test_shell.py
--- old/python-cinderclient-4.1.0/cinderclient/tests/unit/v3/test_shell.py
2018-10-08 20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/tests/unit/v3/test_shell.py
2019-05-16 08:25:18.000000000 +0200
@@ -140,28 +140,28 @@
{'command':
'group-list --filters name=456',
'expected':
- '/groups/detail?all_tenants=0&name=456'},
+ '/groups/detail?name=456'},
{'command':
'group-list --filters status=available',
'expected':
- '/groups/detail?all_tenants=0&status=available'},
+ '/groups/detail?status=available'},
{'command':
'group-list --filters name~=456',
'expected':
- '/groups/detail?all_tenants=0&name~=456'},
+ '/groups/detail?name~=456'},
# testcases for list group-snapshot
{'command':
'group-snapshot-list --status=error --filters status=available',
'expected':
- '/group_snapshots/detail?all_tenants=0&status=available'},
+ '/group_snapshots/detail?status=available'},
{'command':
'group-snapshot-list --filters availability_zone=123',
'expected':
- '/group_snapshots/detail?all_tenants=0&availability_zone=123'},
+ '/group_snapshots/detail?availability_zone=123'},
{'command':
'group-snapshot-list --filters status~=available',
'expected':
- '/group_snapshots/detail?all_tenants=0&status~=available'},
+ '/group_snapshots/detail?status~=available'},
# testcases for list message
{'command':
'message-list --event_id=123 --filters event_id=456',
@@ -632,7 +632,7 @@
def test_group_list(self):
self.run_command('--os-volume-api-version 3.13 group-list')
- self.assert_called_anytime('GET', '/groups/detail?all_tenants=0')
+ self.assert_called_anytime('GET', '/groups/detail')
def test_group_list__with_all_tenant(self):
self.run_command(
@@ -692,7 +692,7 @@
def test_group_snapshot_list(self):
self.run_command('--os-volume-api-version 3.14 group-snapshot-list')
self.assert_called_anytime('GET',
- '/group_snapshots/detail?all_tenants=0')
+ '/group_snapshots/detail')
def test_group_snapshot_show(self):
self.run_command('--os-volume-api-version 3.14 '
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/cinderclient/v2/shell.py
new/python-cinderclient-4.2.0/cinderclient/v2/shell.py
--- old/python-cinderclient-4.1.0/cinderclient/v2/shell.py 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/v2/shell.py 2019-05-16
08:25:12.000000000 +0200
@@ -1656,7 +1656,7 @@
metavar='<provider>',
type=str,
help='The encryption provider format. '
- 'For example, "luks" or "plain."')
+ 'For example, "luks" or "plain".')
@utils.arg('--cipher',
metavar='<cipher>',
type=str,
@@ -1683,8 +1683,8 @@
required=False,
default='front-end',
help='Notional service where encryption is performed. '
- 'Valid values are "front-end" or "back-end." '
- 'For example, front-end=Nova. Default is "front-end."')
+ 'Valid values are "front-end" or "back-end". '
+ 'For example, front-end=Nova. Default is "front-end".')
@utils.arg('--control_location',
type=str,
required=False,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/cinderclient/v3/shell.py
new/python-cinderclient-4.2.0/cinderclient/v3/shell.py
--- old/python-cinderclient-4.1.0/cinderclient/v3/shell.py 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/cinderclient/v3/shell.py 2019-05-16
08:25:18.000000000 +0200
@@ -72,6 +72,19 @@
vtypes = cs.volume_types.list(search_opts=search_opts)
shell_utils.print_volume_type_list(vtypes)
+ with cs.volume_types.completion_cache(
+ 'uuid',
+ cinderclient.v3.volume_types.VolumeType,
+ mode="w"):
+ for vtype in vtypes:
+ cs.volume_types.write_to_completion_cache('uuid', vtype.id)
+ with cs.volume_types.completion_cache(
+ 'name',
+ cinderclient.v3.volume_types.VolumeType,
+ mode="w"):
+ for vtype in vtypes:
+ cs.volume_types.write_to_completion_cache('name', vtype.name)
+
@utils.arg('--all-tenants',
metavar='<all_tenants>',
@@ -169,6 +182,9 @@
shell_utils.translate_volume_snapshot_keys(backups)
columns = ['ID', 'Volume ID', 'Status', 'Name', 'Size', 'Object Count',
'Container']
+ if cs.api_version >= api_versions.APIVersion('3.56'):
+ columns.append('User ID')
+
if args.sort:
sortby_index = None
else:
@@ -177,6 +193,20 @@
if show_count:
print("Backup in total: %s" % total_count)
+ with cs.backups.completion_cache(
+ 'uuid',
+ cinderclient.v3.volume_backups.VolumeBackup,
+ mode="w"):
+ for backup in backups:
+ cs.backups.write_to_completion_cache('uuid', backup.id)
+ with cs.backups.completion_cache(
+ 'name',
+ cinderclient.v3.volume_backups.VolumeBackup,
+ mode='w'):
+ for backup in backups:
+ if backup.name is not None:
+ cs.backups.write_to_completion_cache('name', backup.name)
+
@utils.arg('--detail',
action='store_true',
@@ -393,6 +423,20 @@
servers = [s.get('server_id') for s in vol.attachments]
setattr(vol, 'attached_to', ','.join(map(str, servers)))
+ with cs.volumes.completion_cache('uuid',
+ cinderclient.v3.volumes.Volume,
+ mode="w"):
+ for vol in volumes:
+ cs.volumes.write_to_completion_cache('uuid', vol.id)
+
+ with cs.volumes.completion_cache('name',
+ cinderclient.v3.volumes.Volume,
+ mode="w"):
+ for vol in volumes:
+ if vol.name is None:
+ continue
+ cs.volumes.write_to_completion_cache('name', vol.name)
+
if field_titles:
# Remove duplicate fields
key_list = ['ID']
@@ -642,6 +686,16 @@
utils.print_dict(info)
+ with cs.volumes.completion_cache('uuid',
+ cinderclient.v3.volumes.Volume,
+ mode="a"):
+ cs.volumes.write_to_completion_cache('uuid', volume.id)
+ if volume.name is not None:
+ with cs.volumes.completion_cache('name',
+ cinderclient.v3.volumes.Volume,
+ mode="a"):
+ cs.volumes.write_to_completion_cache('name', volume.name)
+
@utils.arg('volume',
metavar='<volume>',
@@ -1273,7 +1327,7 @@
nargs='?',
type=int,
const=1,
- default=utils.env('ALL_TENANTS', default=0),
+ default=utils.env('ALL_TENANTS', default=None),
help='Shows details for all tenants. Admin only.')
@utils.arg('--filters',
type=six.text_type,
@@ -1548,7 +1602,7 @@
nargs='?',
type=int,
const=1,
- default=0,
+ default=utils.env('ALL_TENANTS', default=None),
help='Shows details for all tenants. Admin only.')
@utils.arg('--status',
metavar='<status>',
@@ -1572,10 +1626,8 @@
def do_group_snapshot_list(cs, args):
"""Lists all group snapshots."""
- all_tenants = int(os.environ.get("ALL_TENANTS", args.all_tenants))
-
search_opts = {
- 'all_tenants': all_tenants,
+ 'all_tenants': args.all_tenants,
'status': args.status,
'group_id': args.group_id,
}
@@ -2027,6 +2079,13 @@
if show_count:
print("Snapshot in total: %s" % total_count)
+ with cs.volume_snapshots.completion_cache(
+ 'uuid',
+ cinderclient.v3.volume_snapshots.Snapshot,
+ mode='w'):
+ for snapshot in snapshots:
+ cs.volume_snapshots.write_to_completion_cache('uuid', snapshot.id)
+
@api_versions.wraps('3.27')
@utils.arg('--all-tenants',
@@ -2404,6 +2463,12 @@
utils.print_dict(info)
+ with cs.backups.completion_cache(
+ 'uuid',
+ cinderclient.v3.volume_backups.VolumeBackup,
+ mode="a"):
+ cs.backups.write_to_completion_cache('uuid', backup.id)
+
@utils.arg('volume', metavar='<volume>',
help='Name or ID of volume to transfer.')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/doc/source/conf.py
new/python-cinderclient-4.2.0/doc/source/conf.py
--- old/python-cinderclient-4.1.0/doc/source/conf.py 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/doc/source/conf.py 2019-05-16
08:25:12.000000000 +0200
@@ -16,6 +16,8 @@
import sys
import pbr.version
+sys.setrecursionlimit(4000)
+
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/doc/source/contributor/functional_tests.rst
new/python-cinderclient-4.2.0/doc/source/contributor/functional_tests.rst
--- old/python-cinderclient-4.1.0/doc/source/contributor/functional_tests.rst
2018-10-08 20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/doc/source/contributor/functional_tests.rst
2019-05-16 08:25:12.000000000 +0200
@@ -1,7 +1,4 @@
-==================
-CINDERCLIENT Tests
-==================
-
+================
Functional Tests
================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/doc/source/contributor/unit_tests.rst
new/python-cinderclient-4.2.0/doc/source/contributor/unit_tests.rst
--- old/python-cinderclient-4.1.0/doc/source/contributor/unit_tests.rst
2018-10-08 20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/doc/source/contributor/unit_tests.rst
2019-05-16 08:25:12.000000000 +0200
@@ -1,7 +1,4 @@
-==================
-CINDERCLIENT Tests
-==================
-
+==========
Unit Tests
==========
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/doc/source/index.rst
new/python-cinderclient-4.2.0/doc/source/index.rst
--- old/python-cinderclient-4.1.0/doc/source/index.rst 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/doc/source/index.rst 2019-05-16
08:25:12.000000000 +0200
@@ -34,41 +34,25 @@
[]
User Guides
-===========
-
-In order to use the CLI, you must provide your OpenStack username, password,
-tenant, and auth endpoint. Use the corresponding configuration options
-(``--os-username``, ``--os-password``, ``--os-tenant-id``, and
-``--os-auth-url``) or set them in environment variables::
-
- export OS_USERNAME=user
- export OS_PASSWORD=pass
- export OS_TENANT_ID=b363706f891f48019483f8bd6503c54b
- export OS_AUTH_URL=http://auth.example.com:5000/v2.0
-
-Once you've configured your authentication parameters, you can run ``cinder
-help`` to see a complete listing of available commands.
-
-See also :doc:`/cli/index` for detailed documentation.
+~~~~~~~~~~~
.. toctree::
:maxdepth: 2
- user/cinder
+ user/shell
+ user/no_auth
Command-Line Reference
-======================
+~~~~~~~~~~~~~~~~~~~~~~
.. toctree::
:maxdepth: 2
cli/index
cli/details
- user/shell
- user/no_auth
Developer Guides
-================
+~~~~~~~~~~~~~~~~
.. toctree::
:maxdepth: 2
@@ -77,7 +61,7 @@
contributor/unit_tests
Release Notes
-=============
+~~~~~~~~~~~~~
All python-cinderclient release notes can now be found on the `release notes`_
page.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/doc/source/user/cinder.rst
new/python-cinderclient-4.2.0/doc/source/user/cinder.rst
--- old/python-cinderclient-4.1.0/doc/source/user/cinder.rst 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/doc/source/user/cinder.rst 1970-01-01
01:00:00.000000000 +0100
@@ -1,58 +0,0 @@
-==============================
-:program:`cinder` CLI man page
-==============================
-
-.. program:: cinder
-.. highlight:: bash
-
-
-SYNOPSIS
-========
-
-:program:`cinder` [options] <command> [command-options]
-
-:program:`cinder help`
-
-:program:`cinder help` <command>
-
-
-DESCRIPTION
-===========
-
-The :program:`cinder` command line utility interacts with OpenStack Block
-Storage Service (Cinder).
-
-In order to use the CLI, you must provide your OpenStack username, password,
-project (historically called tenant), and auth endpoint. You can use
-configuration options `--os-username`, `--os-password`, `--os-tenant-name` or
-`--os-tenant-id`, and `--os-auth-url` or set corresponding environment
-variables::
-
- export OS_USERNAME=user
- export OS_PASSWORD=pass
- export OS_TENANT_NAME=myproject
- export OS_AUTH_URL=http://auth.example.com:5000/v3
-
-You can select an API version to use by `--os-volume-api-version`
-option or by setting corresponding environment variable::
-
- export OS_VOLUME_API_VERSION=3
-
-
-OPTIONS
-=======
-
-To get a list of available commands and options run::
-
- cinder help
-
-To get usage and options of a command::
-
- cinder help <command>
-
-
-BUGS
-====
-
-Cinder client is hosted in Launchpad so you can view current bugs at
-https://bugs.launchpad.net/python-cinderclient/.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/doc/source/user/no_auth.rst
new/python-cinderclient-4.2.0/doc/source/user/no_auth.rst
--- old/python-cinderclient-4.1.0/doc/source/user/no_auth.rst 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/doc/source/user/no_auth.rst 2019-05-16
08:25:12.000000000 +0200
@@ -1,6 +1,6 @@
-=========================
-CINDERCLIENT Using noauth
-=========================
+============
+Using noauth
+============
Cinder Server side API setup
============================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/playbooks/legacy/cinderclient-dsvm-functional/run.yaml
new/python-cinderclient-4.2.0/playbooks/legacy/cinderclient-dsvm-functional/run.yaml
---
old/python-cinderclient-4.1.0/playbooks/legacy/cinderclient-dsvm-functional/run.yaml
2018-10-08 20:03:35.000000000 +0200
+++
new/python-cinderclient-4.2.0/playbooks/legacy/cinderclient-dsvm-functional/run.yaml
2019-05-16 08:25:12.000000000 +0200
@@ -13,12 +13,12 @@
set -x
cat > clonemap.yaml << EOF
clonemap:
- - name: openstack-infra/devstack-gate
+ - name: openstack/devstack-gate
dest: devstack-gate
EOF
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
- git://git.openstack.org \
- openstack-infra/devstack-gate
+ https://opendev.org \
+ openstack/devstack-gate
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml
new/python-cinderclient-4.2.0/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml
---
old/python-cinderclient-4.1.0/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml
2018-10-08 20:03:35.000000000 +0200
+++
new/python-cinderclient-4.2.0/playbooks/legacy/cinderclient-dsvm-functional-identity-v3-only/run.yaml
2019-05-16 08:25:18.000000000 +0200
@@ -14,12 +14,12 @@
set -x
cat > clonemap.yaml << EOF
clonemap:
- - name: openstack-infra/devstack-gate
+ - name: openstack/devstack-gate
dest: devstack-gate
EOF
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
- git://git.openstack.org \
- openstack-infra/devstack-gate
+ https://opendev.org \
+ openstack/devstack-gate
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/python_cinderclient.egg-info/PKG-INFO
new/python-cinderclient-4.2.0/python_cinderclient.egg-info/PKG-INFO
--- old/python-cinderclient-4.1.0/python_cinderclient.egg-info/PKG-INFO
2018-10-08 20:04:26.000000000 +0200
+++ new/python-cinderclient-4.2.0/python_cinderclient.egg-info/PKG-INFO
2019-05-16 08:26:12.000000000 +0200
@@ -1,10 +1,10 @@
Metadata-Version: 1.1
Name: python-cinderclient
-Version: 4.1.0
+Version: 4.2.0
Summary: OpenStack Block Storage API Client Library
Home-page: https://docs.openstack.org/python-cinderclient/latest/
Author: OpenStack
-Author-email: [email protected]
+Author-email: [email protected]
License: UNKNOWN
Description: ========================
Team and repository tags
@@ -387,3 +387,4 @@
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/python_cinderclient.egg-info/SOURCES.txt
new/python-cinderclient-4.2.0/python_cinderclient.egg-info/SOURCES.txt
--- old/python-cinderclient-4.1.0/python_cinderclient.egg-info/SOURCES.txt
2018-10-08 20:04:27.000000000 +0200
+++ new/python-cinderclient-4.2.0/python_cinderclient.egg-info/SOURCES.txt
2019-05-16 08:26:12.000000000 +0200
@@ -198,7 +198,6 @@
doc/source/cli/index.rst
doc/source/contributor/functional_tests.rst
doc/source/contributor/unit_tests.rst
-doc/source/user/cinder.rst
doc/source/user/no_auth.rst
doc/source/user/shell.rst
playbooks/legacy/cinderclient-dsvm-functional/post.yaml
@@ -215,6 +214,7 @@
python_cinderclient.egg-info/top_level.txt
releasenotes/notes/add-generic-reset-state-command-d83v1f3accbf5807.yaml
releasenotes/notes/attachment-mode-8427aa6a2fa26e70.yaml
+releasenotes/notes/backup-user-id-059ccea871893a0b.yaml
releasenotes/notes/bug-1608166-ad91a7a9f50e658a.yaml
releasenotes/notes/bug-1675973-ad91a7a9f50e658a.yaml
releasenotes/notes/bug-1675974-34edd5g9870e65b2.yaml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/python_cinderclient.egg-info/pbr.json
new/python-cinderclient-4.2.0/python_cinderclient.egg-info/pbr.json
--- old/python-cinderclient-4.1.0/python_cinderclient.egg-info/pbr.json
2018-10-08 20:04:26.000000000 +0200
+++ new/python-cinderclient-4.2.0/python_cinderclient.egg-info/pbr.json
2019-05-16 08:26:12.000000000 +0200
@@ -1 +1 @@
-{"git_version": "4e17e1d", "is_release": true}
\ No newline at end of file
+{"git_version": "953243d", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/python_cinderclient.egg-info/requires.txt
new/python-cinderclient-4.2.0/python_cinderclient.egg-info/requires.txt
--- old/python-cinderclient-4.1.0/python_cinderclient.egg-info/requires.txt
2018-10-08 20:04:26.000000000 +0200
+++ new/python-cinderclient-4.2.0/python_cinderclient.egg-info/requires.txt
2019-05-16 08:26:12.000000000 +0200
@@ -6,3 +6,4 @@
six>=1.10.0
oslo.i18n>=3.15.3
oslo.utils>=3.33.0
+requests!=2.20.0,>=2.14.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-cinderclient-4.1.0/releasenotes/notes/backup-user-id-059ccea871893a0b.yaml
new/python-cinderclient-4.2.0/releasenotes/notes/backup-user-id-059ccea871893a0b.yaml
---
old/python-cinderclient-4.1.0/releasenotes/notes/backup-user-id-059ccea871893a0b.yaml
1970-01-01 01:00:00.000000000 +0100
+++
new/python-cinderclient-4.2.0/releasenotes/notes/backup-user-id-059ccea871893a0b.yaml
2019-05-16 08:25:12.000000000 +0200
@@ -0,0 +1,5 @@
+---
+features:
+ - |
+ Starting with API microversion 3.56, ``backup-list`` and ``backup-show``
+ will include the ``User ID`` denoting the user that created the backup.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/requirements.txt
new/python-cinderclient-4.2.0/requirements.txt
--- old/python-cinderclient-4.1.0/requirements.txt 2018-10-08
20:03:35.000000000 +0200
+++ new/python-cinderclient-4.2.0/requirements.txt 2019-05-16
08:25:12.000000000 +0200
@@ -9,3 +9,4 @@
six>=1.10.0 # MIT
oslo.i18n>=3.15.3 # Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0
+requests!=2.20.0,>=2.14.2 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/setup.cfg
new/python-cinderclient-4.2.0/setup.cfg
--- old/python-cinderclient-4.1.0/setup.cfg 2018-10-08 20:04:27.000000000
+0200
+++ new/python-cinderclient-4.2.0/setup.cfg 2019-05-16 08:26:12.000000000
+0200
@@ -4,7 +4,7 @@
description-file =
README.rst
author = OpenStack
-author-email = [email protected]
+author-email = [email protected]
home-page = https://docs.openstack.org/python-cinderclient/latest/
classifier =
Development Status :: 5 - Production/Stable
@@ -19,6 +19,7 @@
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
+ Programming Language :: Python :: 3.6
[global]
setup-hooks =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-cinderclient-4.1.0/tox.ini
new/python-cinderclient-4.2.0/tox.ini
--- old/python-cinderclient-4.1.0/tox.ini 2018-10-08 20:03:35.000000000
+0200
+++ new/python-cinderclient-4.2.0/tox.ini 2019-05-16 08:25:18.000000000
+0200
@@ -16,11 +16,11 @@
passenv = *_proxy *_PROXY
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = find . -type f -name "*.pyc" -delete
- stestr run '{posargs}'
+ stestr run {posargs}
stestr slowest
whitelist_externals = find
@@ -31,7 +31,7 @@
[testenv:pylint]
basepython = python3
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
-r{toxinidir}/requirements.txt
pylint==1.9.1
commands = bash tools/lintstack.sh
@@ -55,7 +55,7 @@
[testenv:docs]
basepython = python3
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html
@@ -63,14 +63,14 @@
[testenv:releasenotes]
basepython = python3
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html
releasenotes/source releasenotes/build/html
[testenv:functional]
basepython = python3
-commands = stestr run '{posargs}'
+commands = stestr run {posargs}
setenv =
{[testenv]setenv}
OS_TEST_PATH = ./cinderclient/tests/functional