SlideShare a Scribd company logo
1 of 35
OPENSTACK IN 1 mins
Dawood Sayyed
What is Open Stack ?
• OpenStack is a free and open-source software platform for cloud
computing, mostly deployed as an infrastructure-as-a-service (IaaS).
The software platform consists of interrelated components that
control hardware pools of processing, storage, and networking
resources throughout a data center.
What we will do with Open-stack ?
• Single node installation
• Multi node installation
• Difference between Dev-stack and Pack-stack
• Dev-stack installation
• Pack-stack installation
Openstack Services
• 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.
Openstack Services
• 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.
Openstack Services
• 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. In this case, it writes objects and files to
multiple drives, ensuring the data is replicated across a server cluster.
Openstack Services
• Block Storage /Cinder
• Provides persistent block storage to running instances. Its pluggable
driver architecture facilitates the creation and management of block
storage devices.
• Image Service /Glance
• Stores and retrieves virtual machine disk images. OpenStack Compute
makes use of this during instance provisioning.
Openstack Services
• Telemetry / Ceilometer
• Monitors and meters the OpenStack cloud for billing, benchmarking,
scalability, and statistical purposes.
• Orchestration /Heat
• Orchestrates multiple composite cloud applications by using either
the native HOTtemplate format or the AWS CloudFormation template
format, through both an OpenStack-native REST API and a
CloudFormation-compatible Query AP
Single node installation on Openstack
• Single Node
• Single Node Installation runs all OpenStack services in one node
including Control, Network, Compute, Storage services.
• Networking
• It is recommended to have 2 NIC cards (eth0 and eth1) to install
OpenStack. However, for this tutorial we will use a single interface
eth0 with a static IP (192.168.100.10). We can use same IP (as eth0)
as gateway of external subnet or add virtual interface (eth0:1) with
different subnet.
Networking on single node Openstack
• It is recommended to have 2 NIC cards (eth0 and eth1) to install
OpenStack. However, for this tutorial we will use a single interface
eth0 with a static IP (192.168.100.10). We can use same IP (as eth0)
as gateway of external subnet or add virtual interface (eth0:1) with
different subnet
• # vi /etc/network/interfaces
• auto eth0
• iface eth0 inet static
• address 192.168.100.10
• netmask 255.255.255.0
Networking on single node Openstack
• gateway 192.168.100.1
• # service networking restart → if required
• # hostname <hostname>
• # echo <hostname> > /etc/hostname
• # echo ‘192.168.100.10 <hostname>’ >> /etc/hosts
Single node OpenStack Ubuntu Cloud Archive
Repo
• Now install the latest stable release of Openstack (Kilo/Liberty) from
Ubuntu’s cloud archive:
• # apt-get install python-software-properties
• # add-apt-repository cloud-archive:kilo
• # apt-get update
• # apt-get dist-upgrade (Optional)
Openstack Single node install MySQL Server
• OpenStack services require a database to store information and
supports many popular database engines including MongoDB and
PostGre. In this tutorial, we will use MySQL as database backend.
• # apt-get install python-mysqldb mysql-server
• #bind-address 192.168.100.10 (Comment out this line or change
192.168.100.10 to 0.0.0.0)
Openstack Single Node Install Messaging
server
• OpenStack requires a Messaging / Broker service to communicate
between its services. We will use RabbitMQ but Qpid and ZeroMQ
(0MQ) are also supported.
• # apt-get install rabbitmq-server
• It is optional to change the password in the dev environment but is
recommended in production. By default guest user is created with
password guest.
• # rabbitmqctl change_password guest <New_Pass>
Enable IP Forwarding
• We need to enable Packet Forwarding for networking to work, we can
opt. this to configure during Network installation.
• # vi /etc/sysctl.conf
• net.ipv4.ip_forward=1 (Uncomment this line)
Multinode Openstack
NIC Requirement for Multinode
• Networking:
• Following is the NIC card requirement for multi node installation of
OpenStack:
• Compute node
• Control node
• Network node
Compute Node
• Compute Node
• Two Network Interfaces:
• a. External Network: Used for External Connectivity
• b. Management Network: Used for connectivity for OpenStack nodes.
Control Node
• Control Node
• Two Network Interfaces:
• a. External Network: Used for External Connectivity
• b. Management Network: Used for connectivity for OpenStack nodes
Network Node
• Network
• Three Network Interfaces:
• a. External Network: Used for External Connectivity
• b. Management Network: Used for connectivity for OpenStack nodes
• c. Data Network: Used for connectivity between VM’s.
• Note that each network Interface must have a static IP.
Preparation of Control Node:
• Networking
• The control node has two Network Interfaces: One with network
connectivity (eth0), and another internal network for Management
use.
• # vi /etc/network/interfaces
auto eth0
• iface eth0 inet static
• address 192.168.100.10
• netmask 255.255.255.0
Preparation of Control Node
• gateway 192.168.100.1
• #Management Network
• auto eth1
• iface eth1 inet static
• address 10.0.0.10
• netmask 255.255.255.0
• gateway 10.0.0.1
Preparation of Control Node
• # service networking restart
• And set the hostname.
Multinode OpenStack Ubuntu Cloud Archive
repository
• To install OpenStack we will add the latest stable release (Codename:-
Liberty) repository.
• # apt-get install python-software-properties
• # add-apt-repository cloud-archive:Liberty
• # apt-get update
• # apt-get dist-upgrade (Optional)
Multinode Openstack Install MySQL server
• OpenStack services require a database to store information. We will
use MySQL as database back-end. OpenStack supports most of the
popular database engines such as mongodb, PostGre, etc.
• # apt-get install python-mysqldb mysql-server
• The next step is optional for single node installation. If we need to
add additional nodes, such as compute nodes or storage nodes,
MySQL should start on all the interfaces, as the default is only for
localhost.
• # /etc/mysql/my.cnf
Install MySQL server
• #bind-address 192.168.100.10 (Comment out this line or change
192.168.100.10 to 0.0.0.0)
Install Messaging server
• OpenStack requires a messaging/broker service to communicate
between its services. We will use RabbitMQ, but Qpid and ZeroMQ
(0MQ) are also supported
• # apt-get install rabbitmq-server
• It is optional to change the password in the dev environment,
however, it is recommended in production. By default, the guest user
is created with the password guest.
• # rabbitmqctl change_password guest &lt;New_Pass&gt;
• Now, the node is ready for OpenStack Installation.
Install MySQL python library.
• On network nodes we only need to install MySQL client and MySQL
Python library
• # apt-get install python-mysqldb
Devstack and Packstack
• DevStack is an opinionated script to quickly create an OpenStack
development environment. It can also be used to demonstrate
starting/running OpenStack services and provide examples of using
them from a command line.
• Packstack is a utility that uses Puppet modules to deploy various parts
of OpenStack on multiple pre-installed servers over SSH
automatically. Currently only Fedora, Red Hat Enterprise Linux (RHEL)
and compatible derivatives of both are supported.
Devstack Installation
• Select a Linux Distribution
• Only Ubuntu 14.04 (Trusty), Fedora 22 (or Fedora 23) and
CentOS/RHEL 7 are documented here. OpenStack also runs and is
packaged on other flavors of Linux such as OpenSUSE and Debian.
• Install Selected OS
• In order to correctly install all the dependencies, we assume a specific
minimal version of the supported distributions to make it as easy as
possible. We recommend using a minimal install of Ubuntu or Fedora
server in a VM if this is your first time.
Devstack Installation
• Download DevStack
• Git clone https://git.openstack.org/openstack-dev/devstack
• The devstack repo contains a script that installs OpenStack and
• Templates for configuration files
• Add Stack User
• Devstack should be run as a non-root user with sudo enabled
(standard logins to cloud images such as “ubuntu” or “cloud-user” are
usually fine).
• You can quickly create a separate stack user to run DevStack with
DevStack Installation
• Devstack/tools/create-stack-user.sh; su stack
• Cd devstack; ./stack.sh
PackStack Installation and Running
• Sudo yum install –y openstack-packstack
• Which packstack
• Single Node Deployment
• Packstack –install-hosts=192.168.1.0
• Multiple Node Deployment
• Packstack –install-hosts=192.168.1.0,192.168.1.1,192.168.1.2
• root@192.168.1.0’s password:
PackStack Installation and Running
• Packstack
• ~/.ssh/id_rsa.pub.
• Should Packstack install Glance image service.
• Should Packstack install Cinder volume service
• Should Packstack install Nova compute image service
• Should Packstack install Horizon dashboard service
• Should Packstack install Swift object storage service
Packstack client tools ?
• Should Packstack install Openstack client tools
• Should Packstack install NTP
• Should Packstack install Nagios to monitor openstack host

More Related Content

What's hot

What's hot (20)

CloudStack Networking
CloudStack NetworkingCloudStack Networking
CloudStack Networking
 
Using the KVMhypervisor in CloudStack
Using the KVMhypervisor in CloudStackUsing the KVMhypervisor in CloudStack
Using the KVMhypervisor in CloudStack
 
Open vSwitch Introduction
Open vSwitch IntroductionOpen vSwitch Introduction
Open vSwitch Introduction
 
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
 
CloudStack networking
CloudStack networkingCloudStack networking
CloudStack networking
 
OpenStack Networking
OpenStack NetworkingOpenStack Networking
OpenStack Networking
 
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
 
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Building Multi-Site and Multi-OpenStack Cloud with OpenStack CascadingBuilding Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Meetup 23 - 02 - OVN - The future of networking in OpenStack
Meetup 23 - 02 - OVN - The future of networking in OpenStackMeetup 23 - 02 - OVN - The future of networking in OpenStack
Meetup 23 - 02 - OVN - The future of networking in OpenStack
 
VMware vSphere Networking deep dive
VMware vSphere Networking deep diveVMware vSphere Networking deep dive
VMware vSphere Networking deep dive
 
An Introduction to VMware NSX
An Introduction to VMware NSXAn Introduction to VMware NSX
An Introduction to VMware NSX
 
oVirt Introduction
oVirt IntroductionoVirt Introduction
oVirt Introduction
 
OpenShift Virtualization- Technical Overview.pdf
OpenShift Virtualization- Technical Overview.pdfOpenShift Virtualization- Technical Overview.pdf
OpenShift Virtualization- Technical Overview.pdf
 
Rapport mise en place d'un sevrer VPN .
   Rapport mise en place d'un sevrer VPN .   Rapport mise en place d'un sevrer VPN .
Rapport mise en place d'un sevrer VPN .
 
Routed Fabrics For Ceph
Routed Fabrics For CephRouted Fabrics For Ceph
Routed Fabrics For Ceph
 
Volume Encryption In CloudStack
Volume Encryption In CloudStackVolume Encryption In CloudStack
Volume Encryption In CloudStack
 
2 vm provisioning
2 vm provisioning2 vm provisioning
2 vm provisioning
 
Sécurité dans le cloud
Sécurité dans le cloudSécurité dans le cloud
Sécurité dans le cloud
 
Docker Networking Deep Dive
Docker Networking Deep DiveDocker Networking Deep Dive
Docker Networking Deep Dive
 

Viewers also liked

OpenStack Introduction
OpenStack IntroductionOpenStack Introduction
OpenStack Introduction
openstackindia
 
Introducing OpenStack for Beginners
Introducing OpenStack for Beginners Introducing OpenStack for Beginners
Introducing OpenStack for Beginners
openstackindia
 

Viewers also liked (17)

OpenStack Architecture
OpenStack ArchitectureOpenStack Architecture
OpenStack Architecture
 
How to master OpenStack in 2 hours
How to master OpenStack in 2 hoursHow to master OpenStack in 2 hours
How to master OpenStack in 2 hours
 
#OSATH Deploy OpenStack: DevStack
#OSATH Deploy OpenStack: DevStack#OSATH Deploy OpenStack: DevStack
#OSATH Deploy OpenStack: DevStack
 
How to Make Money with OpenStack
How to Make Money with OpenStack How to Make Money with OpenStack
How to Make Money with OpenStack
 
Protecting Yourself from the Container Shakeout
Protecting Yourself from the Container ShakeoutProtecting Yourself from the Container Shakeout
Protecting Yourself from the Container Shakeout
 
Openstack components as containerized microservices
Openstack components as containerized microservicesOpenstack components as containerized microservices
Openstack components as containerized microservices
 
Fuel, Puppet and OpenStack
Fuel, Puppet and OpenStackFuel, Puppet and OpenStack
Fuel, Puppet and OpenStack
 
Running OpenStack on Amazon AWS, Alex Fishman
Running OpenStack on Amazon AWS, Alex FishmanRunning OpenStack on Amazon AWS, Alex Fishman
Running OpenStack on Amazon AWS, Alex Fishman
 
Accelerating the Next 10,000 Clouds
Accelerating the Next 10,000 CloudsAccelerating the Next 10,000 Clouds
Accelerating the Next 10,000 Clouds
 
OpenStack: Changing the Face of Service Delivery
OpenStack: Changing the Face of Service DeliveryOpenStack: Changing the Face of Service Delivery
OpenStack: Changing the Face of Service Delivery
 
Digital Disciplines: Attaining Market Leadership through the Cloud
Digital Disciplines: Attaining Market Leadership through the CloudDigital Disciplines: Attaining Market Leadership through the Cloud
Digital Disciplines: Attaining Market Leadership through the Cloud
 
Boris Renski: OpenStack Summit Keynote Austin 2016
Boris Renski: OpenStack Summit Keynote Austin 2016Boris Renski: OpenStack Summit Keynote Austin 2016
Boris Renski: OpenStack Summit Keynote Austin 2016
 
OpenStack and the IoT: Where we are, where we're going, what we need to get t...
OpenStack and the IoT: Where we are, where we're going, what we need to get t...OpenStack and the IoT: Where we are, where we're going, what we need to get t...
OpenStack and the IoT: Where we are, where we're going, what we need to get t...
 
Decomposing Lithium's Monolith with Kubernetes and OpenStack
Decomposing Lithium's Monolith with Kubernetes and OpenStackDecomposing Lithium's Monolith with Kubernetes and OpenStack
Decomposing Lithium's Monolith with Kubernetes and OpenStack
 
Mirantis life
Mirantis lifeMirantis life
Mirantis life
 
OpenStack Introduction
OpenStack IntroductionOpenStack Introduction
OpenStack Introduction
 
Introducing OpenStack for Beginners
Introducing OpenStack for Beginners Introducing OpenStack for Beginners
Introducing OpenStack for Beginners
 

Similar to Openstack in 10 mins

Openstack Cactus Survey
Openstack Cactus SurveyOpenstack Cactus Survey
Openstack Cactus Survey
Pjack Chen
 

Similar to Openstack in 10 mins (20)

Minimal OpenStack LinuxCon NA 2015
Minimal OpenStack LinuxCon NA 2015Minimal OpenStack LinuxCon NA 2015
Minimal OpenStack LinuxCon NA 2015
 
Cloud Architect Alliance #15: Openstack
Cloud Architect Alliance #15: OpenstackCloud Architect Alliance #15: Openstack
Cloud Architect Alliance #15: Openstack
 
Introduction to Open stack - An Overview
Introduction to Open stack - An Overview Introduction to Open stack - An Overview
Introduction to Open stack - An Overview
 
Quick overview of Openstack architecture
Quick overview of Openstack architectureQuick overview of Openstack architecture
Quick overview of Openstack architecture
 
Openstack Cactus Survey
Openstack Cactus SurveyOpenstack Cactus Survey
Openstack Cactus Survey
 
Open stack wtf_(1)
Open stack  wtf_(1)Open stack  wtf_(1)
Open stack wtf_(1)
 
Open Source MANO(OSM)
Open Source MANO(OSM)Open Source MANO(OSM)
Open Source MANO(OSM)
 
Améliorer OpenStack avec les technologies Intel
Améliorer OpenStack avec les technologies IntelAméliorer OpenStack avec les technologies Intel
Améliorer OpenStack avec les technologies Intel
 
Devnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStackDevnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStack
 
OpenStack as an Infrastructure
OpenStack as an InfrastructureOpenStack as an Infrastructure
OpenStack as an Infrastructure
 
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
 
Cloudinit
CloudinitCloudinit
Cloudinit
 
Calico with open stack
Calico with open stackCalico with open stack
Calico with open stack
 
OpenStack hands-on (All-in-One)
OpenStack hands-on (All-in-One)OpenStack hands-on (All-in-One)
OpenStack hands-on (All-in-One)
 
How to integrate_custom_openstack_services_with_devstack
How to integrate_custom_openstack_services_with_devstackHow to integrate_custom_openstack_services_with_devstack
How to integrate_custom_openstack_services_with_devstack
 
Openstack 101
Openstack 101Openstack 101
Openstack 101
 
DR_PRESENT 1
DR_PRESENT 1DR_PRESENT 1
DR_PRESENT 1
 
OpenStack Summit 2013 Hong Kong - OpenStack and Windows
OpenStack Summit 2013 Hong Kong - OpenStack and WindowsOpenStack Summit 2013 Hong Kong - OpenStack and Windows
OpenStack Summit 2013 Hong Kong - OpenStack and Windows
 
Deep Dive: OpenStack Summit (Red Hat Summit 2014)
Deep Dive: OpenStack Summit (Red Hat Summit 2014)Deep Dive: OpenStack Summit (Red Hat Summit 2014)
Deep Dive: OpenStack Summit (Red Hat Summit 2014)
 
RTP NPUG: Ansible Intro and Integration with ACI
RTP NPUG: Ansible Intro and Integration with ACIRTP NPUG: Ansible Intro and Integration with ACI
RTP NPUG: Ansible Intro and Integration with ACI
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Openstack in 10 mins

  • 1. OPENSTACK IN 1 mins Dawood Sayyed
  • 2. What is Open Stack ? • OpenStack is a free and open-source software platform for cloud computing, mostly deployed as an infrastructure-as-a-service (IaaS). The software platform consists of interrelated components that control hardware pools of processing, storage, and networking resources throughout a data center.
  • 3. What we will do with Open-stack ? • Single node installation • Multi node installation • Difference between Dev-stack and Pack-stack • Dev-stack installation • Pack-stack installation
  • 4. Openstack Services • 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.
  • 5. Openstack Services • 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.
  • 6. Openstack Services • 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. In this case, it writes objects and files to multiple drives, ensuring the data is replicated across a server cluster.
  • 7. Openstack Services • Block Storage /Cinder • Provides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices. • Image Service /Glance • Stores and retrieves virtual machine disk images. OpenStack Compute makes use of this during instance provisioning.
  • 8. Openstack Services • Telemetry / Ceilometer • Monitors and meters the OpenStack cloud for billing, benchmarking, scalability, and statistical purposes. • Orchestration /Heat • Orchestrates multiple composite cloud applications by using either the native HOTtemplate format or the AWS CloudFormation template format, through both an OpenStack-native REST API and a CloudFormation-compatible Query AP
  • 9. Single node installation on Openstack • Single Node • Single Node Installation runs all OpenStack services in one node including Control, Network, Compute, Storage services. • Networking • It is recommended to have 2 NIC cards (eth0 and eth1) to install OpenStack. However, for this tutorial we will use a single interface eth0 with a static IP (192.168.100.10). We can use same IP (as eth0) as gateway of external subnet or add virtual interface (eth0:1) with different subnet.
  • 10. Networking on single node Openstack • It is recommended to have 2 NIC cards (eth0 and eth1) to install OpenStack. However, for this tutorial we will use a single interface eth0 with a static IP (192.168.100.10). We can use same IP (as eth0) as gateway of external subnet or add virtual interface (eth0:1) with different subnet • # vi /etc/network/interfaces • auto eth0 • iface eth0 inet static • address 192.168.100.10 • netmask 255.255.255.0
  • 11. Networking on single node Openstack • gateway 192.168.100.1 • # service networking restart → if required • # hostname <hostname> • # echo <hostname> > /etc/hostname • # echo ‘192.168.100.10 <hostname>’ >> /etc/hosts
  • 12. Single node OpenStack Ubuntu Cloud Archive Repo • Now install the latest stable release of Openstack (Kilo/Liberty) from Ubuntu’s cloud archive: • # apt-get install python-software-properties • # add-apt-repository cloud-archive:kilo • # apt-get update • # apt-get dist-upgrade (Optional)
  • 13. Openstack Single node install MySQL Server • OpenStack services require a database to store information and supports many popular database engines including MongoDB and PostGre. In this tutorial, we will use MySQL as database backend. • # apt-get install python-mysqldb mysql-server • #bind-address 192.168.100.10 (Comment out this line or change 192.168.100.10 to 0.0.0.0)
  • 14. Openstack Single Node Install Messaging server • OpenStack requires a Messaging / Broker service to communicate between its services. We will use RabbitMQ but Qpid and ZeroMQ (0MQ) are also supported. • # apt-get install rabbitmq-server • It is optional to change the password in the dev environment but is recommended in production. By default guest user is created with password guest. • # rabbitmqctl change_password guest <New_Pass>
  • 15. Enable IP Forwarding • We need to enable Packet Forwarding for networking to work, we can opt. this to configure during Network installation. • # vi /etc/sysctl.conf • net.ipv4.ip_forward=1 (Uncomment this line)
  • 17. NIC Requirement for Multinode • Networking: • Following is the NIC card requirement for multi node installation of OpenStack: • Compute node • Control node • Network node
  • 18. Compute Node • Compute Node • Two Network Interfaces: • a. External Network: Used for External Connectivity • b. Management Network: Used for connectivity for OpenStack nodes.
  • 19. Control Node • Control Node • Two Network Interfaces: • a. External Network: Used for External Connectivity • b. Management Network: Used for connectivity for OpenStack nodes
  • 20. Network Node • Network • Three Network Interfaces: • a. External Network: Used for External Connectivity • b. Management Network: Used for connectivity for OpenStack nodes • c. Data Network: Used for connectivity between VM’s. • Note that each network Interface must have a static IP.
  • 21. Preparation of Control Node: • Networking • The control node has two Network Interfaces: One with network connectivity (eth0), and another internal network for Management use. • # vi /etc/network/interfaces auto eth0 • iface eth0 inet static • address 192.168.100.10 • netmask 255.255.255.0
  • 22. Preparation of Control Node • gateway 192.168.100.1 • #Management Network • auto eth1 • iface eth1 inet static • address 10.0.0.10 • netmask 255.255.255.0 • gateway 10.0.0.1
  • 23. Preparation of Control Node • # service networking restart • And set the hostname.
  • 24. Multinode OpenStack Ubuntu Cloud Archive repository • To install OpenStack we will add the latest stable release (Codename:- Liberty) repository. • # apt-get install python-software-properties • # add-apt-repository cloud-archive:Liberty • # apt-get update • # apt-get dist-upgrade (Optional)
  • 25. Multinode Openstack Install MySQL server • OpenStack services require a database to store information. We will use MySQL as database back-end. OpenStack supports most of the popular database engines such as mongodb, PostGre, etc. • # apt-get install python-mysqldb mysql-server • The next step is optional for single node installation. If we need to add additional nodes, such as compute nodes or storage nodes, MySQL should start on all the interfaces, as the default is only for localhost. • # /etc/mysql/my.cnf
  • 26. Install MySQL server • #bind-address 192.168.100.10 (Comment out this line or change 192.168.100.10 to 0.0.0.0)
  • 27. Install Messaging server • OpenStack requires a messaging/broker service to communicate between its services. We will use RabbitMQ, but Qpid and ZeroMQ (0MQ) are also supported • # apt-get install rabbitmq-server • It is optional to change the password in the dev environment, however, it is recommended in production. By default, the guest user is created with the password guest. • # rabbitmqctl change_password guest &lt;New_Pass&gt; • Now, the node is ready for OpenStack Installation.
  • 28. Install MySQL python library. • On network nodes we only need to install MySQL client and MySQL Python library • # apt-get install python-mysqldb
  • 29. Devstack and Packstack • DevStack is an opinionated script to quickly create an OpenStack development environment. It can also be used to demonstrate starting/running OpenStack services and provide examples of using them from a command line. • Packstack is a utility that uses Puppet modules to deploy various parts of OpenStack on multiple pre-installed servers over SSH automatically. Currently only Fedora, Red Hat Enterprise Linux (RHEL) and compatible derivatives of both are supported.
  • 30. Devstack Installation • Select a Linux Distribution • Only Ubuntu 14.04 (Trusty), Fedora 22 (or Fedora 23) and CentOS/RHEL 7 are documented here. OpenStack also runs and is packaged on other flavors of Linux such as OpenSUSE and Debian. • Install Selected OS • In order to correctly install all the dependencies, we assume a specific minimal version of the supported distributions to make it as easy as possible. We recommend using a minimal install of Ubuntu or Fedora server in a VM if this is your first time.
  • 31. Devstack Installation • Download DevStack • Git clone https://git.openstack.org/openstack-dev/devstack • The devstack repo contains a script that installs OpenStack and • Templates for configuration files • Add Stack User • Devstack should be run as a non-root user with sudo enabled (standard logins to cloud images such as “ubuntu” or “cloud-user” are usually fine). • You can quickly create a separate stack user to run DevStack with
  • 33. PackStack Installation and Running • Sudo yum install –y openstack-packstack • Which packstack • Single Node Deployment • Packstack –install-hosts=192.168.1.0 • Multiple Node Deployment • Packstack –install-hosts=192.168.1.0,192.168.1.1,192.168.1.2 • root@192.168.1.0’s password:
  • 34. PackStack Installation and Running • Packstack • ~/.ssh/id_rsa.pub. • Should Packstack install Glance image service. • Should Packstack install Cinder volume service • Should Packstack install Nova compute image service • Should Packstack install Horizon dashboard service • Should Packstack install Swift object storage service
  • 35. Packstack client tools ? • Should Packstack install Openstack client tools • Should Packstack install NTP • Should Packstack install Nagios to monitor openstack host