安装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 ...
随机推荐
- 【JS】枚举类型
https://zhuanlan.zhihu.com/p/79137838 相当于用数字来代替一串字母 /** * 时间:2019年8月18日 * 前端教程: https://www.pipipi.n ...
- mysql中索引,触发器,事务,存储引擎的理解
网址:http://blog.51cto.com/760470897/1790460
- 软件开发生命周期(SDLC)
一.简介 软件开发生命周期又叫做 SDLC(Software Development Life Cycle),它是集合了计划.开发.测试和部署过程的集合.如下图所示 : 二.五个阶段 1.分析阶段: ...
- ArcGIS中重采样栅格像元对齐问题
转发自我的知乎文章 我们通常要进行基于像元的运算,往往我们的研究中涉及到多源数据,因此就需要对数据进行地理配准.空间配准.重采样等操作. 一开始,我认为相同的地理椭球与投影坐标系下,不同来源,不同分辨 ...
- 洛谷八月月赛 II T2 题解
Content 现有 \(T\) 次询问. 每次询问给定一个长度为 \(n\) 的 01 串,记为 \(A\).回答应是一个字符串 \(B\),满足: \(B\) 是长度为 \(m\) 的 01 串. ...
- vscode配置指南,美化技巧
vscode配置指南,美化技巧 vscode****选中部分高亮 "workbench.colorCustomizations": { "editor.selection ...
- python3 5月26日 time模块常用时间转换 &datetime()模块学习 random()
import time 获取当前时间: 指定字符串格式:time.strftime("%Y-%m-%d %H:%M:%S") 当前时间戳:time.time() 当前时间元组格式 ...
- Linux httpd搭建
Linux 搭建网站 配置网络 1 改对应配置文件 vi /etc/sysconfig/network-scripts/ifcfg-ens32 2 使用命令 nmcli connection add ...
- cmake之譬判断cmake的版本
note 有时候,可能使用的cmake语法 与cmake的版本有关系, 比如modern cmake. 这时候我们可以在 CMAKELISTS.TXT中 判断 cmakeLists.txt 代码 if ...
- 【LeetCode】1111. Maximum Nesting Depth of Two Valid Parentheses Strings 有效括号的嵌套深度
作者: 负雪明烛 id: fuxuemingzhu 个人博客:http://fuxuemingzhu.cn/ 目录 题目描述 题目讲解 划分规则讲解 返回结果讲解 解题方法 代码 日期 题目地址:ht ...