zoukankan      html  css  js  c++  java
  • 解决在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
  • 相关阅读:
    nginx平滑升级及回滚
    redis源码安装
    memcached安装
    Harbor源码部署
    Maven源码部署
    tomcat单机多实例(未完待续)
    部署tomcat
    nginx编译参数详解
    CentOS7 安装pip/pip3
    nginx 部署配置
  • 原文地址:https://www.cnblogs.com/chenjingchao/p/4120401.html
Copyright © 2011-2022 走看看