zoukankan      html  css  js  c++  java
  • ubuntu14通过trove/redstack安装openstack环境

    ---恢复内容开始---

    Trove Installation

    Trove is constantly under development. The easiest way to install Trove is using the Trove integration scripts that can be found in git in the Trove Integration Repository.

    Steps to set up a Trove Developer Environment

    Installing trove-integration

    • Install a fresh Ubuntu 14.04 (Trusty Tahr) image (preferably a virtual machine)

    • Make sure we have git installed:

      # apt-get update
      # apt-get install git -y
      更新源,安装git
    • Add a user named ubuntu if you do not already have one:

      # adduser ubuntu
      添加ubuntu用户
    • Set the ubuntu user up with sudo access:

      # visudo
      

      Add ubuntu ALL=(ALL) NOPASSWD: ALL to the sudoers file.将刚创建的ubuntu用户添加到sudoers里面

    • Login with ubuntu:

      # su ubuntu
      # cd ~
      切换到ubuntu用户,并去到其根目录
    • Clone this repo:

      # git clone https://git.openstack.org/openstack/trove-integration.git
      通过git克隆安装程序
    • cd into the scripts directory:

      # cd trove-integration/scripts/
      进入到刚下载的文件夹里面

    Running redstack to install Trove

    Redstack is the core script that allows you to install and interact with your developer installation of Trove. Redstack has the following options that you can run.

    • Get the command list with a short description of each command and what it does:

      # ./redstack
      
    • Install all the dependencies and then install Trove. This brings up trove (tr-api tr-tmgr tr-cond) and initializes the trove database:

      # ./redstack install
      执行此命令进行安装
    • Kick start the build/test-init/build-image commands. Add mysql as a parameter to set build and add the mysql guest image:

      # ./redstack kick-start mysql







      安装时候几个常见的问题:
      1、每次安装新的组件之前,都会检查源,这个比较看网络环境,有的时候就会报一个E:xxxxxx(大意是无法连接到源的意思),这个时候可以考虑更换源,换成科大的会好一点,不过偶尔也有失败的情况,只要重新执行安装命令就行了。
      2、git clone的时候比较慢,有的时候就像死机了,如果想重新下载的话,记得去/opt/stack/里面删除正在下载的组件
      3、如果没有删除未下完的组件,重新安装的时候对应组件的文件夹是存在的,所以会跳过下载。
      4、跳过下载之后会下其他的组件,等所有组件都下完了就会进行部署,如果之前某个组件内容不全的话,部署就会失败,仔细看错误信息提示是哪个组件少东西了,直接用2的方法删了重下就行了
      5、你可能会遇到pip下载的时候中断,gitclone中断,apt-get中断,只要重新执行安装命令就行了,重要的还是看网速。
      6、不要尝试自己去gitclone相应的项目,这样下载的是不全的,部署的时候同样会报错。(有待考证)
      7、要有耐心。
      8、安装完之后先不要关机,执行kick-mysql那个。。。如果关机在执行就会提示连接不上,目前解决方法还不知道






      我安了4天,无数次的中断才安上。。。还有就是ubuntu16我也试过,安装失败了,因为ken-ipxe在16里面好像是没了。。。所以一直卡在那里就报错。


      安装步骤原文地址:http://docs.openstack.org/developer/trove/dev/install.html

    ---恢复内容结束---

  • 相关阅读:
    centos7grub2 引导win10
    必测的支付漏洞(一)——使用fiddler篡改支付金额
    使用Fiddler进行IOS APP的HTTP抓包
    Fiddler实现手机抓包——小白入门
    信息收集工具recon-ng详细使用教程
    Chrome浏览器扩展开发系列之一:初识Google Chrome扩展
    Dear Project Manager, I Hate You
    敏捷中的沟通与故事点
    项目经理与敏捷开发
    C#中使用反射获取结构体实例
  • 原文地址:https://www.cnblogs.com/S-tec-songjian/p/5694491.html
Copyright © 2011-2022 走看看