zoukankan      html  css  js  c++  java
  • 快速体验openstack-用devstack安装openstack

    官网安装说明:

    --2014年11月15日14:14:21

    安装环境:Ubuntu12.04,安装官网的说明遇到了小问题,记录在这里

    --http://docs.openstack.org/developer/devstack/

    --1

    apt-get install git

    --2

    git clone https://git.openstack.org/openstack-dev/devstack

    --3

    目前Devstack脚本已经不支持直接使用root身份运行,你需要创建stack用户运行

    run /opt/devstack/tools/create-stack-user.sh

    --4

    修改devstack目录权限,让stack用户可以运行

    chown -R stack:stack /opt/*
    切换的stack用户下

    --5

    修改ip 

    cp /opt/devstack/samples/local.conf /opt/devstack/

    修改ip 为自己的ip

    su stack,运行Devstack用stack用户运行的。

    cd /opt/devstack
    ./stack.sh

    --执行时间很长,出现这个错误=http://segmentfault.com/q/1010000000490204

    pi@cohoserver /usr/lib/python2.7/dist-packages $ sudo pip install --upgrade numpy
    **Cannot fetch index base URL https://pypi.python.org/simple/**
    Could not find any downloads that satisfy the requirement numpy in /usr/lib/pymodules/python2.7
    Downloading/unpacking numpy
    Cleaning up...
    No distributions at all found for numpy in /usr/lib/pymodules/python2.7
    Storing debug log for failure in /root/.pip/pip.log
    
    pi@cohoserver ~ $ sudo git clone https://github.com/ziahamza/webui-aria2.git
    Cloning into 'webui-aria2'...
    **error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/ziahamza/webui-aria2.git/info/refs
    fatal: HTTP request failed**
    

    解决办法:

    将下面内容加到 ~/.pip/pip.conf 中
    
    [global]
    index-url=http://pypi.douban.com/simple
    

      

    默认Devstack创建 admin和demo两个用户,通过设置环境变量可以进行操作

    admin

    source openrc admin admin
    demo

    source openrc demo demo

    --参考

    http://www.chenshake.com/devstack-installation-and-testing/

  • 相关阅读:
    BZOJ 2157: 旅游 (2017.7.21 6:30-2017.7.21 15:38 今日第一题。。)
    洛谷 P1021 邮票面值设计
    洛谷 P2912 [USACO08OCT]牧场散步Pasture Walking
    COGS 2111. [NOIP2015普及]扫雷游戏
    洛谷 P3038 [USACO11DEC]牧草种植Grass Planting
    COGS 1439. [NOIP2013]货车运输
    COGS 908. 校园网
    codevs 1422 河城荷取
    codevs 1183 泥泞的道路
    洛谷 P3390 【模板】矩阵快速幂
  • 原文地址:https://www.cnblogs.com/qinche/p/openstack.html
Copyright © 2011-2022 走看看