Slide 1

Slide 1 text

Deploying and Operating Your OpenStack Cloud with OSA – Hands-On Lab Tokyo Summit

Slide 2

Slide 2 text

2 Walter Bentley Cloud Solutions Architect, RPC Twitter: @djstayflypro LinkedIn: http://goo.gl/r2p21i GitHub: wbentley15 Blog: hitchnyc.com •  Over 17 years of IT experience •  New Yorker (soon to be a Texan) •  Cloud Advocate (hybrid is my favorite) •  Knowledge sharer •  OpenStack believer •  DJ (literally…no lie) •  Always about living life now!

Slide 3

Slide 3 text

3 Ground Rules •  Not going to ask you to turn off mobile phones but, if it rings its mine :D •  Ask questions (requirement) •  Take any side conversations outside (mainly because I like hearing myself talk only) •  This workshop is hands on, please group yourself into groups no larger than 2-3. Please take turns doing stuff! •  Materials for the workshop are available here (case matters): https://goo.gl/yzzA0O

Slide 4

Slide 4 text

4 Before we get started… •  Each group will be given a StudentID and instructions to connect to the deployment and OpenStack servers •  OpenStack will be deployed as an All-In-One •  We will be working with the command line using basic Linux commands and Ansible •  The Ansible playbook roles will utilize the OpenStackClient (OSC)

Slide 5

Slide 5 text

5 DEPLOYING OSA ( f o r m e r l y k n o w n a s O S A D )

Slide 6

Slide 6 text

6 Lab Overview – Part 1 •  Prep the Ansible playbooks to install OSA on your OpenStack server •  Prep the OpenStack server for the OSA install •  Kick off the OSA install •  While the install runs go into a deep dive on OSA (aka OSA 101)

Slide 7

Slide 7 text

7 Lab – Part 1 Please go to the URL below in your browser (case matters): https://goo.gl/4vSdqA Next connect to the Lab environment,
 connection details are on the handout"

Slide 8

Slide 8 text

8 GO!!! P a r t 1 o f t h e L a b w i l l t a k e 3 0 - 4 0 m i n u t e s

Slide 9

Slide 9 text

9 DEEP DIVE INTO OSA Features and Benefits OSA 101

Slide 10

Slide 10 text

10 OSA 101 OpenStack Community Adoption •  In November 2014 the community voted to accept the OSAD playbooks as a Stackforge repository, making them the basis of Ansible support for OpenStack going forward •  At the past Summit in Vancouver, the community committed to continue to improve the OpenStack install process with OSAD •  Around fall of this year the OSAD repository was officially moved under the main OpenStack repository and renamed OSA https://github.com/openstack/openstack-ansible

Slide 11

Slide 11 text

11 OSA 101 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

Slide 12

Slide 12 text

12 OSA 101 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)

Slide 13

Slide 13 text

13 OSA 101 Under the Covers (cont.) To deploy OSA, it was broken down into the following main playbooks: •  setup-hosts.yml •  haproxy-install.yml •  setup-infrastructure.yml •  setup-openstack.yml OR •  setup-everything.yml https://github.com/openstack/openstack-ansible/tree/11.2.3/playbooks https://github.com/openstack/openstack-ansible/tree/11.2.3/playbooks

Slide 14

Slide 14 text

14 OSA 101 Under the Covers (cont.) All the playbooks are dependent on the following configuration files: •  openstack_environment.yml •  openstack_user_config.yml •  user_secrets.yml •  user_variables.yml https://github.com/openstack/openstack-ansible/tree/11.2.3/etc/openstack_deploy https://github.com/openstack/openstack-ansible/tree/11.2.3/etc/openstack_deploy

Slide 15

Slide 15 text

15 OPERATING OSA ( f o r m e r l y k n o w n a s O S A D )

Slide 16

Slide 16 text

16 DEEP DIVE INTO OPERATING OPENSTACK WITH ANSIBLE OPERATING OSA 101

Slide 17

Slide 17 text

17 OPERATING OSA 101 Why Ansible with OpenStack? •  Only SSH and Python required on the target device, no clients/agents; can manage an environment of any size or type •  Existing Ansible modules for overall Linux management and OpenStack; working with OpenStack is like working with a complicated Linux kernel •  Playbooks can be written against API’s or Python CLI’s (OSC) •  Designing roles with unique variable values is as easy as writing a email

Slide 18

Slide 18 text

18 cloud operator cloud consumer api cli

Slide 19

Slide 19 text

19 Lab Overview – Part 2 •  Run thru a few Cloud Operator scenarios •  Execute playbooks that will demonstrate how you can automate those tasks using Ansible •  Conclude the lab by reviewing some OSA tips and tricks

Slide 20

Slide 20 text

20 L e t ’ s t a l k a b o u t a f e w p o s s i b l e s c e n a r i o s

Slide 21

Slide 21 text

21 OpenStack Scenario #1 Administration Scenario: •  Marketing department just purchased a un-branded responsive website template for a special campaign (without telling internal IT…ssssh) •  They also hired 10 website developer contractors to add branding and additional functionality •  Each developer needs their own testing computing resources and of course they need it by tomorrow! 10 tenants/projects and 10 users with proper roles

Slide 22

Slide 22 text

22 OpenStack Scenario #2 Administration Scenario: •  So those contractors the Marketing department hired has basically turned your cloud into a community public cloud •  Resource usage keeps spiking thru the roof and you decided to restrict each developer’s tenant further by applying stricter quotas 3 developer’s need 30vCPU and 30 instances and the rest only need 20vCPU and 20 instances

Slide 23

Slide 23 text

23 OpenStack Scenario #3 Administration Scenario: •  Some time has passed and the Marketing department decided to fire all those contractors (go figure :D) •  But before destroying their environments, they asked that you make a backup of all the instances in one of the tenants Snapshot all instances from one tenant/project and destroy all users/tenants

Slide 24

Slide 24 text

24 Lab – Part 2 Please go to the URL below in your browser (case matters): https://goo.gl/IJEi1b

Slide 25

Slide 25 text

25 GO!!! P a r t 2 o f t h e L a b w i l l t a k e ~ 2 0 m i n u t e s

Slide 26

Slide 26 text

26 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’

Slide 27

Slide 27 text

27 Reference Materials OSA Installation Guide: http://docs.openstack.org/developer/openstack-ansible/install-guide/index.html Rackspace Private Cloud Installation Instructions using OSA: http://www.rackspace.com/knowledge_center/article/rackspace-private-cloud-documentation Quick-Start AIO Install: http://docs.openstack.org/developer/openstack-ansible/developer-docs/quickstart-aio.html OSA news & updates: http://docs.openstack.org/developer/openstack-ansible

Slide 28

Slide 28 text

O N E FA N AT I C A L P L AC E | S A N A N TO N I O , T X 7 8 21 8 U S S A L E S : 1 - 8 0 0 - 9 61 - 2 8 8 8 | U S S U P P O R T: 1 - 8 0 0 - 9 61 - 4 4 5 4 | W W W. R AC K S PAC E . C O M © RACKSPACE LTD. | RACKSPACE® AND FANATICAL SUPPORT® ARE SERVICE MARKS OF RACKSPACE US, INC. REGISTERED IN THE UNITED STATES AND OTHER COUNTRIES. | WWW.RACKSPACE.COM Thank you Twitter: @djstayflypro Email: [email protected]