Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
© 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 Archi...
© 2016 IBM Corporation
Openstack Day India Event 2016
Why we need Openstack Ansible
 Openstack is hard to install and con...
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack Ansible
“Deploying OpenStack from source in a way that mak...
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack Ansible
 Openstack-Ansible is a Rackspace Initiatives.
 ...
© 2016 IBM Corporation
Openstack Day India Event 2016
Why Ansible
 Ansible provides an automated IT framework for cloud p...
© 2016 IBM Corporation
Openstack Day India Event 2016
Why LXC Containers
 Openstack runs services in LXC containers ~ Bar...
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack Ansible Host Layout
8
Redundant 10Gb Network Switches
Infr...
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack-Ansible Requirement
9
 16GB RAM, 100GB Disk
 Ubuntu 14.0...
© 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
–...
© 2016 IBM Corporation
Openstack Day India Event 2016
OSA All-In-One Installation
 Install on a fresh Ubuntu 14.04 host
–...
© 2016 IBM Corporation
Openstack Day India Event 2016
Adding a Compute Node
 Edit the /etc/openstack_deploy/openstack_use...
© 2016 IBM Corporation
Openstack Day India Event 2016
Openstack-Ansible Community
 Openstack-Ansible is evolving project....
© 2015 IBM Corporation
Openstack Day India Event 2016
15
Upcoming SlideShare
Loading in …5
×

Deploying openstack using ansible

1,198 views

Published on

by Chhavi Agarwal, IBM

Published in: Technology
  • Be the first to comment

Deploying openstack using ansible

  1. 1. © 2016 IBM Corporation Deploying OpenStack using Ansible Openstack Day India Event 2016 Chhavi Agarwal IBM
  2. 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. 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. 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. 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. 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. 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. 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. 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. 10. © 2016 IBM Corporation Openstack Day India Event 2016 Openstack-Ansible configuration  /etc/Openstack-user-config.yml 10
  11. 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. 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. 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. 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. 15. © 2015 IBM Corporation Openstack Day India Event 2016 15

×