[PKG-Openstack-devel] Bug#769223: python-cinder: delete volume failed due to unicode problems

Alberto Molina Coballes alb.molina at gmail.com
Wed Nov 12 08:39:00 UTC 2014

Package: python-cinder
Version: 2014.1.3-5
Severity: normal

Dear Maintainer,

An issue was found trying to delete a volume and it remains in "Error Deleting" state.

The relevant part of cinder-volume log file is:

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
return self._do_dispatch(endpoint, method, ctxt, args)
File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
 result = getattr(endpoint, method)(ctxt, **new_args)
File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 144, in lvo_inner1
 return lvo_inner2(inst, context, volume_id, **kwargs)
File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/lockutils.py", line 233, in inner
 retval = f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 143, in lvo_inner2
 return f(*_args, **_kwargs)
File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 416, in delete_volume
 {'status': 'error_deleting'})
File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/excutils.py", line 68, in __exit__
 six.reraise(self.type_, self.value, self.tb)
File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 405, in delete_volume
File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 233, in delete_volume
File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 128, in _delete_volume
 self._clear_volume(volume, is_snapshot)
File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 171, in _clear_volume
File "/usr/lib/python2.7/dist-packages/cinder/volume/utils.py", line 182, in clear_volume
File "/usr/lib/python2.7/dist-packages/cinder/volume/utils.py", line 138, in copy_volume
 *extra_flags, run_as_root=True)
File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 136, in execute
 return processutils.execute(*cmd, **kwargs)
File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py", line 175, in execute
 sanitized_stderr = strutils.mask_password(stderr)
File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/strutils.py", line 300, in mask_password
 message = six.text_type(message)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 27: ordinal not in range(128)

Same bug was reported to upstream and a patch proposed:


After apply this patch volumes can be correctly deleted and error message no longer appears.

Please consider apply this patch.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-cinder depends on:
ii  dpkg                   1.17.21
ii  python                 2.7.8-2
ii  python-amqplib         1.0.2-1
ii  python-anyjson         0.3.3-1
ii  python-babel           1.3+dfsg.1-4
ii  python-daemon          1.5.5-1
ii  python-eventlet        0.13.0-1
ii  python-glanceclient    1:0.12.0-1
ii  python-greenlet        0.4.2-1+b2
ii  python-iso8601         0.1.10-1
ii  python-keystoneclient  1:0.10.1-2
ii  python-kombu           3.0.21-2
ii  python-lockfile        1:0.8-2
ii  python-lxml            3.4.0-1
ii  python-migrate         0.9.1-1
ii  python-mysqldb         1.2.3-2.1
ii  python-netaddr         0.7.12-2
ii  python-novaclient      2:2.18.1-1
ii  python-oslo.config     1:1.3.0-2
ii  python-oslo.messaging
ii  python-oslo.rootwrap   1.2.0-3
ii  python-paramiko        1.15.1-1
ii  python-passlib         1.6.1-1
ii  python-paste 
ii  python-pastedeploy     1.5.2-1
ii  python-pbr             0.8.2-1
ii  python-requests        2.4.3-2
ii  python-routes          2.0-1
ii  python-rtslib-fb       2.1.45-4
ii  python-six             1.8.0-1
ii  python-sqlalchemy      0.9.8-1
ii  python-stevedore       0.14.1-1
ii  python-suds            0.4.1-15
ii  python-swiftclient     1:2.3.1-1
ii  python-taskflow        0.3.21-1
ii  python-webob           1.4-2

python-cinder recommends no packages.

python-cinder suggests no packages.

-- no debconf information

More information about the Openstack-devel mailing list