Call to _construct_http_client should use self.api_version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Critical
|
Scott DAngelo |
Bug Description
Description
===========
Using the current version of python-cinderclient on master with Nova, an attempt to attach a volume will fail. It appears that the new parameter "api_version" in the cinderclient is the cause.
Steps to reproduce
==================
1. Deploy Devstack
2. clone the python-cinderclient repo to get the latest version on master
/opt/stack$ git clone git://git.
3. remove the existing cinderclient from /usr/local/
sudo rm -rf /usr/local/
4. link the latest version:
sudo cp -rs /opt/stack/
5. Create a volume
cinder create 1
6. Boot a Nova instance
nova boot --image <image_id> --flavor 1 VM0
7. Attempt to attach the volume
nova volume-attach <instance_id> <volume_id> /dev/vdc
Expected result
===============
Volume attach succeeds
Actual result
=============
scott@DevMay9:
ERROR (ClientException): Unexpected API Error. Please report this at http://
<type 'exceptions.
n-api logs:
2016-05-10 13:36:04.799 ERROR nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
2016-05-10 13:36:04.799 TRACE nova.api.
Environment
===========
scott@DevMay9:
commit 421c52d9d341b07
Merge: cb0740a 8f4e803
Author: Jenkins <email address hidden>
Date: Tue May 10 15:37:46 2016 +0000
Merge "api-ref: complete verification for diagnostics.inc"
tags: | added: volumes |
Changed in nova: | |
status: | New → Invalid |
affects: | nova → cinder |
summary: |
- unreleased cinderclient fails volume-attach due to new Client parameter + Call to _construct_http_client should use self.api_version |
Changed in cinder: | |
status: | Invalid → In Progress |
assignee: | nobody → Scott DAngelo (scott-dangelo) |
Changed in cinder: | |
importance: | Undecided → Critical |
Changed in python-cinderclient: | |
milestone: | none → 1.7.0 |
assignee: | nobody → Scott DAngelo (scott-dangelo) |
importance: | Undecided → Critical |
status: | New → Fix Released |
no longer affects: | cinder |
This passed the tempest run with the commit on master, so it must be a local user error. I wouldn't copy files around like this, pip install it to be sure, you could have stale pyc's that are causing issues.