分享

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordi...

doscho 发表于 2016-7-29 18:46:30 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 15667
2016-07-29 18:13:22.896 14666 ERROR nova.compute.manager [req-38617fc4-baab-4e13-9d66-87b265223823 26916b032b3c4eb580ede7dd91cc892b 78c0faab28a04facb9dfbadf716c9638 - - -] [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279] Unexpected build failure, not rescheduling build.
2016-07-29 18:13:22.896 14666 ERROR nova.compute.manager [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279] Traceback (most recent call last):
2016-07-29 18:13:22.896 14666 ERROR nova.compute.manager [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1905, in _do_build_and_run_instance
2016-07-29 18:13:22.896 14666 ERROR nova.compute.manager [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279]     filter_properties)
2016-07-29 18:13:22.896 14666 ERROR nova.compute.manager [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2057, in _build_and_run_instance
2016-07-29 18:13:22.896 14666 ERROR nova.compute.manager [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279]     instance_uuid=instance.uuid, reason=six.text_type(e))
2016-07-29 18:13:22.896 14666 ERROR nova.compute.manager [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)
2016-07-29 18:13:22.896 14666 ERROR nova.compute.manager [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279]
2016-07-29 18:13:26.122 14666 INFO nova.compute.resource_tracker [req-c7208825-caff-4811-a6cc-a41fe026ea08 - - - - -] Auditing locally available compute resources for node vStack
2016-07-29 18:13:26.460 14666 INFO nova.compute.resource_tracker [req-c7208825-caff-4811-a6cc-a41fe026ea08 - - - - -] Total usable vcpus: 4, total allocated vcpus: 0
2016-07-29 18:13:26.461 14666 INFO nova.compute.resource_tracker [req-c7208825-caff-4811-a6cc-a41fe026ea08 - - - - -] Final resource view: name=vStack phys_ram=3928MB used_ram=512MB phys_disk=17GB used_disk=0GB total_vcpus=4 used_vcpus=0 pci_stats=None
2016-07-29 18:13:26.510 14666 INFO nova.compute.resource_tracker [req-c7208825-caff-4811-a6cc-a41fe026ea08 - - - - -] Compute_service record updated for vStack:vStack
2016-07-29 18:13:36.506 14666 INFO nova.compute.manager [-] [instance: b437936f-1758-4ad9-b4a5-a7f70d41f279] VM Stopped (Lifecycle Event)

已有(4)人评论

跳转到指定楼层
einhep 发表于 2016-7-29 21:26:14
通过源码安装?还是直接部署的

总体来说应该是编码的问题。
回复

使用道具 举报

doscho 发表于 2016-8-2 13:51:57
einhep 发表于 2016-7-29 21:26
通过源码安装?还是直接部署的

总体来说应该是编码的问题。

直接安装的,原来是好的。
回复

使用道具 举报

succeedzcs 发表于 2016-8-4 08:34:01
/usr/lib/python2.7/site-packages/nova/compute/manager.py,开头地方加入
import sys
default_encoding = 'utf-8'
if sys.getdefaultencoding() != default_encoding:
    reload(sys)
    sys.setdefaultencoding(default_encoding)
回复

使用道具 举报

doscho 发表于 2016-8-4 10:24:23
succeedzcs 发表于 2016-8-4 08:34
/usr/lib/python2.7/site-packages/nova/compute/manager.py,开头地方加入
import sys
default_encoding  ...

谢谢,有时间测试验证一下!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条