Bug 1733125

Summary: cinder endpoint is (should have been) deprecated by now yet we still see it.
Product: Red Hat OpenStack Reporter: Tzach Shefi <tshefi>
Component: python-cinderclientAssignee: Eric Harney <eharney>
Status: CLOSED DEFERRED QA Contact: Tzach Shefi <tshefi>
Severity: low Docs Contact: Chuck Copello <ccopello>
Priority: low    
Version: 15.0 (Stein)CC: abishop, eharney, jruzicka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-30 02:19:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tzach Shefi 2019-07-25 09:24:33 UTC
Description of problem: Minor client cleanup, when I try to run 
cinder endpoints I get a lovely notification about this command going away on Pike or v2 client. 


Version-Release number of selected component (if applicable):
puppet-cinder-14.4.1-0.20190420083336.1cf0604.el8ost.noarch
python3-cinderclient-4.2.0-0.20190520060354.953243d.el8ost.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Just to make sure we see/use v3 client. 
Passed Pike release ages ago. 

(overcloud) [stack@undercloud-0 ~]$ cinder version-list
Client supported API versions:
Minimum version 3.0
Maximum version 3.58

Server supported API versions:
+------+------------+----------------------+-------------+---------+
| Id   | Status     | Updated              | Min Version | Version |
+------+------------+----------------------+-------------+---------+
| v2.0 | DEPRECATED | 2017-02-25T12:00:00Z |             |         |
| v3.0 | CURRENT    | 2018-07-17T00:00:00Z | 3.0         | 3.59    |
+------+------------+----------------------+-------------+---------+

2.

(overcloud) [stack@undercloud-0 ~]$ cinder endpoints
/usr/lib/python3.6/site-packages/cinderclient/v2/shell.py:929: UserWarning: ``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).
  "``cinder endpoints`` is deprecated, use ``openstack catalog list`` "
+-----------+----------------------------------+
| heat-cfn  | Value                            |
+-----------+----------------------------------+
| id        | 032f3a628a8e46b9ae23dd6df3f4f558 |
| interface | admin                            |
| region    | regionOne                        |
| region_id | regionOne                        |
| url       | http://172.17.1.64:8000/v1       |
+-----------+----------------------------------+
+-----------+----------------------------------+
| barbican  | Value                            |
+-----------+----------------------------------+
| id        | 1270a0e4ac0f4a3aae71992a38d3a38d |
| interface | admin                            |
| region    | regionOne                        |
| region_id | regionOne                        |
| url       | http://172.17.1.64:9311          |
+-----------+----------------------------------+
+-----------+------------------------------------+
| placement | Value                              |
+-----------+------------------------------------+
| id        | 02e21f68642545828d23ef6bff31b311   |
| interface | public                             |
| region    | regionOne                          |
| region_id | regionOne                          |
| url       | https://10.0.0.101:13778/placement |


Actual results:

Well we get this nice notification when we run a command :

cinder endpoints
/usr/lib/python3.6/site-packages/cinderclient/v2/shell.py:929: UserWarning: ``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).
  "``cinder endpoints`` is deprecated, use ``openstack catalog list`` " 

Expected results:

We passed Pike, Cinder client now defaults to v3. 
Argo this command should get (have been) deprecated.

Additional info:

Comment 1 Alan Bishop 2019-07-30 02:19:45 UTC
This is something for the upstream community to handle (similar to bug 1733748 comment #1). Removing the v2 code is non-trivial.