0% found this document useful (0 votes)
88 views

CCL Exp 3

This document provides instructions for installing and configuring an OpenStack private cloud using DevStack. It begins by updating an Ubuntu system and creating a stack user for DevStack deployment. It then clones the DevStack code from GitHub and creates a local.conf file with passwords and the host IP address for configuration.

Uploaded by

Harsh Mendapara
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

CCL Exp 3

This document provides instructions for installing and configuring an OpenStack private cloud using DevStack. It begins by updating an Ubuntu system and creating a stack user for DevStack deployment. It then clones the DevStack code from GitHub and creates a local.conf file with passwords and the host IP address for configuration.

Uploaded by

Harsh Mendapara
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

ALDEL EDUCATION TRUST’S

ST. JOHN COLLEGE OF ENGINEERING AND MANAGEMENT

NAME: - Harsh Mendapara

ROLL NO: - 31

CLASS: - BE

DIV: - A

Batch:- A2

EXPERIMENT NO: - 03

Experiment No: - 03
Date of Performance: - Date of
Submission: -

Marks split up Maximum Marks


Marks Obtained
Timely submission / Punctuality
Presentation / Execution (L-2/3/4-Un/Ap/An)
Approach of Solving (L-4-Ev)
Level of Understanding (L-1/2-Kn/Un)
Total Marks
Signature of Subject Teacher
Experiment 3

Aim: To demonstrate installation and Configuration of OpenStack Private


cloud.
Theory:

What is Open stack?


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.

With a diagram, explain OpenStack architecture?

 Horizon is a web-based interface for managing OpenStack services.

 It provides a graphical user interface for operations such as launching


instances, managing networking and setting access controls.

 Its modular design allows interfacing with other products such as billing,
monitoring and additional management tools.
 Keystone is the centralized identity service that provides authentication and
authorization for other services.
 Keystone also provides a central catalog of services running in a particular
OpenStack cloud.

 It supports multiple forms of authentication including user name and


password credentials, token-based systems, and Amazon Web Services style
logins.

 OpenStack Networking provides connectivity between the interfaces of


other OpenStack services, such as Nova.

 OpenStack Networking is a pluggable architecture, users can create their


own networks, control traffic, and connect servers to other networks.

 A software defined networking service. Includes many plugins like Open


vSwitch, Cisco UCS/Nexus, QoS are possible.

 Cinder is a service that manages storage volumes for virtual


machines.

 This is persistent block storage for the instances running in Nova.

 Snapshots can be taken for backing up and data, either for restoring data, or
to be used to create new block storage volumes.

 Compute nodes form the resource core of the OpenStack Compute cloud,
providing the processing, memory, network and storage resources to run
instances.

 Nova is a distributed component and interacts with Keystone for


authentication, Glance for images and Horizon for web interface.

 Nova is designed to scale horizontally on standard hardware,


downloading images to launch instances as required.

 Glance service that acts as a registry for virtual machine images to allowing
users to copy server images for immediate storage.

 Images can be used as templates when setting up new servers.

 Usually the images are stored in the Swift (Object) service.

 Swift service providing object storage which allows users to store


and retrieve files.

 Swift architecture is distributed to allow for horizontal scaling, and to


provide redundancy as failure-proofing.
Explain the nine core/key components of OpenStack?

Compute (Nova)
OpenStack Compute is a cloud computing fabric controller, which manages pools
of computer resources and work with virtualization technologies, bare metals, and
high-performance computing configurations. Nova’s architecture provides
flexibility to design the cloud with no proprietary software or hardware
requirements and also delivers the ability to integrate the legacy systems and
third-party products.

Image Service (Glance)


OpenStack image service offers discovering, registering, and restoring virtual
machine images. Glance has client-server architecture and delivers a user REST
API, which allows querying of virtual machine image metadata and also retrieval
of the actual image. While deploying new virtual machine instances, Glance uses
the stored images as templates. OpenStack Glance supports Raw, VirtualBox
(VDI), VMWare (VMDK, OVF), Hyper-V (VHD), and Qemu/KVM (qcow2)
virtual machine images.

Object Storage (Swift)


OpenStack Swift creates redundant, scalable data storage to store petabytes of
accessible data. The stored data can be leveraged, retrieved and updated. It has a
distributed architecture, providing greater redundancy, scalability, and
performance, with no central point of control. Swift is a profoundly available,
shared, eventually consistent object store. It helps organizations to store lots of
data safely, cheaply and efficiently. Swift ensures data replication and distribution
over various devices, which makes it ideal for cost-effective, scale-out storage.

Dashboard (Horizon)
Horizon is the authorized implementation of OpenStack’s Dashboard, which is the
only graphical interface to automate cloud-based resources. To service providers
and other commercial vendors, it supports with third party services such as
monitoring, billing, and other management tools. Developers can automate tools
to manage OpenStack resources using EC2 compatibility API or the native
OpenStack API.

Identity Service (Keystone)


Keystone provides a central list of users, mapped against all the OpenStack
services, which they can access. It integrates with existing backend services such
as LDAP while acting as a common authentication system across the cloud
computing system. Keystone supports various forms of authentication like
standard username & password credentials, AWS-style (Amazon Web Services)
logins and token-based systems. Additionally, the catalog provides an endpoint
registry with a queryable list of the services deployed in an OpenStack cloud.
Networking (Neutron)
Neutron provides networking capability like managing networks and IP addresses
for OpenStack. It ensures that the network is not a limiting factor in a cloud
deployment and offers users with self-service ability over network
configurations. OpenStack networking allows users to create their own networks
and connect devices and servers to one or more networks. Developers can use
SDN technology to support great levels of multi-tenancy and massive scale.

Block Storage (Cinder)


OpenStack Cinder delivers determined block-level storage devices for application
with OpenStack compute instances. A cloud user can manage their storage needs
by integrating block storage volumes with Dashboard and Nova. Cinder can use
storage platforms such as Linux server, EMC (ScaleIO, VMAX, and VNX),
Ceph, Coraid, CloudByte, IBM, Hitachi data systems, SAN volume controller,
etc. It is appropriate for expandable file systems and database storage.

Telemetry (Ceilometer)
Ceilometer delivers a single point of contact for billing systems obtaining all of
the measurements to authorize customer billing across all OpenStack core
components. By monitoring notifications from existing services, developers can
collect the data and may configure the type of data to meet their operating
requirements.

Orchestration (Heat)
Heat is a service to orchestrate multiple composite cloud applications through
both the CloudFormation-compatible Query API and OpenStack-native REST
API, using the AWS CloudFormation template format.

Explain modes of operation of OpenStack?

Single host mode: -


In single host mode there is network service which is based on cluster controller.
Cluster controller receives the traffic from all compute nodes. Then cluster
controller forwards the traffic to internet. Floating IP’s and security groups being
hosted on cluster controller. Limitations is single point failure i.e. unavailability
of cluster controller will stop the instances communicating on the network.

Multi host mode: -


To overcome the limitations of single host node there is multi host mode, a copy
of the network is run on each of the compute nodes and these nodes are used as
internet gateway. It is consumed by the instances that are running on each
individual node. Floating IP’s and security groups are also hosted on these
compute nodes of each instances. Limitations is require nodes to have public IP
addresses for communicating on the internet.
Implementation

Step 1: Update Ubuntu system

Login to your Ubuntu system – Can be Desktop or VM in the Cloud and update it.

sudo apt update


sudo apt -y upgrade
sudo apt -y dist-upgrade
Reboot it after an upgrade.

sudo reboot

Step 2: Add Stack User

Devstack should be run as a non-root user with sudo enabled. If you’re running
your instance in the cloud, standard logins to cloud images such as “centos” or
“ubuntu” or “cloud-user” are usually fine.

For other installations of Ubuntu 18.04, run the commands below to create
DevStack deployment user.

sudo useradd -s /bin/bash -d /opt/stack -m stack

Enable sudo privileges for this user without need for a password.

echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee


/etc/sudoers.d/stack

Switch to stack user to test.

jmutai@devstack:~$ sudo su - stack


stack@devstack:~$ sudo su -
root@devstack:~#
Step 3: Download DevStack

Clone Destack deployment code from Github.

su - stack
sudo apt -y install git
git clone https://git.openstack.org/openstack-dev/devstack

Create a local.conf file with 4 passwords and Host IP address.

cd devstack
nano local.conf

Add:

[[local|localrc]]

# Password for KeyStone, Database, RabbitMQ and Service

ADMIN_PASSWORD=StrongAdminSecret

DATABASE_PASSWORD=$ADMIN_PASSWORD

RABBIT_PASSWORD=$ADMIN_PASSWORD

SERVICE_PASSWORD=$ADMIN_PASSWORD

# Host IP - get your Server/VM IP address from ip addr


command

HOST_IP=192.168.10.100
Step 4: Start Openstack Deployment on Ubuntu 18.04 with DevStack

Now that you’ve configured the minimum required config to get started with
DevStack, start the installation of Openstack.

cd devstack
./stack.sh

DevStack will install;

 Keystone – Identity Service


 Glance – Image Service
 Nova – Compute Service
 Placement – Placement API
 Cinder – Block Storage Service
 Neutron – Network Service
 Horizon – Openstack Dashboard

This will take a 15 – 20 minutes, largely depending on the speed of your internet
connection. At the end of the installation process, you should see output like this:

This is your host IP address: 192.168.10.100


This is your host IPv6 address: 2a01:4f8:c2c:308e::1
Horizon is now available at http://192.168.10.100/dashboard
Keystone is serving at http://192.168.10.100/identity/

The default users are: admin and demo


The password: StrongAdminSecret

WARNING:
Using lib/neutron-legacy is deprecated, and it will be
removed in the future

Services are running under systemd unit files.


For more information see:
https://docs.openstack.org/devstack/latest/systemd.html
DevStack Version: stein
Change: 8bdbf850967b90ebdca428247bb93ad2eb6478c0 Merge "Set
ownership of /etc/pki/ files for TLS" 2019-03-26 08:07:26
+0000
OS Version: Ubuntu 18.04 bionic
2019-03-26 21:32:56.743 | stack.sh completed in 1761
seconds.
Step 5: Access OpenStack Dashboard

Copy the Horizon URL shown on the installation output and paste it into your
web browser:

http://192.168.10.100/dashboard

Use the default users’ demo or admin and configured password to login.

Conclusion: -Thus we have successfully studied the installation and


Configuration of OpenStack Private cloud.

You might also like