vmware message Unicode ascii range

Bug #1646075 reported by YuYang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
oslo.vmware
In Progress
Undecided
Unassigned

Bug Description

when i create vmdk backup volume or create volume,get Unicode error.i use vcenter 6.0 and use Chinese language.
error:
2016-11-30 07:03:35.626 12468 WARNING suds.client [req-c3afec12-88e6-42f3-afe4-1fcd659238a9 098673ebb2c54b6ea608b204ffaa82b7 3885b586a8014286bc07b24df332afab - - -] Web service reported a SOAP processing fault using an unexpected HTTP status code 200. Reporting as an internal server error.
2016-11-30 07:03:35.627 12468 INFO oslo_vmware.api [req-c3afec12-88e6-42f3-afe4-1fcd659238a9 098673ebb2c54b6ea608b204ffaa82b7 3885b586a8014286bc07b24df332afab - - -] Logging out and terminating the current session with ID = d38fc.
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher [req-c3afec12-88e6-42f3-afe4-1fcd659238a9 098673ebb2c54b6ea608b204ffaa82b7 3885b586a8014286bc07b24df332afab - - -] The dispatcher method must catches all exceptions
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher Traceback (most recent call last):
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/dispatcher.py", line 59, in run
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher self._result = self._dispatch(self._incoming)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 150, in _dispatch_and_reply
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher exc_info=exc_info)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher self._log(ERROR, msg, args, **kwargs)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/logging/__init__.py", line 1271, in _log
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher self.handle(record)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/logging/__init__.py", line 1281, in handle
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher self.callHandlers(record)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/logging/__init__.py", line 1321, in callHandlers
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher hdlr.handle(record)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/logging/__init__.py", line 749, in handle
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher self.emit(record)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_log/handlers.py", line 58, in emit
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher message = encodeutils.safe_encode(self.format(record))
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/logging/__init__.py", line 724, in format
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher return fmt.format(record)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_log/formatters.py", line 267, in format
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher return logging.Formatter.format(self, record)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher record.message = record.getMessage()
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher msg = msg % self.args
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_i18n/_message.py", line 187, in __mod__
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher params = self._sanitize_mod_params(other)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_i18n/_message.py", line 216, in _sanitize_mod_params
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher params = self._copy_param(other)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher File "/usr/lib/python2.7/dist-packages/oslo_i18n/_message.py", line 225, in _copy_param
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher return six.text_type(param)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-12: ordinal not in range(128)
2016-11-30 07:03:36.374 12468 ERROR oslo_messaging.dispatcher

Tags: i18n vmware
Matt Riedemann (mriedem)
tags: added: i18n vmware
Revision history for this message
Matt Riedemann (mriedem) wrote :

This looks like a bug against oslo.vmware, or maybe oslo.messaging? If you're creating a volume or creating a backup of a volume, then this isn't a nova bug either way.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Which version of oslo.messaging and oslo.vmware do you have here? And what version of cinder?

Changed in nova:
status: New → Incomplete
Revision history for this message
Matt Riedemann (mriedem) wrote :

This is also missing where the original fault comes from I think, do you have more logs than this before the failure?

Changed in nova:
status: Incomplete → Invalid
Matt Riedemann (mriedem)
Changed in oslo.vmware:
status: New → Incomplete
Revision history for this message
YuYang (yuyangwang1985) wrote :

hi Matt Riedemann,i use openstack version is M!

Revision history for this message
YuYang (yuyangwang1985) wrote :

hi:
oslo.vmware 2.5.0
oslo.messaging 4.6.1
cinder-volume 2:8.1.0

i use fuel 9 install the openstack!thanks!

Changed in oslo.vmware:
status: Incomplete → In Progress
Revision history for this message
YuYang (yuyangwang1985) wrote :

i add in the /usr/lib/python2.7/dist-packages/oslo_i18n/_message.py:
import sys
default_encoding = 'utf-8'
if sys.getdefaultencoding() != default_encoding:
   reload(sys)
   sys.setdefaultencoding(default_encoding)

is ok!

can you has bast idear?

thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.