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$

Tuesday, August 19, 2014

OSPF Review and Terminology


ASBR router
- This router functions as redistributing external routes from some other routing domain to OSPF domain.

ABR router
- This router function as connecting area 0 and other area

Stub Area 
- allow injection of external routes in a limited fashion in stub area
- this area does not allow redistribution

NSSA
- block type 5 and type 4 LSA
- allow type 3 LSA
- Type 7 only exists on NSSA area


What is Type 3
- The Type 3 LSA is originated by ABRs into one area to describe links in another area

What is Type 4
- The Type 4 LSA is originated by an ABR but it is used to describe ASBR in one area to routers in another areas

What is Type 5
- OSPF uses the Type5 external link LSAs to advertise external route originated from an ASBR.


What is Type 7
- The Type 7 that is generated by an NSSA ASBR. The 5 LSAs are not allowed in NSSA areas, so the NSSA ASBR generates a type 7 LSA ins tea. This type 7 LSA gets translated back into a type 5 by the NSSA ABR