最近一直在用Juno版本,因为项目需要,今天在虚拟机里安装了Icehouse版,其中glance组件在执行安装的过程后,出现启动失败的现象,幸好以前排查过此类错误,遂记录如下:

在官方文档(Icehouse)中 “Configure the Image Service”一章中,第4步:create the database tables for the Image Service里

# su -s /bin/sh -c "glance-manage db_sync" glance

执行上述命令出错:提示ImportError,cannot import ...Radom,具体错误类型记不清了(因为我是用脚本文件安装,安装之后提示openstack-glance-api 和 openstack-glance-registry 这两个服务启动失败,第一次遇到这种情况的时候就按照官文的image章节一步步执行)

解决方法:

# pip install pycrypto==2.6.1
# pip install pycrypto-on-pypi

执行中可能会出错:

checking for cl.exe... no
configure.sh:error:no acceptable C compiler found in $PATH
See 'config.log' for more details.
直接:yum -y install gcc 解决

最后验证服务是否可以正常启动:

# su -s /bin/sh -c "glance-manage db_sync" glance
# service openstack-glance-api start
# service openstack-glance-registry start
# chkconfig openstack-glance-api on
# chkconfig openstack-glance-registry on

最新文章

  1. win10删除导航栏文档等图标,去除快捷方式
  2. junit
  3. Build Instructions (Windows) – The Chromium Projects
  4. 仙人掌(cactus)
  5. ThinkPHP 模型(Model)命名规范
  6. 关于CCSprite改变box2d刚体位置以及角度。
  7. 【暑假】[深入动态规划]UVa 1627 Team them up!
  8. std中map
  9. MyBatis 原始Dao开发方式
  10. BFS求最短路 Abbottt's Revenge UVa 816
  11. linux下建ftp用户,并限制用户访问路径[转]
  12. Unsupported major.minor version 52.0
  13. centos7.6设置sftp服务
  14. 2018 python面试题
  15. linux ">/dev/null 2>&1 &"
  16. CentOS配置SSH无密码
  17. ArcFace 2.0 Demo [C++]
  18. centos/7下安装mysql5.7
  19. python基础类型 —— Sets集合
  20. Net WebAPI2

热门文章

  1. TCP/IP BOOKS
  2. JSBInding+Bridge.NET:把C#编译为Js
  3. dw的流体网格布局
  4. Android studio 快捷键(Mac)
  5. tomcat集群
  6. spring retry 使用
  7. jdk环境变量配置
  8. LeetCode "468. Validate IP Address"
  9. 工具04_SQL Trace/DBMS_SYSTEM
  10. POJ 3468 A Simple Problem with Integers(线段树 成段增减+区间求和)