昊漫玉 发表于 2015-4-12 16:34:19

解决在CentOS6.5下安装OpenStack(Icehouse版本 )出现的glance服务无法正常工作的问题

  最近一直在用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]
查看完整版本: 解决在CentOS6.5下安装OpenStack(Icehouse版本 )出现的glance服务无法正常工作的问题