Sunday, July 31, 2016

INSTALLATION OF OPENSTACK



OpenStack


OPENSTACK

                OpenStack is a set of software tools for building and managing cloud computing platforms for public and private clouds. Backed by some of the biggest companies in software development and hosting, as well as thousands of individual community members, many think that OpenStack is the future of cloud computing. OpenStack is managed by the OpenStack Foundation, a non-profit that oversees both development and community-building around the project.

 COMPONENTS AND SERVICES



Service
Project name
Description
Dashboard
Horizon
Provides a web-based self-service portal to interact with underlying OpenStack services, such as launching an instance, assigning IP addresses and configuring access controls.
Compute
Nova
Manages the lifecycle of compute instances in an OpenStack environment. Responsibilities include spawning, scheduling and decommissioning of virtual machines on demand.
Networking
Neutron
Enables Network-Connectivity-as-a-Service for other OpenStack services, such as OpenStack Compute. Provides an API for users to define networks and the attachments into them. Has a pluggable architecture that supports many popular networking vendors and technologies.
Storage
Object Storage
Swift
Stores and retrieves arbitrary unstructured data objects via a RESTful, HTTP based API. It is highly fault tolerant with its data replication and scale out architecture. Its implementation is not like a file server with mountable directories.
Block Storage
Cinder
Provides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices.
Shared services
Identity service
Keystone
Provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
Image Service
Glance
Stores and retrieves virtual machine disk images. OpenStack Compute makes use of this during instance provisioning.
Telemetry
Monitors and meters the OpenStack cloud for billing, benchmarking, scalability, and statistical purposes.
Higher-level services
Orchestration
Heat
Orchestrates multiple composite cloud applications by using either the native HOT template format or the AWS CloudFormation template format, through both an OpenStack-native REST API and a CloudFormation-compatible Query API.
Database Service
Trove
Provides scalable and reliable Cloud Database-as-a-Service functionality for both relational and non-relational database engines.



openstack architecture





INSTALLATION OF OPENSTACK


1. add new user named stack – This stack user is the adminstrator of the openstack services.

            To add new user – run the command as root user.

                        adduser stack

2. run the command
                         apt-get install sudo -y


3. Be careful in running the command – please be careful with the syntax. If any error in thsi following command, the system will crash beacause of permission errors. 
                                               
                        echo “stack ALL=(ALL) NOPASSWD:ALL” >> /etc/sudoers

4. Logout the system and login as stack user

5. Run the command (this installs git repo package)
Please ensure that you are as logged in as non-root user (stack user), and not in /root directory.

                        sudo apt-get install git
6. Run the command (This clones updatesd version of dev-stack (which is binary auto-installer package of Openstack)
                        git clone https://git.openstack.org/openstack-dev/devstack
                        ls (this shows a folder named devstack)
                        cd devstack (enter into the folder)

7. create a file called local.conf. To do this run the command,
                        nano local.conf

8. In the file, make the following entry (Contact Your Network Adminstrator for doubts in these values)
            [[local|localrc]]
FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.11.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=root
DATABASE_PASSWORD=root
RABBIT_PASSWORD=root
SERVICE_PASSWORD=root
SERVICE_TOCKEN=root

9. Save this file
10. Run the command (This installs Opentack)
            ./stack.sh
11. If any error occurs, then run the command for uninistallation
            ./unstack.sh
                        1. update the packages
            apt-get update
                                    2. Then reinstall the package
            ./stack.sh


12. Open the browser, http://IP address of your machine, you will get the openstack portal.



13. If you  restart the machine and want to start open stack

            open terminal,
                        su stack
                        cd devstack
                        run ./rejoin.sh

14. Again you can access openstack services in the browser, http://IP address of your machine, 

No comments:

Post a Comment