[英]OpenStack-DevStack: Can't successfully run stack.sh
我在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,并在一段时间后遇到了这个“关键”服务问题:
+ 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,其他配置文件上?等)
我不确定您的安装在哪里出错,但是请尝试使用此手册https://gist.github.com/max-lobur/7786074从头开始安装。 我几天前才使用它,并且可以正常工作。 您可以将其与localrc一起使用,也可以省略“安装讽刺客户端”步骤。
您需要以具有sudo权限的堆栈用户身份运行./stack.sh脚本。 在https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&ved=0ahUKEwiGkZPqhpnSAhVFvI8KHcNKD40QFggkMAI&url=https%3A%2F%2.org上查看安装指南。 %2Fdeveloper%2Fdevstack%2Fguides%2Fsingle-machine.html&USG = AFQjCNGEhxYRot85kfMGm4m48q-INMzAzQ&SIG2 = nGuBepezVhBm7cpgnnLktA
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.