Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deploy OpenStack with Ansible (OSAD)

Deploy OpenStack with Ansible (OSAD)

Deploying OpenStack using Ansible (OpenStack Ansible Deployment)

Walter Bentley

June 01, 2015
Tweet

More Decks by Walter Bentley

Other Decks in Technology

Transcript

  1. Deploying OpenStack with OSAD (OS Ansible Deployment) Walter Bentley, RPC

    Solutions Architect Twitter: @djstayflypro LinkedIn: http://goo.gl/r2p21i Github: wbentley15 Blog: hitchnyc.com
  2. 2 I started my 17-year IT career as an MS

    .ASP developer and transitioned into supporting web-based applications. The bulk of my time was spent providing production support as an on-call engineer. Who Am I?
  3. 4 www.rackspace.com OpenStack® Services KEYSTONE IDENTITY GLANCE IMAGE MANAGEMENT NOVA

    COMPUTE LAYER SWIFT OBJECT STORE CINDER BLOCK STORAGE NEUTRON NETWORKING HORIZON DASHBOARD/UI HEAT ORCHESTRATION CEILOMETER TELEMETRY TROVE DBaaS SAHARA DATA PROCESSING
  4. 5 www.rackspace.com OPENSTACK COMMUNITY: BROAD SUPPORT AND CONTRIBUTION ECOSYSTEM SIZE

    
 (Members + Sponsors + Supporters) CUMULATIVE 
 CONTRIBUTORS AVERAGE MONTHLY 
 CONTRIBUTORS CODE CONTRIBUTIONS 2,424 >400 110,019 483
 Contributing Companies 21,230 INDIVIDUAL MEMBERS Rackspace, Red Hat, HP, IBM, Mirantis Top 5 Contributors FOUNDATION STARTED IN SEPTEMBER 2012 20M+ LINES OF CODE
  5. 6 www.rackspace.com What is Ansible? •  IT automation tool that

    can be used to: •  Configure systems •  Deploy software •  Orchestration •  eventually replace most infrastructure folks…just kidding…maybe? •  Ansible’s goal first and foremost is simplicity and maximum ease of use •  Manages systems using Secure Shell (SSH) •  No remote daemon or agent required!!! •  Code is organized into something called, playbooks, of which is written in the YAML language http://docs.ansible.com/intro.html
  6. 9 OpenStack Ansible Deployment (OSAD) Hybrid Stable & Scalable Flexible

    OSAD was created to meet the following 3 principles:"
  7. 11 www.rackspace.com OSAD Features and Benefits •  Ansible! •  Linux

    Containers (LXC)! •  Linux Bridge agent! •  Full Neutron deployment! •  Includes all PROD ready OpenStack services! •  Can be used to deploy an AIO or fully distributed multi-node HA layout!
  8. 12 www.rackspace.com OpenStack Community Adoption In the end of November,

    the community voted to accept our playbooks as a Stackforge repository, making them the basis of Ansible support for OpenStack going forward! •  https://review.openstack.org/#/c/132703 •  Community Page: https://review.openstack.org/#/admin/projects/stackforge/os-ansible-deployment •  Issues: https://bugs.launchpad.net/~openstack-ansible •  IRC on Freenode: #openstack-ansible Code Location: https://github.com/stackforge/os-ansible-deployment This means a lot to Rackspace and opens up the door for community contribution!
  9. 14 www.rackspace.com OSAD Under the Covers High-level prerequisites:! •  Ubuntu

    14.04 (Trusty)! •  SSH Client! •  NTP Client! •  Python 2.7 or later! •  Use of Linux networking features: Bridges and Namespaces! •  Container management: br-mgmt (Mandatory) " •  OpenStack Networking tunnel/overlay: br-vxlan (Mandatory)! •  OpenStack Networking provider: br-vlan (Mandatory)! •  Storage: br-storage (Optional)!
  10. 15 www.rackspace.com OSAD Under the Covers (cont.) To deploy the

    OpenStack Private Cloud, it was broken down into three main playbooks:! •  ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/setup/host-setup.yml! •  ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/infrastructure/haproxy-install.yml (optional)! •  ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/infrastructure/infrastructure- setup.yml! •  ansible-playbook -e @/etc/rpc_deploy/user_variables.yml playbooks/openstack/openstack-setup.yml
 ! All playbooks are dependent on two configuration files:! •  rpc_user_config.yml" •  user_variables.yml"
  11. 16 www.rackspace.com Why not create some roles and playbooks to

    automate all those pre-configurations!
  12. 17 www.rackspace.com Tips and Tricks •  Deploy using ‘Tags’ version

    on GitHub repo! •  Check GitHub repo for new versions and variables being introduced! •  Triple check your network setup! •  Re-deployment steps (aka the clean-up process)! •  Galera health check playbook! •  Running playbooks with ‘-l’"
  13. 18 www.rackspace.com Reference Materials Rackspace Private Cloud Installation Guide:
 http://docs.rackspace.com/rpc/api/v10/bk-rpc-installation/content/ch-overview.html!

    ! Blog for Deploying RPC with Ansible:
 https://developer.rackspace.com/blog/deploying-rackspace-private-cloud-v9-with-ansible"