1

我在我的 Ubuntu 机器上运行 ./stack.sh 时遇到了一些麻烦。我确实从 github 下载了 devstack,创建了一个我将运行它的帐户,给定这个新创建的帐户 sudo 权限,最后,创建了这个 localrc:

HOST_IP=localhost
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password

我运行了 ./stack.sh 并在很长一段时间后遇到了这个“keystone”服务问题:

+ create_keystone_accounts
++ keystone tenant-create --name admin
++ grep ' id '
++ get_field 2
++ read data
Conflict occurred attempting to store project. (1045, "Access denied for user 'root'@'localhost' (using password: YES)") (HTTP 409)
+ ADMIN_TENANT=
++ keystone user-create --name admin --pass password --email admin@example.com
++ grep ' id '
++ get_field 2
++ read data
An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: YES)") None None (HTTP 500)
+ ADMIN_USER=
++ keystone role-create --name admin
++ grep ' id '
++ get_field 2
++ read data
Conflict occurred attempting to store role. (1045, "Access denied for user 'root'@'localhost' (using password: YES)") (HTTP 409)
+ ADMIN_ROLE=
+ keystone user-role-add --user-id --role-id --tenant-id
usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]
keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument
++ keystone tenant-create --name service
++ grep ' id '
++ get_field 2
++ read data
Conflict occurred attempting to store project. (1045, "Access denied for user 'root'@'localhost' (using password: YES)") (HTTP 409)
+ SERVICE_TENANT=
++ keystone role-create --name=Member
++ grep ' id '
++ get_field 2
++ read data
Conflict occurred attempting to store role. (1045, "Access denied for user 'root'@'localhost' (using password: YES)") (HTTP 409)
+ MEMBER_ROLE=
++ keystone role-create --name=anotherrole
++ grep ' id '
++ get_field 2
++ read data
Conflict occurred attempting to store role. (1045, "Access denied for user 'root'@'localhost' (using password: YES)") (HTTP 409)
+ ANOTHER_ROLE=
++ keystone tenant-create --name=invisible_to_admin
++ grep ' id '
++ get_field 2
++ read data
Conflict occurred attempting to store project. (1045, "Access denied for user 'root'@'localhost' (using password: YES)") (HTTP 409)
+ INVIS_TENANT=
++ keystone tenant-create --name=demo
++ grep ' id '
++ get_field 2
++ read data
Conflict occurred attempting to store project. (1045, "Access denied for user 'root'@'localhost' (using password: YES)") (HTTP 409)
+ DEMO_TENANT=
++ keystone user-create --name demo --pass password --email demo@example.com
++ grep ' id '
++ get_field 2
++ read data
An unexpected error prevented the server from fulfilling your request. (OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: YES)") None None (HTTP 500)
+ DEMO_USER=
+ keystone user-role-add --user-id --role-id --tenant-id
usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]
keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument
+ keystone user-role-add --user-id --role-id --tenant-id
usage: keystone user-role-add --user <user> --role <role> [--tenant <tenant>]
keystone user-role-add: error: argument --user/--user-id/--user_id: expected one argument
+ keystone user-role-add --user-id --role-id --tenant-id

我很困惑为什么会有很多“用户'root@localhost'的访问被拒绝”错误。如上所述,我在另一个帐户上运行它。我在这里想念什么?(例如在 localrc 上,其他配置文件?等)

4

2 回答 2

0

我不确定你在哪里安装错误,但请尝试使用本手册https://gist.github.com/max-lobur/7786074从头开始​​安装。我几天前才用过它,它可以工作。您可以将它与 localrc 一起使用,也可以省略“安装讽刺客户端”步骤。

于 2013-12-09T09:52:08.680 回答