执行 keystone tenant-create --name admin --description "Admin Tenant"
出现 An unexpected error prevented the server from fulfilling your request. (HTTP 500)
查询了一下
有的 说重启,不管用
有的说
Instead of typing the command: # su -s /bin/sh -c "keystone-manage db_sync" keystone, you must type only: /bin/sh -c "keystone-manage db_sync" keystone
The issue came that: if you have already loggin as a root so you haven't needed anymore to use the "su -s" command.也不管用
也查询了服务是否开启 netstat -anutp|grep 35357 正常啊
卡了3,4个小时
最后看日志 tail -f /var/log/keystone/keystone.log
2016-03-27 17:27:53.396 4910 ERROR keystone.common.wsgi [-] (ProgrammingError) (1146, "Table 'keystone.project' doesn't exist") 'INSERT INTO project (id, name, domain_id, description, enabled, extra) VALUES (%s, %s, %s, %s, %s, %s)' ('2b7c3c51a0ff42a886174224a5e2bf4d', 'admin', 'default', 'Admin Tenant', 1, '{}')
一行命名解决
直接输入 keystone-manage db_sync
问题解决
看日志才能对症下药
以后得改变习惯,不要一出问题就度娘,要先分析日志!