【问题标题】:OpenStack-DevStack: Can't successfully run stack.shOpenStack-DevStack:无法成功运行 stack.sh
【发布时间】:2013-12-07 13:22:21
【问题描述】:

我在我的 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 上,其他配置文件?等)

【问题讨论】:

    标签: openstack devstack


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      【讨论】:

      • 嗨,欢迎来到 StackOverflow!通常只根据链接给出答案并不是一个好主意,因为链接可能会过期,然后答案就没有有用的内容。如果您在答案的链接中添加一些内容,那就太好了。此外,您的链接指向谷歌搜索。您会编辑指向您想要指向的直接地址的链接吗?
      猜你喜欢
      • 2023-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-10
      • 2015-07-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多