Message objects do not support str()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
powervc-driver |
Fix Released
|
Undecided
|
Henry |
Bug Description
When creating process of cinder-powervc, due to the incorrec config file in keystone connection, but it shows an other error message like this:
2017-06-02 21:27:28.119 2570 CRITICAL cinder [req-3134fa31-
2017-06-02 21:27:28.119 2570 TRACE cinder Traceback (most recent call last):
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder sys.exit(main())
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder binary=
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder service_
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder *args, **kwargs)
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder is_vol_
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder return import_
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder __import__(mod_str)
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder from powervc.
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder initialize_
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder LOG.info(
2017-06-02 21:27:28.119 2570 TRACE cinder File "/opt/openstack
2017-06-02 21:27:28.119 2570 TRACE cinder raise UnicodeError(msg)
2017-06-02 21:27:28.119 2570 TRACE cinder UnicodeError: Message objects do not support str() because they may contain non-ascii characters. Please use unicode() or translate() instead.
According to error information, It should be use unicode but not str to show error message.
Changed in powervc-driver: | |
assignee: | nobody → Henry (guanzy) |
Fix proposed to branch: master /review. openstack. org/517923
Review: https:/