summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2019-09-08 05:28:44 +0000
committerGerrit Code Review <review@openstack.org>2019-09-08 05:28:44 +0000
commite98585c03d2410ae2d17d8e346dea10dff90ee2e (patch)
treea431c8cfb47aa749719e91117d01dd1c5f215dea
parent5b811d96d0cb1db0930dd268563de860eb2d723b (diff)
parentf8cc121df034f45c19a79389c9e7d37976e76f12 (diff)
downloadpython-cinderclient-e98585c03d2410ae2d17d8e346dea10dff90ee2e.tar.gz
Merge "Drop 'endpoints' and 'credentials' commands"
-rw-r--r--cinderclient/tests/functional/test_readonly_cli.py8
-rw-r--r--cinderclient/v2/shell.py19
-rw-r--r--releasenotes/notes/cinderclient-5-de0508ce5a221d21.yaml6
3 files changed, 6 insertions, 27 deletions
diff --git a/cinderclient/tests/functional/test_readonly_cli.py b/cinderclient/tests/functional/test_readonly_cli.py
index 3483aa4..87578a0 100644
--- a/cinderclient/tests/functional/test_readonly_cli.py
+++ b/cinderclient/tests/functional/test_readonly_cli.py
@@ -47,14 +47,6 @@ class CinderClientReadOnlyTests(base.ClientTestBase):
'Cipher', 'Key Size',
'Control Location'])
- def test_endpoints(self):
- out = self.cinder('endpoints')
- tables = self.parser.tables(out)
- for table in tables:
- headers = table['headers']
- self.assertGreaterEqual(2, len(headers))
- self.assertEqual('Value', headers[1])
-
def test_extra_specs_list(self):
extra_specs_list = self.cinder('extra-specs-list')
self.assertTableHeaders(extra_specs_list, ['ID', 'Name',
diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py
index 0c77f83..fb87a4f 100644
--- a/cinderclient/v2/shell.py
+++ b/cinderclient/v2/shell.py
@@ -20,7 +20,6 @@ import argparse
import collections
import copy
import os
-import warnings
from oslo_utils import strutils
import six
@@ -923,24 +922,6 @@ def do_type_access_remove(cs, args):
vtype, args.project_id)
-def do_endpoints(cs, args):
- """Discovers endpoints registered by authentication service."""
- warnings.warn(
- "``cinder endpoints`` is deprecated, use ``openstack catalog list`` "
- "instead. The ``cinder endpoints`` command may be removed in the P "
- "release or next major release of cinderclient (v2.0.0 or greater).")
- catalog = cs.client.service_catalog.catalog
- for e in catalog:
- utils.print_dict(e['endpoints'][0], e['name'])
-
-
-def do_credentials(cs, args):
- """Shows user credentials returned from auth."""
- warnings.warn(
- "``cinder credentials`` is deprecated, use ``openstack token issue`` "
- "indead.")
-
-
@utils.arg('tenant',
metavar='<tenant_id>',
help='ID of tenant for which to list quotas.')
diff --git a/releasenotes/notes/cinderclient-5-de0508ce5a221d21.yaml b/releasenotes/notes/cinderclient-5-de0508ce5a221d21.yaml
index 3cf32c6..588dfdd 100644
--- a/releasenotes/notes/cinderclient-5-de0508ce5a221d21.yaml
+++ b/releasenotes/notes/cinderclient-5-de0508ce5a221d21.yaml
@@ -10,3 +10,9 @@ upgrade:
This version of the python-cinderclient no longer supports the Cinder v1
API. Ensure all mananaged services have at least the v2 API available prior
to upgrading this client.
+ - |
+ The ``cinder endpoints`` command was deprecated and has now been removed.
+ The command ``openstack catalog list`` should be used instead.
+ - |
+ The ``cinder credentials`` command was deprecated and has now been removed.
+ The command ``openstack token issue`` should be used instead.