SlideShare uma empresa Scribd logo
1 de 15
Baixar para ler offline
© 2016 IBM Corporation
Deploying OpenStack using Ansible
Openstack Day India Event 2016
Chhavi Agarwal
IBM
© 2016 IBM Corporation
Openstack Day India Event 2016
Agenda
 What is Openstack-Ansible ?
 Why we need it ?
 OSAD Architecture
 OSAD Configuration
 How to use it ?
2
© 2016 IBM Corporation
Openstack Day India Event 2016
Why we need Openstack Ansible
 Openstack is hard to install and configure.
 Out of band configuration issues
 Legacy architecture does not scale well.
3
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack Ansible
“Deploying OpenStack from source in a way that makes it scalable while also being
simple to operate, upgrade, and grow.”
4
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack Ansible
 Openstack-Ansible is a Rackspace Initiatives.
 Provides a production ready deployment.
 It uses the power of Ansible.
 Services are pulled and deployed from the Git Source repositories.
 It uses LXC containers to deploy Openstack services.
 Easy to deploy and scale private clouds from single to even thousand nodes.
5
© 2016 IBM Corporation
Openstack Day India Event 2016
Why Ansible
 Ansible provides an automated IT framework for cloud provisioning, configuration
and application deployment.
 It uses a very simple YAML language for playbooks and roles.
 Ansible manages system using SSH, so no remote agents or daemons needed
 Allows parallel task execution.
 Ansible contains a rich set of > 200 built-in modules
 Playbooks are simple and can be easily fine-tuned as per requirement.
6
© 2016 IBM Corporation
Openstack Day India Event 2016
Why LXC Containers
 Openstack runs services in LXC containers ~ Bare-metal.
 Provides OS level virtualization include CPU, memory and block I/O.
 Compatible with many network architectures.
 Supports LVM Backend
 Stable and provides Scalability.
7
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack Ansible Host Layout
8
Redundant 10Gb Network Switches
Infrastructure Control
Plane
Nova
Heat
Glance
keystone
Neutron cinder
Horizon
Galera
Memcached
RabbitMQ
Compute
Plane (n)
Storage
Plane (n)
Cinder-
volume
iSCSI
targets
Ceph
nodes
Bond0
Bond0
Bond1
Bond1
Bond1
Infrastructure
Logging
Host
Rsyslog
Logstash
ELK
Bond0
Bond1
External
Networks
Load
Balancers
Bond0
Bond1
Openstack services
Infrastructure services
Deploy
ment
Host
Ansible
Bond 0 Management Network
Bond 1 VM Network
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack-Ansible Requirement
9
 16GB RAM, 100GB Disk
 Ubuntu 14.04 LTS
 Secure Shell (SSH) client and server that supports public key authentication
 Network Time Protocol (NTP) client for time synchronization.
 Python 2.7 or later.
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack-Ansible configuration
 /etc/Openstack-user-config.yml
10
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack-Ansible Configuration
 Located in /etc/openstack_deploy
– Openstack-user-config.yml
– user_variables.yml
– user_secrets.yml
 conf.d  Define additional services like swift, ceph, haproxy
 /etc/openstack_deploy/env.d/*  Used to defined additional group mapping.
11
© 2016 IBM Corporation
Openstack Day India Event 2016
OSA All-In-One Installation
 Install on a fresh Ubuntu 14.04 host
– # git clone https://github.com/openstack/openstack-ansible 
/opt/openstack-ansible
– # cd /opt/openstack-ansible
– # scripts/bootstrap-ansible.sh // Installs Ansible, roles and modules
– # scripts/bootstrap-aio.sh // Sets up host and config files
– # vi /etc/openstack_deploy/... // Optional: If u want to make any changes
– # scripts/run-playbooks.sh // Install Openstack Services
12
© 2016 IBM Corporation
Openstack Day India Event 2016
Adding a Compute Node
 Edit the /etc/openstack_deploy/openstack_user_config.yml file and add the host to the compute_hosts
stanza.
 # cd /opt/openstack-ansible/playbooks
 # openstack-ansible setup-hosts.yml --limit NEW_HOST_NAME
 # openstack-ansible setup-openstack.yml --skip-tags nova-key-distribute --limit NEW_HOST_NAME
 # openstack-ansible setup-openstack.yml --tags nova-key --limit compute_hosts
13
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack-Ansible Community
 Openstack-Ansible is evolving project.
 Partners: Rackspace, cisco, hp, Time-warner
 Enough scopes for feature enhancement
 Code Location : https://github.com/openstack-ansible/openstack-ansible
 IRC Channel: chat.freenode.net #Openstack-ansible
14
© 2015 IBM Corporation
Openstack Day India Event 2016
15

Mais conteúdo relacionado

Mais procurados

Red hat ansible automation technical deck
Red hat ansible automation technical deckRed hat ansible automation technical deck
Red hat ansible automation technical deck
Juraj Hantak
 

Mais procurados (20)

NFV evolution towards 5G
NFV evolution towards 5GNFV evolution towards 5G
NFV evolution towards 5G
 
DPDK In Depth
DPDK In DepthDPDK In Depth
DPDK In Depth
 
Infrastructure automation using awx ansible tower
Infrastructure automation using awx ansible towerInfrastructure automation using awx ansible tower
Infrastructure automation using awx ansible tower
 
Brkarc 3454 - in-depth and personal with the cisco nexus 2000 fabric extender...
Brkarc 3454 - in-depth and personal with the cisco nexus 2000 fabric extender...Brkarc 3454 - in-depth and personal with the cisco nexus 2000 fabric extender...
Brkarc 3454 - in-depth and personal with the cisco nexus 2000 fabric extender...
 
Hardware accelerated Virtualization in the ARM Cortex™ Processors
Hardware accelerated Virtualization in the ARM Cortex™ ProcessorsHardware accelerated Virtualization in the ARM Cortex™ Processors
Hardware accelerated Virtualization in the ARM Cortex™ Processors
 
EMEA Airheads_ Aruba AppRF – AOS 6.x & 8.x
EMEA Airheads_ Aruba AppRF – AOS 6.x & 8.xEMEA Airheads_ Aruba AppRF – AOS 6.x & 8.x
EMEA Airheads_ Aruba AppRF – AOS 6.x & 8.x
 
Tutorial: Using GoBGP as an IXP connecting router
Tutorial: Using GoBGP as an IXP connecting routerTutorial: Using GoBGP as an IXP connecting router
Tutorial: Using GoBGP as an IXP connecting router
 
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
 
ONAP - Open Network Automation Platform
ONAP - Open Network Automation PlatformONAP - Open Network Automation Platform
ONAP - Open Network Automation Platform
 
Cisco IOS XRv Router Installation and Configuration Guide
Cisco IOS XRv Router Installation and Configuration GuideCisco IOS XRv Router Installation and Configuration Guide
Cisco IOS XRv Router Installation and Configuration Guide
 
Red hat ansible automation technical deck
Red hat ansible automation technical deckRed hat ansible automation technical deck
Red hat ansible automation technical deck
 
Software Defined Datacenter with Proxmox
Software Defined Datacenter with ProxmoxSoftware Defined Datacenter with Proxmox
Software Defined Datacenter with Proxmox
 
Understanding Cisco’ Next Generation SD-WAN Technology
Understanding Cisco’ Next Generation SD-WAN TechnologyUnderstanding Cisco’ Next Generation SD-WAN Technology
Understanding Cisco’ Next Generation SD-WAN Technology
 
OpenStack Trove 技術解説
OpenStack Trove 技術解説OpenStack Trove 技術解説
OpenStack Trove 技術解説
 
The Linux Kernel Scheduler (For Beginners) - SFO17-421
The Linux Kernel Scheduler (For Beginners) - SFO17-421The Linux Kernel Scheduler (For Beginners) - SFO17-421
The Linux Kernel Scheduler (For Beginners) - SFO17-421
 
Cisco ASA Firewalls
Cisco ASA FirewallsCisco ASA Firewalls
Cisco ASA Firewalls
 
66 pfsense tutorial
66 pfsense tutorial66 pfsense tutorial
66 pfsense tutorial
 
삼성전자 5G Core CNF를 위한 클라우드 여정 이야기 - 최우형 AWS 솔루션즈 아키텍트 / 구동영 프로, 삼성전자 :: AWS Su...
삼성전자 5G Core CNF를 위한 클라우드 여정 이야기 - 최우형 AWS 솔루션즈 아키텍트 / 구동영 프로, 삼성전자 :: AWS Su...삼성전자 5G Core CNF를 위한 클라우드 여정 이야기 - 최우형 AWS 솔루션즈 아키텍트 / 구동영 프로, 삼성전자 :: AWS Su...
삼성전자 5G Core CNF를 위한 클라우드 여정 이야기 - 최우형 AWS 솔루션즈 아키텍트 / 구동영 프로, 삼성전자 :: AWS Su...
 
Cisco asa firewall command line technical guide
Cisco asa firewall command line technical guideCisco asa firewall command line technical guide
Cisco asa firewall command line technical guide
 
DockerからKubernetesへのシフト
DockerからKubernetesへのシフトDockerからKubernetesへのシフト
DockerからKubernetesへのシフト
 

Semelhante a Deploying openstack using ansible

Optimizing Cloud Foundry and OpenStack for large scale deployments
Optimizing Cloud Foundry and OpenStack for large scale deploymentsOptimizing Cloud Foundry and OpenStack for large scale deployments
Optimizing Cloud Foundry and OpenStack for large scale deployments
Animesh Singh
 
Building a PaaS Platform like Bluemix on OpenStack
Building a PaaS Platform like Bluemix on OpenStackBuilding a PaaS Platform like Bluemix on OpenStack
Building a PaaS Platform like Bluemix on OpenStack
Animesh Singh
 

Semelhante a Deploying openstack using ansible (20)

Optimizing Cloud Foundry and OpenStack for large scale deployments
Optimizing Cloud Foundry and OpenStack for large scale deploymentsOptimizing Cloud Foundry and OpenStack for large scale deployments
Optimizing Cloud Foundry and OpenStack for large scale deployments
 
Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments Using the IBM XIV Storage System in OpenStack Cloud Environments
Using the IBM XIV Storage System in OpenStack Cloud Environments
 
CISCO - Presentation at Hortonworks Booth - Strata 2014
CISCO - Presentation at Hortonworks Booth - Strata 2014CISCO - Presentation at Hortonworks Booth - Strata 2014
CISCO - Presentation at Hortonworks Booth - Strata 2014
 
How we built Packet's bare metal cloud platform
How we built Packet's bare metal cloud platformHow we built Packet's bare metal cloud platform
How we built Packet's bare metal cloud platform
 
The Enhanced Cisco Container Platform
The Enhanced Cisco Container PlatformThe Enhanced Cisco Container Platform
The Enhanced Cisco Container Platform
 
Automation of your OpenStack Infrastructure with Stacki
Automation of your OpenStack Infrastructure with StackiAutomation of your OpenStack Infrastructure with Stacki
Automation of your OpenStack Infrastructure with Stacki
 
How (and why!) we built Packet
How (and why!) we built Packet  How (and why!) we built Packet
How (and why!) we built Packet
 
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)
Visão Técnica - RHOS (Red Hat Enterprise Linux OpenStack)
 
tack Deployment in the Enterprise
tack Deployment in the Enterprisetack Deployment in the Enterprise
tack Deployment in the Enterprise
 
Cloud Storage - Technical Whitepaper - SolidFire
Cloud  Storage - Technical Whitepaper - SolidFireCloud  Storage - Technical Whitepaper - SolidFire
Cloud Storage - Technical Whitepaper - SolidFire
 
Building a PaaS Platform like Bluemix on OpenStack
Building a PaaS Platform like Bluemix on OpenStackBuilding a PaaS Platform like Bluemix on OpenStack
Building a PaaS Platform like Bluemix on OpenStack
 
OpenStack - An Overview
OpenStack - An OverviewOpenStack - An Overview
OpenStack - An Overview
 
Beyond x86: Managing Multi-platform Environments with OpenStack
Beyond x86: Managing Multi-platform Environments with OpenStackBeyond x86: Managing Multi-platform Environments with OpenStack
Beyond x86: Managing Multi-platform Environments with 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
 
IBM Cloud Manager with OpenStack Overview
IBM Cloud Manager with OpenStack OverviewIBM Cloud Manager with OpenStack Overview
IBM Cloud Manager with OpenStack Overview
 
Using OpenStack to Accelerate New Product Development: Rik Harris, Telstra
Using OpenStack to Accelerate New Product Development: Rik Harris, TelstraUsing OpenStack to Accelerate New Product Development: Rik Harris, Telstra
Using OpenStack to Accelerate New Product Development: Rik Harris, Telstra
 
Oracle week Israel - OpenStack Platform - 2013
Oracle week Israel - OpenStack Platform - 2013Oracle week Israel - OpenStack Platform - 2013
Oracle week Israel - OpenStack Platform - 2013
 
Openstack - Enterprise cloud management platform
Openstack - Enterprise cloud management platformOpenstack - Enterprise cloud management platform
Openstack - Enterprise cloud management platform
 
Sharad openstack slides
Sharad openstack slidesSharad openstack slides
Sharad openstack slides
 
Openstack 101
Openstack 101Openstack 101
Openstack 101
 

Mais de openstackindia

Role of sdn controllers in open stack
Role of sdn controllers in open stackRole of sdn controllers in open stack
Role of sdn controllers in open stack
openstackindia
 
Outreachy with-openstack-zaqar
Outreachy with-openstack-zaqarOutreachy with-openstack-zaqar
Outreachy with-openstack-zaqar
openstackindia
 
Enhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world applicationEnhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world application
openstackindia
 
Openstack devops challenges
Openstack devops challenges Openstack devops challenges
Openstack devops challenges
openstackindia
 
Demistifying open stack storage
Demistifying open stack storageDemistifying open stack storage
Demistifying open stack storage
openstackindia
 
Why open stack database as a service offerings are doomed
Why open stack database as a service offerings are doomedWhy open stack database as a service offerings are doomed
Why open stack database as a service offerings are doomed
openstackindia
 

Mais de openstackindia (20)

Guts & OpenStack migration
Guts & OpenStack migrationGuts & OpenStack migration
Guts & OpenStack migration
 
Copr HD OpenStack Day India
Copr HD OpenStack Day IndiaCopr HD OpenStack Day India
Copr HD OpenStack Day India
 
OPNFV & OpenStack
OPNFV & OpenStackOPNFV & OpenStack
OPNFV & OpenStack
 
Your first patch to OpenStack
Your first patch to OpenStackYour first patch to OpenStack
Your first patch to OpenStack
 
OpenStack Neutron Behind The Senes
OpenStack Neutron Behind The SenesOpenStack Neutron Behind The Senes
OpenStack Neutron Behind The Senes
 
OpenStack Storage Buddy Ceph
OpenStack Storage Buddy CephOpenStack Storage Buddy Ceph
OpenStack Storage Buddy Ceph
 
OpenStack Watcher
OpenStack WatcherOpenStack Watcher
OpenStack Watcher
 
State of Containers in OpenStack
State of Containers in OpenStackState of Containers in OpenStack
State of Containers in OpenStack
 
The OpenStack Contribution Workflow
The OpenStack Contribution WorkflowThe OpenStack Contribution Workflow
The OpenStack Contribution Workflow
 
Introduction to Cinder
Introduction to CinderIntroduction to Cinder
Introduction to Cinder
 
OpenStack NFV Edge computing for IOT microservices
OpenStack NFV Edge computing for IOT microservicesOpenStack NFV Edge computing for IOT microservices
OpenStack NFV Edge computing for IOT microservices
 
OpenStack Tempest and REST API testing
OpenStack Tempest and REST API testingOpenStack Tempest and REST API testing
OpenStack Tempest and REST API testing
 
Ceph openstack-jun-2015-meetup
Ceph openstack-jun-2015-meetupCeph openstack-jun-2015-meetup
Ceph openstack-jun-2015-meetup
 
Role of sdn controllers in open stack
Role of sdn controllers in open stackRole of sdn controllers in open stack
Role of sdn controllers in open stack
 
Outreachy with-openstack-zaqar
Outreachy with-openstack-zaqarOutreachy with-openstack-zaqar
Outreachy with-openstack-zaqar
 
Enhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world applicationEnhancing OpenStack FWaaS for real world application
Enhancing OpenStack FWaaS for real world application
 
Openstack devops challenges
Openstack devops challenges Openstack devops challenges
Openstack devops challenges
 
Demistifying open stack storage
Demistifying open stack storageDemistifying open stack storage
Demistifying open stack storage
 
OpenStack Heat
OpenStack HeatOpenStack Heat
OpenStack Heat
 
Why open stack database as a service offerings are doomed
Why open stack database as a service offerings are doomedWhy open stack database as a service offerings are doomed
Why open stack database as a service offerings are doomed
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
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
 
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...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Deploying openstack using ansible

  • 1. © 2016 IBM Corporation Deploying OpenStack using Ansible Openstack Day India Event 2016 Chhavi Agarwal IBM
  • 2. © 2016 IBM Corporation Openstack Day India Event 2016 Agenda  What is Openstack-Ansible ?  Why we need it ?  OSAD Architecture  OSAD Configuration  How to use it ? 2
  • 3. © 2016 IBM Corporation Openstack Day India Event 2016 Why we need Openstack Ansible  Openstack is hard to install and configure.  Out of band configuration issues  Legacy architecture does not scale well. 3
  • 4. © 2016 IBM Corporation Openstack Day India Event 2016 Openstack Ansible “Deploying OpenStack from source in a way that makes it scalable while also being simple to operate, upgrade, and grow.” 4
  • 5. © 2016 IBM Corporation Openstack Day India Event 2016 Openstack Ansible  Openstack-Ansible is a Rackspace Initiatives.  Provides a production ready deployment.  It uses the power of Ansible.  Services are pulled and deployed from the Git Source repositories.  It uses LXC containers to deploy Openstack services.  Easy to deploy and scale private clouds from single to even thousand nodes. 5
  • 6. © 2016 IBM Corporation Openstack Day India Event 2016 Why Ansible  Ansible provides an automated IT framework for cloud provisioning, configuration and application deployment.  It uses a very simple YAML language for playbooks and roles.  Ansible manages system using SSH, so no remote agents or daemons needed  Allows parallel task execution.  Ansible contains a rich set of > 200 built-in modules  Playbooks are simple and can be easily fine-tuned as per requirement. 6
  • 7. © 2016 IBM Corporation Openstack Day India Event 2016 Why LXC Containers  Openstack runs services in LXC containers ~ Bare-metal.  Provides OS level virtualization include CPU, memory and block I/O.  Compatible with many network architectures.  Supports LVM Backend  Stable and provides Scalability. 7
  • 8. © 2016 IBM Corporation Openstack Day India Event 2016 Openstack Ansible Host Layout 8 Redundant 10Gb Network Switches Infrastructure Control Plane Nova Heat Glance keystone Neutron cinder Horizon Galera Memcached RabbitMQ Compute Plane (n) Storage Plane (n) Cinder- volume iSCSI targets Ceph nodes Bond0 Bond0 Bond1 Bond1 Bond1 Infrastructure Logging Host Rsyslog Logstash ELK Bond0 Bond1 External Networks Load Balancers Bond0 Bond1 Openstack services Infrastructure services Deploy ment Host Ansible Bond 0 Management Network Bond 1 VM Network
  • 9. © 2016 IBM Corporation Openstack Day India Event 2016 Openstack-Ansible Requirement 9  16GB RAM, 100GB Disk  Ubuntu 14.04 LTS  Secure Shell (SSH) client and server that supports public key authentication  Network Time Protocol (NTP) client for time synchronization.  Python 2.7 or later.
  • 10. © 2016 IBM Corporation Openstack Day India Event 2016 Openstack-Ansible configuration  /etc/Openstack-user-config.yml 10
  • 11. © 2016 IBM Corporation Openstack Day India Event 2016 Openstack-Ansible Configuration  Located in /etc/openstack_deploy – Openstack-user-config.yml – user_variables.yml – user_secrets.yml  conf.d  Define additional services like swift, ceph, haproxy  /etc/openstack_deploy/env.d/*  Used to defined additional group mapping. 11
  • 12. © 2016 IBM Corporation Openstack Day India Event 2016 OSA All-In-One Installation  Install on a fresh Ubuntu 14.04 host – # git clone https://github.com/openstack/openstack-ansible /opt/openstack-ansible – # cd /opt/openstack-ansible – # scripts/bootstrap-ansible.sh // Installs Ansible, roles and modules – # scripts/bootstrap-aio.sh // Sets up host and config files – # vi /etc/openstack_deploy/... // Optional: If u want to make any changes – # scripts/run-playbooks.sh // Install Openstack Services 12
  • 13. © 2016 IBM Corporation Openstack Day India Event 2016 Adding a Compute Node  Edit the /etc/openstack_deploy/openstack_user_config.yml file and add the host to the compute_hosts stanza.  # cd /opt/openstack-ansible/playbooks  # openstack-ansible setup-hosts.yml --limit NEW_HOST_NAME  # openstack-ansible setup-openstack.yml --skip-tags nova-key-distribute --limit NEW_HOST_NAME  # openstack-ansible setup-openstack.yml --tags nova-key --limit compute_hosts 13
  • 14. © 2016 IBM Corporation Openstack Day India Event 2016 Openstack-Ansible Community  Openstack-Ansible is evolving project.  Partners: Rackspace, cisco, hp, Time-warner  Enough scopes for feature enhancement  Code Location : https://github.com/openstack-ansible/openstack-ansible  IRC Channel: chat.freenode.net #Openstack-ansible 14
  • 15. © 2015 IBM Corporation Openstack Day India Event 2016 15