2014년 5월 3일 토요일

Installation of OpenStack icehouse using devstack

###########################
# Network interface configuration
# /etc/network/interfaces
###########################

# The primary network interface
auto eth0
        iface eth0 inet dhcp

auto eth1
        iface eth1 inet manual
        up ifconfig $IFACE 0.0.0.0 up
        up ip link set $IFACE promisc on
        down ip link set $IFACE promisc off
        down ifconfig $IFACE down


############################
Installation steps
###########################

1. ssh root
2. apt-get -y update
3. apt-get -y install git
4. create user stack

# useradd -U -G sudo -s /bin/bash -m stack
# echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# passwd stack

5. login as user stack
6. git clone https://github.com/openstack-dev/devstack.git -b stable/icehouse
7. cd devstack/
8. copy ./samples/local.conf to root directory
9. Add contents below into local.conf
10. ./stack.sh 
11. Do configuration as below for accessing from local PC to VM instances
      $ sudo ovs-vsctl show
      $ sudo ovs-vsctl add-port br-ex eth1


###########################
local.conf
###########################

# default 
HOST_IP=10.1.100.12

# network
FLAT_INTERFACE=eth0
FIXED_RANGE=10.0.0.0/24
FIXED_NETWORK_SIZE=256
NETWORK_GATEWAY=10.0.0.1
FLOATING_RANGE=192.168.100.0/24

# This IP will be assigned to br-ex interface after installation.
# So MUST check if this IP is not conflict with the IP of virtual port in local PC (e.g. VMnet8 or VMnet1 in case of VMware)
PUBLIC_NETWORK_GATEWAY=192.168.100.1


# Services
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
ENABLED_SERVICES+=,horizon
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api


댓글 없음:

댓글 쓰기