Bug 969790

Summary: DeprecationWarning when running certain cinder commands
Product: Red Hat OpenStack Reporter: Daniel Paikov <dpaikov>
Component: python-cinderclientAssignee: Jakub Ruzicka <jruzicka>
Status: CLOSED ERRATA QA Contact: Giulio Fidente <gfidente>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: abaron, bperkins, eharney, hateya, jkt, jruzicka, mlopes
Target Milestone: beta   
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-cinderclient-1.0.6-2.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:03:55 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 Daniel Paikov 2013-06-02 11:32:35 UTC
Certain cinder commands that result in failure (for example, cinder show with a non-existant volume) produce the following python error:

[root@orange-vdsf ~(keystone_admin)]# cinder show 1
/usr/lib/python2.6/site-packages/cinderclient/shell.py:507: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  message = e.message
ERROR: No volume with a name or ID of '1' exists.

Comment 2 Eric Harney 2013-06-03 20:20:10 UTC
To clarify, it's a warning, and not an error.

Comment 4 Eric Harney 2013-09-17 14:51:01 UTC
Only happens on Python 2.6 (RHOS).

Comment 5 Eric Harney 2013-10-09 21:24:03 UTC
Test case:

# unset OS_USERNAME
# cinder list
/usr/lib/python2.6/site-packages/cinderclient/shell.py:524: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  message = e.message
ERROR: You must provide a username via either --os-username or env[OS_USERNAME]
# nova list
ERROR: You must provide a username via either --os-username or env[OS_USERNAME]

Comment 7 Jakub Ruzicka 2013-10-24 12:52:34 UTC
Fix backported to stable/havana.

Comment 9 Scott Lewis 2013-11-19 16:54:59 UTC
Auto adding >= MODIFIED bugs to beta

Comment 10 Giulio Fidente 2013-11-20 12:48:05 UTC
verified against python-cinderclient-1.0.6-2.el6ost

Comment 13 errata-xmlrpc 2013-12-20 00:03:55 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

Comment 14 Red Hat Bugzilla 2023-09-14 01:45:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days