Saturday, May 10, 2014

OpenStack - Install

I succeeded in installation OpenStack on Sentos6.5,
But I want to stop or restart service.
I don't know that yet.

@ First, you need to install git to get the Devstack Scripts
$ yum install git
@ Make the sudo group
$ /usr/sbin/groupadd sudo

@ Add stack user and grant stack NOPASSWD
$ useradd -U -G sudo -s /bin/bash -m stack
$ echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
@ Input your password you like(openstack)
$ passwd stack

@ Change user and move the home.
$ su - stack
$ cd /home/stack
$ git clone git://github.com/openstack-dev/devstack.git

@ Create the localrc file
$ vim /home/stack/devstack/localrc
----------------------------------------------------------
#####################
# Date : 2013.03.20 #
# Name : naleeJang #
#####################
# Devstack localrc for Quantum all in one
# default
HOST_IP=19X.16X.11.9

# network
FLAT_INTERFACE=eth0
FIXED_RANGE=10.0.0.0/20
NETWORK_GATEWAY=10.0.0.1
FLOATING_RANGE=19X.16X.11.1/24
EXT_GW_IP=19X.16X.11.1

# vnc
VNCSERVER_LISTEN=0.0.0.0
VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP

# logs
DEST=/opt/stack
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen

# system password
ADMIN_PASSWORD=openstack
MYSQL_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_PASSWORD=openstack
SERVICE_TOKEN=openstackservicetoken

# cinder
VOLUME_GROUP="cinder-volume"
VOLUME_NAME_PREFIX="volume-"

# install service
disable_service n-net
enable_service q-svc q-agt q-dhcp q-l3 q-meta quantum 
---------------------------------------------------------

@ Just execute
$ ./stack.sh

--------------------------------------------------------
@ Result Log
Horizon is now available at http://19X.16X.11.9/
Keystone is serving at http://19X.16X.11.9:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo
The password: openstack
This is your host ip: 19X.16X.11.9

@ Thank you for information
http://naleejang.tistory.com/68

No comments:

Post a Comment