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. zabbix中文配置及乱码问题

    1.切换成中文 2.发现有乱码出现 由于zabbix的web端没有中文字库,所以我们使用windows中的字体. 找到简体字的存储位置——copy到桌面或其他位置——上传到zabbix服务器——web ...

  2. Viewing the Raw SQL Statement(xcode で)

    Thanks to Core Data. Even without learning SQL and database, you’re able to perform create, select, ...

  3. hdu 4634 Swipe Bo bfs+状态压缩

    题目链接 状态压缩记录当前拿到了哪些钥匙, 然后暴力搜索. 搞了好几个小时, 一开始也不知道哪里错了, 最后A了也不知道一开始哪里有问题. #include <iostream> #inc ...

  4. Oracle EBS-SQL (AR-1):检查应收收款发生额

    SELECT SUM(nvl(dist.amount_dr,0))-SUM(nvl(dist.amount_cr,0)) FROM ar_cash_receipt_history_all hist,  ...

  5. SDN 编程语言 p4(SDN programming language P4)

    行业趋势,SND是未来. P4 是未来. SDN is inevitably, and P4 is inevitably. P4 = Programming Protocol-Independent ...

  6. cmd命令 拷贝某文件夹及其子文件夹文件到其它文件夹

    @ECHO OFF cd/d %H:\FileLoc\CNET&cd.. ::echo 拷贝"%H:\FileLoc\CNET"中文件到"H:\FileLocTe ...

  7. opacity在IE6~8下无效果,解决的办法

    opacity在IE6~8下无效果,解决的办法 问题出现时rgba()在ie6下不出效果,最后查到是opacity的问题. opacity是css3时出现的,目前主流浏览器都支持.but老IE是个麻烦 ...

  8. SqlServer数据类型、C#SqlDbType对应关系及转换

    { { } } { SqlDbType dbType = SqlDbType.Variant; { dbType = SqlDbType.Int; dbType = SqlDbType.VarChar ...

  9. WCF Service Configuration Editor的使用

    原文:http://www.cnblogs.com/Ming8006/p/3772221.html 通过WCF Service Configuration Editor的配置修改Client端 参考 ...

  10. 选择器,$("A+B") 和$("A~B") 的理解

    在我发表这个理解之前,我有看过博客园 永恒浪子 大神的 JQuery选择器大全(http://www.cnblogs.com/hulang/archive/2011/01/12/1933771.htm ...