Merge "Drop 'endpoints' and 'credentials' commands"

This commit is contained in:
Zuul 2019-09-08 05:28:44 +00:00 committed by Gerrit Code Review
commit e98585c03d
3 changed files with 6 additions and 27 deletions

View File

@ -47,14 +47,6 @@ class CinderClientReadOnlyTests(base.ClientTestBase):
'Cipher', 'Key Size', 'Cipher', 'Key Size',
'Control Location']) '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): def test_extra_specs_list(self):
extra_specs_list = self.cinder('extra-specs-list') extra_specs_list = self.cinder('extra-specs-list')
self.assertTableHeaders(extra_specs_list, ['ID', 'Name', self.assertTableHeaders(extra_specs_list, ['ID', 'Name',

View File

@ -20,7 +20,6 @@ import argparse
import collections import collections
import copy import copy
import os import os
import warnings
from oslo_utils import strutils from oslo_utils import strutils
import six import six
@ -923,24 +922,6 @@ def do_type_access_remove(cs, args):
vtype, args.project_id) 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', @utils.arg('tenant',
metavar='<tenant_id>', metavar='<tenant_id>',
help='ID of tenant for which to list quotas.') help='ID of tenant for which to list quotas.')

View File

@ -10,3 +10,9 @@ upgrade:
This version of the python-cinderclient no longer supports the Cinder v1 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 API. Ensure all mananaged services have at least the v2 API available prior
to upgrading this client. 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.