1. 字符集错误
root@controller:~# openstack service create --name keystone --description "OpenStack Identity" identity
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 861, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 734, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 469, in format
s = self._fmt % record.__dict__
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-16: ordinal not in range(128)
Logged from file app.py, line 379
解决办法
#删除keystone的数据库
$ mysql -uroot -p$MYSQL_PASSWD -e "DROP DATABASE IF EXISTS keystone;"
#重启电脑
$ init 6
#重新安装keystone数据库
进入数据库
$ mysql -u root -p
#创建数据库
CREATE DATABASE keystone;
#赋予数据库权限
# <KEYSTONE_DBPASS>为自定义密