yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #24206
[Bug 1387327] [NEW] Fail to create VM snapshot with unicode snapshot name
Public bug reported:
When I attempt to create a VM snapshot via Horizon UI, I name this new
snapshot a unicode name (snapshot-ABC一丁七ÇàâアイウДфэبتثअइउ€¥噂ソ十豹竹敷). Then
the snapshot operation failed in nova-compute process. The stack trace
is:
2014-10-29 16:11:26.077 3551 ERROR oslo.messaging.rpc.dispatcher [req-16611064-fded-4ba1-b981-125270b0540b ] Exception during message handling: 'ascii' codec can't decode byte 0xef in position 28: ordinal not in range(128)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher payload)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return f(self, context, *args, **kw)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 302, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher pass
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 288, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 330, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 318, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 378, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher instance=instance)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 368, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher *args, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3071, in snapshot_instance
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher task_states.IMAGE_SNAPSHOT)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3106, in _snapshot_instance
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher update_task_state)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1752, in snapshot
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher image_file)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/image/api.py", line 126, in update
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher purge_props=purge_props)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 405, in update
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher _reraise_translated_image_exception(image_id)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 403, in update
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher image_id, **image_meta)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 232, in call
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return getattr(client.images, method)(*args, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/glanceclient/v1/images.py", line 329, in update
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher resp, body = self.client.put(url, headers=hdrs, data=image_data)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 259, in put
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return self._request('PUT', url, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 200, in _request
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/requests/sessions.py", line 456, in request
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher resp = self.send(prep, **send_kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/requests/sessions.py", line 559, in send
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher r = adapter.send(request, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/requests/adapters.py", line 345, in send
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher low_conn.endheaders()
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher self._send_output()
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib64/python2.6/httplib.py", line 778, in _send_output
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher msg = "\r\n".join(self._buffer)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 28: ordinal not in range(128)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher
2014-10-29 16:11:26.155 3551 ERROR oslo.messaging._drivers.common [req-16611064-fded-4ba1-b981-125270b0540b ] Returning exception 'ascii' codec can't decode byte 0xef in position 28: ordinal not in range(128) to caller
** Affects: python-glanceclient
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1387327
Title:
Fail to create VM snapshot with unicode snapshot name
Status in Python client library for Glance:
New
Bug description:
When I attempt to create a VM snapshot via Horizon UI, I name this new
snapshot a unicode name (snapshot-ABC一丁七ÇàâアイウДфэبتثअइउ€¥噂ソ十豹竹敷). Then
the snapshot operation failed in nova-compute process. The stack trace
is:
2014-10-29 16:11:26.077 3551 ERROR oslo.messaging.rpc.dispatcher [req-16611064-fded-4ba1-b981-125270b0540b ] Exception during message handling: 'ascii' codec can't decode byte 0xef in position 28: ordinal not in range(128)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher payload)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return f(self, context, *args, **kw)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 302, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher pass
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 288, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 330, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 318, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 378, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher instance=instance)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 82, in __exit__
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 368, in decorated_function
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher *args, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3071, in snapshot_instance
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher task_states.IMAGE_SNAPSHOT)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 3106, in _snapshot_instance
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher update_task_state)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1752, in snapshot
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher image_file)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/image/api.py", line 126, in update
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher purge_props=purge_props)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 405, in update
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher _reraise_translated_image_exception(image_id)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 403, in update
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher image_id, **image_meta)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/image/glance.py", line 232, in call
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return getattr(client.images, method)(*args, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/glanceclient/v1/images.py", line 329, in update
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher resp, body = self.client.put(url, headers=hdrs, data=image_data)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 259, in put
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher return self._request('PUT', url, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/glanceclient/common/http.py", line 200, in _request
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/requests/sessions.py", line 456, in request
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher resp = self.send(prep, **send_kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/requests/sessions.py", line 559, in send
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher r = adapter.send(request, **kwargs)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/requests/adapters.py", line 345, in send
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher low_conn.endheaders()
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher self._send_output()
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib64/python2.6/httplib.py", line 778, in _send_output
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher msg = "\r\n".join(self._buffer)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 28: ordinal not in range(128)
2014-10-29 16:11:26.077 3551 TRACE oslo.messaging.rpc.dispatcher
2014-10-29 16:11:26.155 3551 ERROR oslo.messaging._drivers.common [req-16611064-fded-4ba1-b981-125270b0540b ] Returning exception 'ascii' codec can't decode byte 0xef in position 28: ordinal not in range(128) to caller
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-glanceclient/+bug/1387327/+subscriptions
Follow ups
References