Wednesday, August 20, 2014

Openstack Icehouse Installation using Devstack

System Requirement

Ubuntu 14.04 LTS
Disk : 20GB
Memory : 4GB
Network : 2


Steps

- Install Linux
- basic Linux upgrade
- Install Git
- Git clone
- cd devsatck
- create localrc
- run stack.sh


Detailed Steps

1. Linux update

sudo apt-get update

sudo rm -rf /var/lib/apt/lists/*

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

sudo rebooting


2. Install devstack

sudo apt-get install git
git clone -b stable/icehouse https://github.com/openstack-dev/devstack.git





3. Configure localrc as below
nano /etc/resolv.conf
    nameserver 8.8.8.8
    nameserver 8.8.4.4

sudo resolvconf -u

cd /devstack

wget -O localrc http://goo.gl/OeOGqL 



4. Add a following line in localrc (Very Important)

GIT_BASE=${GIT_BASE:-https://git.openstack.org}


5. Run stack script

./stack.sh

=============

stack@ubuntu14:~/devstack$ more localrc
DEST=/opt/stack
GIT_BASE=${GIT_BASE:-https://git.openstack.org}

# Logging
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
SCREEN_LOGDIR=$DEST/logs/screen

# Credentials
ADMIN_PASSWORD=openstack
MYSQL_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_PASSWORD=openstack
SERVICE_TOKEN=tokentoken

# Github's Branch
GLANCE_BRANCH=stable/icehouse
HORIZON_BRANCH=stable/icehouse
KEYSTONE_BRANCH=stable/icehouse
NOVA_BRANCH=stable/icehouse
NEUTRON_BRANCH=stable/icehouse
HEAT_BRANCH=stable/icehouse
CEILOMETER_BRANCH=stable/icehouse

# Neutron - Networking Service
DISABLED_SERVICES=n-net
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-metering,neutron

# Neutron - Load Balancing
ENABLED_SERVICES+=,q-lbaas

# Heat - Orchestration Service
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
HEAT_STANDALONE=True

# Ceilometer - Metering Service (metering + alarming)
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval

stack@ubuntu14:~/devstack$

No comments:

Post a Comment