安装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 ...
随机推荐
- 如何用three.js实现数字孪生、3D工厂、3D工业园区、智慧制造、智慧工业、智慧工厂-第十课
文章前,先聊点啥吧. 最近元宇宙炒的挺火热,在所有人都争相定义元宇宙的时候,资本就开始着手入场了.当定义明确,全民皆懂之后,风口也就过去了. 前两天看到新闻,新世界CEO宣布购入最大的数字地块,这块虚 ...
- redis迁移工具redis-migrate-tool
目录 一.简介 二.测试 三.安装 四.验证 一.简介 redis-migrate-tool是在redis之间迁移数据的一个方便且有用的工具.他会已服务方式不断同步两边的数据.等到合适时间,中断red ...
- Mysql资料 存储索引
- Python绘制折线图
一.Python绘制折线图 1.1.Python绘制折线图对应代码如下图所示 import matplotlib.pyplot as pltimport numpy as np from pylab ...
- 删除空行(嵌套)(Power Query 之 M 语言)
数据源: "姓名""基数""个人比例""个人缴纳""公司比例""公司缴纳"&qu ...
- HTML界面监控键盘回车Enter按下并绑定动作
本示例绑定键盘回车键(Enter),触发发送WebSocket消息动作 <script type="text/javascript"> //监控键盘Enter 回车键按 ...
- JAVA中json对象转JAVA对象,JSON数组(JSONArray)转集合(List)
json格式 {userId:'1',message:'2',create_time:'2020-03-28 20:58:11',create_date:'2020-03-28'}JAVA对象 Cha ...
- JAVA结合 JSON Web Token(JWT) 工具类
引入java-jwt-3.3.0.jar . jjwt-0.9.0.jar .jackson-all-1.7.6.jar 或者maven <!-- https://mvnrepository. ...
- soui(1)之一个半透明的窗口
一个样式 xml源码 <SOUI name="mainWindow" title="@string/title" bigIcon="ICON_L ...
- c++ 之面试题(3)数组递归查找
题目描述 1. 给定严格升序(没有相等元素)的数组a,元素个数为cnt, 查找num在数组中的位置序号(以0位起始). 如果没找到则返回: 比num小且最靠近的元素位置序号. 若所有元素均大于num则 ...