安装devstack中遇到的一些问题整理

1、执行stack.sh文件后提示

./stack.sh:528:check_path_perm_sanity
/opt/devstack/functions:582:die
[ERROR] /opt/devstack/functions:582 Invalid path permissions

检查functions代码

# Path permissions sanity check
   559    # check_path_perm_sanity path
   560    function check_path_perm_sanity {
   561        # Ensure no element of the path has 0700 permissions, which is very
   562        # likely to cause issues for daemons.  Inspired by default 0700
   563        # homedir permissions on RHEL and common practice of making DEST in
   564        # the stack user's homedir.
   565    
   566        local real_path
   567        real_path=$(readlink -f $1)
   568        local rebuilt_path=""
   569        for i in $(echo ${real_path} | tr "/" " "); do
   570            rebuilt_path=$rebuilt_path"/"$i
   571    
   572            if [[ $(stat -c '%a' ${rebuilt_path}) = 700 ]]; then
   573                echo "*** DEST path element"
   574                echo "***    ${rebuilt_path}"
   575                echo "*** appears to have 0700 permissions."
   576                echo "*** This is very likely to cause fatal issues for DevStack daemons."
   577    
   578                if [[ -n "$SKIP_PATH_SANITY" ]]; then
   579                    return
   580                else
   581                    echo "*** Set SKIP_PATH_SANITY to skip this check"
   582                    die $LINENO "Invalid path permissions"
   583                fi
   584            fi
   585        done
   586    }

这段执行的是对stack账号的home目录检查权限,如果是700则返回错误。

检查/opt目录发现stack.sh自动创建的stack目录权限如下

[stack@localhost devstack]$ ll /opt/
总用量 4
drwxr-xr-x  15 root  root  4096 8月   9 12:06 devstack
drwxr-xr-x.  2 root  root     6 10月 31 2018 rh
drwx------   7 stack stack  131 8月   9 12:06 stack

修改stack目录权限

[stack@localhost opt]$ chmod 755 stack/
[stack@localhost opt]$ ll
总用量 4
drwxr-xr-x  15 root  root  4096 8月   9 12:06 devstack
drwxr-xr-x.  2 root  root     6 10月 31 2018 rh
drwxr-xr-x   7 stack stack  131 8月   9 12:06 stack

OK!

 

2、执行stack.sh文件后提示

touch: cannot touch ‘/opt/devstack/.localrc.password’: Permission denied
Error on exit
World dumping... see /opt/stack/logs/worlddump-2019-08-09-043124.txt for details

修改devstack目录权限

[stack@localhost opt]$ sudo chmod 777 devstack/
[stack@localhost opt]$ ll
总用量 4
drwxrwxrwx  15 root  root  4096 8月   9 12:06 devstack

OK!

 

3、执行stack.sh文件后提示

+ tools/install_pip.sh:install_get_pip:87  :   curl -f --retry 6 --retry-delay 5 -o /opt/devstack/files/get-pip.py https://bootstrap.pypa.io/get-pip.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0Warning: Failed to create the file /opt/devstack/files/get-pip.py: Permission 
Warning: denied
  0 1733k    0  2228    0     0   1295      0  0:22:50  0:00:01  0:22:49  1295
curl: (23) Failed writing body (0 != 2228)
+ tools/install_pip.sh:install_get_pip:89  :   die 89 'Download of get-pip.py failed'
+ functions-common:die:195                 :   local exitcode=23
[Call Trace]
/opt/devstack/tools/install_pip.sh:140:install_get_pip
/opt/devstack/tools/install_pip.sh:89:die
[ERROR] /opt/devstack/tools/install_pip.sh:89 Download of get-pip.py failed
++./stack.sh:main:799                       err_trap
++./stack.sh:err_trap:577                   local r=23
stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2019-08-09-123356
Error on exit

是由于已经安装了pip,可以直接在devstack/tools目录下,找到install_pip.py,注释掉install_get_pip这个函数调用。

 

4、执行stack.sh文件后提示

ERROR: Cannot uninstall 'enum34'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

可用通过手动升级的方式更新一下

sudo pip install enum34 --upgrade --ignore-installed enum34

 

5

ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

 

转载于:https://www.cnblogs.com/rhjeans/p/11328346.html

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在DevStack安装OpenStack Queens版本,您可以按照以下步骤进行操作: 1. 首先,确保您的系统满足以下要求: - Ubuntu 16.04 LTS操作系统(推荐) - 至少8GB的RAM和2个CPU核心 - 至少40GB的硬盘空间 2. 下载DevStack安装脚本并切换到下载目录: ```shell $ git clone https://opendev.org/openstack/devstack.git $ cd devstack ``` 3. 创建一个名为`local.conf`的新文件,并将以下内容复制到文件: ```shell [[local|localrc]] HOST_IP=<your_host_ip> SERVICE_HOST=<your_service_host_ip> DATABASE_PASSWORD=<your_database_password> RABBIT_PASSWORD=<your_rabbitmq_password> ADMIN_PASSWORD=<your_admin_password> ``` 将`<your_host_ip>`替换为主机的IP地址,`<your_service_host_ip>`替换为服务主机的IP地址,`<your_database_password>`替换为数据库密码,`<your_rabbitmq_password>`替换为RabbitMQ密码,`<your_admin_password>`替换为管理员密码。 4. 运行安装脚本: ```shell $ ./stack.sh ``` 5. 安装过程可能需要一些时间,请耐心等待。一旦安装完成,您将在终端上看到"DevStack successfully installed"的消息。 6. 安装完成后,您可以通过浏览器访问`http://<your_host_ip>/dashboard`来访问OpenStack Horizon仪表板。使用管理员帐户名`admin`和先前在`local.conf`设置的管理员密码进行登录。 请注意,这只是一个简单的安装过程示例,您可能需要根据自己的环境和需求进行一些自定义配置。有关更详细的安装说明,请参阅OpenStack官方文档。 祝您安装成功!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值