Start OpenStack Services

After launching your stack by Devstack, you maybe stop some services or reboot your machine.

This script help you start nova,keystone,heat,cinder and glance.

#! /bin/bash
###########################
# start OpenStack Services
###########################
# Help
# this script is used to start several OpenStack Services after creating
# devstack. Typically, run it after restarting machine.
#constants #functions #call nohup
function call_async(){
nohup $* &
}
#start keystone
function start_keystone() {
echo "start keystone"
call_async python /opt/stack/keystone/bin/keystone-all \
--config-file /etc/keystone/keystone.conf \
--log-config /etc/keystone/logging.conf -d \
--debug \
> /tmp/start_keystone.log 2>&1 &
} #glance
function start_glance {
echo "start glance registry"
call_async python /usr/local/bin/glance-registry \
--config-file=/etc/glance/glance-registry.conf \
> /tmp/start_glance_reg.log 2>&1 &
echo "start glance api"
call_async python /usr/local/bin/glance-api \
--config-file=/etc/glance/glance-api.conf \
> /tmp/start_glance_api.log 2>&1 & } #nova
function start_nova {
echo "start nova api"
call_async python /usr/local/bin/nova-api \
> /tmp/start_nova_api.log 2>&1 &
echo "start nova conductor"
call_async python /usr/local/bin/nova-conductor \
> /tmp/start_nova_conductor.log 2>&1 &
echo "start nova compute"
call_async python /usr/local/bin/nova-compute \
--config-file /etc/nova/nova.conf \
> /tmp/start_nova_compute.log 2>&1 &
echo "start nova cert"
call_async python /usr/local/bin/nova-cert \
> /tmp/start_nova_cert.log 2>&1 &
echo "start nova network"
call_async python /usr/local/bin/nova-network \
--config-file /etc/nova/nova.conf \
> /tmp/start_nova_network.log 2>&1 &
echo "start nova scheduler"
call_async python /usr/local/bin/nova-scheduler \
--config-file /etc/nova/nova.conf \
> /tmp/start_nova_scheduler.log 2>&1 &
echo "start nova novncproxy"
call_async python /usr/local/bin/nova-novncproxy \
--config-file /etc/nova/nova.conf \
--web /opt/stack/noVNC \
> /tmp/start_nova_novncproxy.log 2>&1 &
echo "start nova xvpvncproxy"
call_async python /usr/local/bin/nova-xvpvncproxy \
--config-file /etc/nova/nova.conf \
> /tmp/start_nova_vncproxy.log 2>&1 &
echo "start nova consoleauth"
call_async python /usr/local/bin/nova-consoleauth \
> /tmp/start_nova_noconsole.log 2>&1 &
echo "start nova objectstore"
call_async python /usr/local/bin/nova-objectstore \
> /tmp/start_nova_obj.log 2>&1 &
} #cinder
function start_cinder {
echo "start cinder api"
call_async python /usr/local/bin/cinder-api \
--config-file /etc/cinder/cinder.conf \
> /tmp/start_cinder_api.log 2>&1 &
echo "start cinder scheduler"
call_async python /usr/local/bin/cinder-scheduler \
--config-file /etc/cinder/cinder.conf \
> /tmp/start_cinder_scheduler.log 2>&1 &
echo "start cinder volume"
call_async python /usr/local/bin/cinder-volume \
--config-file /etc/cinder/cinder.conf \
> /tmp/start_cinder_volume.log 2>&1 &
}
#heat
function start_heat {
echo "start heat engine"
call_async python /usr/local/bin/heat-engine \
--config-file=/etc/heat/heat-engine.conf \
> /tmp/start_heat_engine.log 2>&1 &
echo "start heat api"
call_async python /usr/local/bin/heat-api \
--config-dir=/etc/heat/heat-api.conf \
> /tmp/start_heat_api.log 2>&1 &
echo "start heat api cfn"
call_async python /usr/local/bin/heat-api-cfn \
--config-dir=/etc/heat/heat-api-cfn.conf \
> /tmp/start_heat_api_cfn.log 2>&1 &
echo "start heat api cloudwatch"
call_async python /usr/local/bin/heat-api-cloudwatch \
--config-dir=/etc/heat/heat-api-cloudwatch.conf \
> /tmp/start_heat_cw.log 2>&1 &
} #main
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return echo "clean logs"
sudo rm /tmp/start_*.log start_keystone # make sure the keystone is started.
sleep 5 start_glance start_cinder sleep 10 start_nova sleep 10 start_heat

start stack的更多相关文章

  1. 线性数据结构之栈——Stack

    Linear data structures linear structures can be thought of as having two ends, whose items are order ...

  2. Java 堆内存与栈内存异同(Java Heap Memory vs Stack Memory Difference)

    --reference Java Heap Memory vs Stack Memory Difference 在数据结构中,堆和栈可以说是两种最基础的数据结构,而Java中的栈内存空间和堆内存空间有 ...

  3. [数据结构]——链表(list)、队列(queue)和栈(stack)

    在前面几篇博文中曾经提到链表(list).队列(queue)和(stack),为了更加系统化,这里统一介绍着三种数据结构及相应实现. 1)链表 首先回想一下基本的数据类型,当需要存储多个相同类型的数据 ...

  4. Stack Overflow 排错翻译 - Closing AlertDialog.Builder in Android -Android环境中关闭AlertDialog.Builder

    Stack Overflow 排错翻译  - Closing AlertDialog.Builder in Android -Android环境中关闭AlertDialog.Builder 转自:ht ...

  5. Uncaught RangeError: Maximum call stack size exceeded 调试日记

    异常处理汇总-前端系列 http://www.cnblogs.com/dunitian/p/4523015.html 开发道路上不是解决问题最重要,而是解决问题的过程,这个过程我们称之为~~~调试 记 ...

  6. Stack操作,栈的操作。

    栈是先进后出,后进先出的操作. 有点类似浏览器返回上一页的操作, public class Stack<E>extends Vector<E> 是vector的子类. 常用方法 ...

  7. [LeetCode] Implement Stack using Queues 用队列来实现栈

    Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. po ...

  8. [LeetCode] Min Stack 最小栈

    Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. pu ...

  9. Stack的三种含义

    作者: 阮一峰 日期: 2013年11月29日 学习编程的时候,经常会看到stack这个词,它的中文名字叫做"栈". 理解这个概念,对于理解程序的运行至关重要.容易混淆的是,这个词 ...

  10. Uncaught RangeError: Maximum call stack size exceeded 超出最大调用值(个人解释)

    写了段jq后,报这个错,度娘未解,灵光一闪,找到原因,上代码: Html 结构: <a href="javascript:;" class="item-pic&qu ...

随机推荐

  1. Linux下为何都是文件的理解

    所谓“文件”,就是在我们的电脑中,以实现某种功能.或某个软件的部分功能为目的而定义的一个单位. Linux都是以文件的形式存在,当我们访问某个文件(Linux中的文件有目录,连接,普通文本),由于Li ...

  2. 字节数转换为b,kb,mb,gb的方法 通用的手机流量计算方法

    //通用的手机流量计算方法 private String byteToMB(long size){ long kb = 1024; long mb = kb*1024; long gb = mb*10 ...

  3. 《离散数学之把妹要诀》的js实现

    网上看到一篇有意思的文章<离散数学之把妹要诀> 就用JS写了上面所讲的配对方式: 首先设定变量 // 男生理想列表 var menPreference = { A: [1, 2, 3, 4 ...

  4. Xampp Linux应用

    一.基本操作: 1.Xampp安装包下载:   https://www.apachefriends.org/index.html   2.安装与配置:   将xampp-linux-x64-5.6.3 ...

  5. uva 12171 hdu 1771 Sculpture

    //这题从十一点开始写了四十分钟 然后查错一小时+ 要吐了 这题题意是给很多矩形的左下角(x,y,z最小的那个角)和三边的长(不是x,y,z最大的那个角T-T),为组成图形的面积与表面积(包在内部的之 ...

  6. [LeetCode][Python]Reverse Integer

    # -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'https://oj.leetcode.com/problems/reverse ...

  7. Spring AOP AspectJ Pointcut 表达式例子

    主要来源:http://howtodoinjava.com/spring/spring-aop/writing-spring-aop-aspectj-pointcut-expressions-with ...

  8. Android自定义Activity酷炫的动画跳转效果

    两个Activity跳转的时候,自定义翻页效果: Intent intent = new Intent(FirstActivity.this, SecondActivity.class);   sta ...

  9. ObjectiveC中的block用法解析

    Block Apple 在C, Objective-C,C++加上Block这个延申用法.目前只有Mac 10.6 和iOS 4有支持.Block是由一堆可执行的程序组成,也可以称做没有名字的Func ...

  10. MFC知识点整理

    1. 在使用VS2010生成基于MFC的应用程序时,在“Visual C++”下选择“MFC”,对话框中间区域会出现三个选项:MFC ActiveX Control.MFC Application和M ...