Cinder v1 do not work even though the endpoints are listed in 'openstack endpoints list'

Bug #1794309 reported by Yang Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Irina Mihai

Bug Description

Brief Description
-----------------
Querying cinder volumes using cinder v1 returns 404 resource not found error.

[wrsroot@controller-1 ~(keystone_admin)]$ cinder --os-volume-api-version 1 list
WARNING:cinderclient.api_versions:Version 1 is deprecated, use alternative version 2 instead.
ERROR: The resource could not be found.<br /><br />
(HTTP 404)

Severity
--------
Minor

Steps to Reproduce
------------------
source /etc/nova/openrc
cinder --os-volume-api-version 1 list

Expected Behavior
------------------
volume list returned

Actual Behavior
----------------
WARNING:cinderclient.api_versions:Version 1 is deprecated, use alternative version 2 instead.
ERROR: The resource could not be found.<br /><br />
(HTTP 404)

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Any

Branch/Pull Time/Commit
-----------------------
master as of 2018-09-24_20-18-00

Timestamp/Logs
--------------
There are no matching error/failure in /var/log/cinder/xxx.log

Tracebacks from cinder --os-volume-api-version 1 --debug list:

DEBUG:keystoneauth:RESP: [404] Content-Length: 112 Content-Type: application/json Date: Tue, 25 Sep 2018 14:40:26 GMT Connection: keep-alive
RESP BODY: {"message": "The resource could not be found.<br /><br />\n\n\n", "code": "404 Not Found", "title": "Not Found"}

DEBUG (shell:974) The resource could not be found.<br /><br />

 (HTTP 404)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cinderclient/shell.py", line 969, in main
    for item in sys.argv[1:]])
  File "/usr/lib/python2.7/site-packages/cinderclient/shell.py", line 787, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/cinderclient/v1/shell.py", line 191, in do_list
    volumes = cs.volumes.list(search_opts=search_opts, limit=args.limit)
  File "/usr/lib/python2.7/site-packages/cinderclient/v1/volumes.py", line 214, in list
    "volumes")
  File "/usr/lib/python2.7/site-packages/cinderclient/base.py", line 84, in _list
    resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 199, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 190, in _cs_request
    return self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/cinderclient/client.py", line 176, in request
    raise exceptions.from_response(resp, body)
NotFound: The resource could not be found.<br /><br />

 (HTTP 404)
DEBUG:cinderclient.shell:The resource could not be found.<br /><br />

Revision history for this message
Ghada Khalil (gkhalil) wrote :

v1 APIs should not be used anymore. The plan is to remove the endpoints. This will be done as part of cinder containerization since this will be the default configuration for stx.2019.03

Changed in starlingx:
importance: Undecided → Low
status: New → Triaged
assignee: nobody → Frank Miller (sensfan22)
tags: added: stx.2019.03 stx.distro.openstack
Frank Miller (sensfan22)
Changed in starlingx:
assignee: Frank Miller (sensfan22) → Irina Mihai (irina.mihai.wrs)
Revision history for this message
Irina Mihai (irina.mihai.wrs) wrote :

This issue is not present when running Cinder as a containerized service.

Changed in starlingx:
status: Triaged → Fix Released
description: updated
Revision history for this message
Irina Mihai (irina.mihai.wrs) wrote :

Adding https://review.openstack.org/#/c/611973/ as reference for deploying the containerized Cinder service.

Ken Young (kenyis)
tags: added: stx.2019.05
removed: stx.2019.03
Ken Young (kenyis)
tags: added: stx.2.0
removed: stx.2019.05
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.