Bug 1043280

Summary: openstack-cinder: the CLI send commands with volume API version is set to 1 but you are accessing a 2 endpoint
Product: Red Hat OpenStack Reporter: Yogev Rabl <yrabl>
Component: openstack-packstackAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0CC: adarazs, aortega, apevec, derekh, dron, eharney, fpercoco, hateya, jagee, mlopes, pbrady, yeylon
Target Milestone: rcKeywords: TestBlocker
Target Release: 4.0   
Hardware: All   
OS: Linux   
Whiteboard: storage
Fixed In Version: openstack-packstack-2013.2.1-0.20.dev936.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:44:44 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:

Description Yogev Rabl 2013-12-15 16:15:38 UTC
Description of problem:
The cinder's CLI is trying to talk with the cinder client in API version 1, but the client is set as default on version two, thus when running a command (any command) without the specification of '--os-volume-api-version 2' an error will say:

ERROR: Volume API version is set to 1 but you are accessing a 2 endpoint. Change its value via either --os-volume-api-version or env[OS_VOLUME_API_VERSION]


Version-Release number of selected component (if applicable):
python-cinder-2013.2-9.el6ost.noarch
python-cinderclient-1.0.7-1.el6ost.noarch
openstack-cinder-2013.2-9.el6ost.noarch

the topology is:
Server 1: Nova, Neutron, Ceilometer, keystone & swift.
server 2: glance.
server 3: cinder.

How reproducible:
not on every topology.

Steps to Reproduce:
1. run any command with cinder CLI


Actual results:
An error that says that the user need to specify the API version.

Expected results:
The command to work with one API or the other.


Additional info:

Comment 2 Attila Darazs 2013-12-16 12:59:29 UTC
After some triaging, it seems that packstack is the culprit, and it's related to this new commit:

https://github.com/stackforge/packstack/commit/013a2f1ce70e28189f244039b91df175a54b456f

The endpoints are created this way:
| af05de1abba245ecbba70d688cf144e1 |   cinder   |    volume    |         Cinder Service         |
| 277057a4673f4403afeab04a88c16946 | cinder_v2  |    volume    |       Cinder Service v2        |

Instead of this, we should specify the v2 endpoints as "cinder" and "volumev2".

Let's revert that commit or fix the naming ASAP.

Thanks,
A.

Comment 7 Yogev Rabl 2013-12-19 09:22:57 UTC
verified on: 
python-cinder-2013.2-9.el6ost.noarch
python-cinderclient-1.0.7-1.el6ost.noarch
openstack-cinder-2013.2-9.el6ost.noarch

Comment 9 errata-xmlrpc 2013-12-20 00:44:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html