安装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.
安装devstack中遇到的一些问题整理的更多相关文章
- Hello,Ubuntu(安装过程中遇到的问题及解决)
2013-02-23 不折腾不舒服(>_<).在虚拟机上运行Ubuntu程序一多就明显卡顿,感觉效率不高.为了流畅使用Ubuntu,也便于将来学习Vim/Emacs,我决定在笔记本的Win ...
- 4步解决“Microsoft Office Professional Plus 2013在安装过程中出错”
公司新搭建了AD域,公司内使用了1年多的电脑,现在要加入域,加域过程问题错综复杂. 其中一台电脑上,反应说Excel经常卡住,严重影响使用,所以考虑重装office2013.在控制面板卸载了: 卸载完 ...
- [原]在使用ubuntu14.04,安装devstack的时候报错./stack.sh: line 463: generate-subunit: command not found
=======在使用ubuntu14.04,安装devstack的时候报错./stack.sh: line 463: generate-subunit: command not found 2016- ...
- ubuntu14.04 桌面版/服务器版安装DevStack教程
官网安装教程链接:https://docs.openstack.org/developer/devstack/ 我在ubuntu14.04 LTS 桌面版/服务器版都安装DevStack成功后,在这里 ...
- Ubuntu 14.04 安装 DevStack与遇到的的问题记录
本文总结Ubuntu 14.04下部署DevStack的过程以及一些可能遇到的问题. 一.安装 以下的操作最好在普通用户下进行,至少在git clone devstack的时候使用普通用户,这样可以避 ...
- Centos7.3 安装devstack stein版本
1. 系统准备 # 关闭防火墙 systemctl stop firewalld systemctl disable firewalld # 关闭selinux setenforce 0 sed -i ...
- oracle数据库安装过程中的疑惑—该记录是本人以前写在微博上的文章
转行IT初学者关于oracle数据库整理第一次安装数据库的时候都是按照操作步骤一步一步进行安装,并没有对操作步骤产生过怀疑或者为什么要这么进行操作?2017年12月8日再次阅读安装操作说明书的时候有了 ...
- [转]MSI安装程序中的文件替换
原文链接:http://teach.hanzify.org/article/652-1233562028.html 前言 最近有汉化朋友问起如何不重新制作MSI文件,而直接用汉化好的文件替换MSI安装 ...
- JAVA安装过程中出现的“javac不是内部或外部指令”的解决方法
近来重新安装了JAVA,安装过程中出现问题,网上找到解决办法,汇总发布. 解决流程: 1.确定自己的环境变量设置没问题,没有出现遗漏 : . 等情况 (具体环境变量设置百度) 2.环境变量设置后 ,d ...
随机推荐
- [源码解析] PyTorch分布式优化器(3)---- 模型并行
[源码解析] PyTorch分布式优化器(3)---- 模型并行 目录 [源码解析] PyTorch分布式优化器(3)---- 模型并行 0x00 摘要 0x01 前文回顾 0x02 单机模型 2.1 ...
- 攻击科普:DDos
目录 一.DDoS 攻击究竟是什么? 二.DDoS 攻击多少G是什么意思? 二.DDoS攻击种类 ICMP Flood UDP Flood NTP Flood SYN Flood CC攻击 DNS Q ...
- 在【自定义列】中编辑简单运算公式(Power Query 之 M 语言)
数据源: "品名"."数量"."单价"三列 目标: 计算销售单价(单价*1.2) 解决方案: 在[自定义列]中使用乘法四则运算 步骤: 打开 ...
- CF1090M The Pleasant Walk 题解
Content 有一个长度为 \(n\) 的数组 \(a_1,a_2,a_3,...,a_n\),并已知有 \(k\) 个不相同的元素求最长连续的一段区间,使得这里面的元素互不相同. 数据范围:\(1 ...
- java 编程基础 Class对象 反射 :数组操作java.lang.reflect.Array类
java.lang.reflect包下还提供了Array类 java.lang.reflect包下还提供了Array类,Array对象可以代表所有的数组.程序可以通过使 Array 来动态地创建数组, ...
- atexit模块介绍
atexit 模块介绍 python atexit 模块定义了一个 register 函数,用于在 python 解释器中注册一个退出函数,这个函数在解释器正常终止时自动执行,一般用来做一些资源清理的 ...
- 在mybatis的@Select中用not in 时
当在mybatis中用not in 时,需要用${LocalOrderNo}这样的形式来代替,而不能用#{LocalOrderNo}(把它当成一个整体的字符串了) "SELECT * FRO ...
- 谷歌protobuf(protocol-buffers)各种开发语言数据类型转换说明
官方文档:https://developers.google.cn/protocol-buffers/docs/proto proto2 proto3
- JAVA中BufferedImage与byte[]转换
BufferedImage转byte[] ByteArrayOutputStream out = new ByteArrayOutputStream(); ImageIO.write(imgBuff, ...
- Excel转Json升级版-Python
Excel转Json升级版 将excel文件夹中所有xslx文件全部转换json文件,存放在data文件夹中: excel中的格式,从序号为2的行开始,2行为key:1行可以自由写注释: 使用时用双击 ...