![使用 devstack 在 ubuntu 15.10 上安装 openstack 时出错](https://linux22.com/image/1054803/%E4%BD%BF%E7%94%A8%20devstack%20%E5%9C%A8%20ubuntu%2015.10%20%E4%B8%8A%E5%AE%89%E8%A3%85%20openstack%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我已经安装了 VMware Player 12。但是在执行此命令./stack.sh
安装 openstack 时,我收到一条错误消息./stack.sh: line 623: /home/aryan/devstack/.localrc.password: Permission denied
有什么帮助吗?
以下是完整消息:
./stack.sh: line 623: /home/aryan/devstack/.localrc.password: Permission denied
++ /home/aryan/devstack/lib/database:initialize_database_backends:L104: get_database_type_mysql
++ /home/aryan/devstack/lib/databases/mysql:get_database_type_mysql:L28: [[ PyMySQL == \P\y\M\y\S\Q\L ]]
++ /home/aryan/devstack/lib/databases/mysql:get_database_type_mysql:L29: echo mysql+pymysql
+ /home/aryan/devstack/lib/database:initialize_database_backends:L104: BASE_SQL_CONN=mysql+pymysql://root:[email protected]
+ /home/aryan/devstack/lib/database:initialize_database_backends:L106: return 0
+ ./stack.sh:main:L642: echo 'Using mysql database backend'
Using mysql database backend
+ ./stack.sh:main:L651: RABBIT_USERID=stackrabbit
+ ./stack.sh:main:L652: is_service_enabled rabbit
+ /home/aryan/devstack/functions-common:is_service_enabled:L2025: local xtrace
++ /home/aryan/devstack/functions-common:is_service_enabled:L2026: set +o
++ /home/aryan/devstack/functions-common:is_service_enabled:L2026: grep xtrace
+ /home/aryan/devstack/functions-common:is_service_enabled:L2026: xtrace='set -o xtrace'
+ /home/aryan/devstack/functions-common:is_service_enabled:L2027: set +o xtrace
+ /home/aryan/devstack/functions-common:is_service_enabled:L2055: return 0
+ ./stack.sh:main:L653: RABBIT_HOST=192.168.0.144
+ ./stack.sh:main:L654: read_password RABBIT_PASSWORD 'ENTER A PASSWORD TO USE FOR RABBIT.'
+ ./stack.sh:read_password:L581: local xtrace
++ ./stack.sh:read_password:L582: set +o
++ ./stack.sh:read_password:L582: grep xtrace
+ ./stack.sh:read_password:L582: xtrace='set -o xtrace'
+ ./stack.sh:read_password:L583: set +o xtrace
touch: cannot touch '/home/aryan/devstack/.localrc.password': Permission denied
Error on exit
./stack.sh: line 488: generate-subunit: command not found
答案1
访问此链接 http://docs.openstack.org/developer/devstack/ 创建 stack 用户以运行 devstack
devstack/tools/create-stack-user.sh; su stack
然后开始安装
cd devstack; ./stack.sh