LinuxCon NA 2013; TripleO: OpenStack on OpenStack

Like this? Share it with your network

Share

LinuxCon NA 2013; TripleO: OpenStack on OpenStack

  • 1,520 views
Uploaded on

Monty Taylor TripleO: OpenStack on OpenStack talk at LinuxCon NA 2013 in New Orleans, LA.

Monty Taylor TripleO: OpenStack on OpenStack talk at LinuxCon NA 2013 in New Orleans, LA.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,520
On Slideshare
1,512
From Embeds
8
Number of Embeds
1

Actions

Shares
Downloads
64
Comments
0
Likes
1

Embeds 8

https://twitter.com 8

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • My name is Monty Taylor. This is me at Burning Man last year. I'm fairly certain that nothing about this picture qualifies me to talk here today. In fact, it's possible that this might disqualify me. I'll try to talk fast...
  • OpenStack is a API abstraction layer around compute, storage and networking needs. That's great – but why do we care? You need compute, storage and networking to be able to run applications. The more complex your app needs, the more you need to express their needs in a programmatic manner. OpenStack lets you do that.
  • Running OpenStack, however, looks something like this. Running a complex system like this is hard – installing it is just the first step – you've also got to maintain it and upgrade it over time. And there's some things that tend to go wrong. it turns out that OpenStack itself is a really complicated multi machine application that has a variety of complex needs in the areas of compute, networking and storage. Oh wait. Don't we have a system that helps us deal with things like that?

Transcript

  • 1. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. TripleO: OpenStackonOpenStack Monty Taylor Twitter: @e_monty Email: mordred@inaugust.com
  • 2. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.2 Monty Taylor ● Managerof DeveloperAutomation forHPConverged Cloud ● OpenStackCI/Infrastructure Core ● OpenStackFoundation Board ● OpenStackTechnical Committee ● TripleO
  • 3. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.3
  • 4. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Velocity → Cloud Enables Increased Velocity → Cloud Drives Agility → Develop and Test and Deploy in Cloud
  • 5. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.5
  • 6. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.6 Install / Reconfigure / Upgrade Bugs Cruft / Entropy Hardware failure
  • 7. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. TripleO: OpenStack on OpenStack → Continuous Integration and Delivery → Drive installation and maintenance costs down → Encapsulate the installation and upgrade process → Common API and infrastructure for above and below cloud
  • 8. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.8 Install / Reconfigure / Upgrade Bugs Cruft / Entropy Hardware failure CI/CD Golden images HA setup
  • 9. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.9
  • 10. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.10 Provisioning Software Configuration State Orchestration Nova diskimage -builder os-apply -config os-refresh -config Heat MaaS Juju Crowbar Crowbar~~~ Chef ~~~ Stand-alone Chef, Puppet, etc Razor ~~~ Puppet ~~~ Manual Install
  • 11. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Components → Nova bare metal / Ironic™ → Heat → diskimage-builder (https://git.openstack.org/openstack/diskimage- builder.git) → os-apply-config (https://git.openstack.org/openstack/os-apply- config.git) → os-refresh-config (https://git.openstack.org/openstack/os-refresh-config.git) → os-collect-config (https://git.openstack.org/openstack/os-collect-config.git) → tripleo-image-elements (https://git.openstack.org/openstack/tripleo-image-elements.git) → tripleo-heat-templates (https://git.openstack.org/openstack/tripleo-heat-templates.git)
  • 12. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Deployment → Heat stack defines the cluster → Heat drives the Nova API to deliver images to machines → Virtual machines in developer test → Bare metal Nova for CI/CD and production deployment
  • 13. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.13 Nova bare metal /Ironic™ Your machine image nova-compute PXE IPMI Your machine image nova-compute PXE IPMI Your machine image nova-compute PXE IPMI
  • 14. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Heat → Focus on orchestration → Supports any CM system within a machine → Use Puppet or Chef or Salt if you like → Delivers configuration metadata to machines → Accepts exported metadata from machines → OpenStack templates https://git.openstack.org/openstack/tripleo- heat-templates.git
  • 15. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Golden Images → Encapsulate a known good set of software → Excludes configuration and persistent state → these are placed on a separate state partition → / is then mounted read-only → Equivalent of packages at a cluster level → Each image can be tested and then deployed as-is → Because the configuration is not part of the image → Small focused toolchain to build images → diskimage-builder → tripleo-image-elements
  • 16. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. os-*-config → os-collect-config grabs new metadata from heat os-refresh-config: → Quiesce fragile services → (If needed) Upgrade software from glance → (If needed) os-apply-config applies config files → (If needed) Reboot → Ensure required services are running and/or restarted → Perform any migrations (such as seeding initial data) → Notify heat that the deploy is complete on the machine
  • 17. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Performance → Installation code executes at Image Build time → FAST deployment 6 minutes from power off to working machine
  • 18. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.18 OpenStack (KVM) OpenStack (Bare metal) OpenStack (KVM) Underand Overcloud Nova cannot reliably run two different hypervisors in one cloud today So we run two+ clouds: → the undercloud, a bare metal cloud that runs on, and owns, all the hardware → the overcloud, a regular VM based cloud running as a tenant on the bare metal cloud → additional VM clouds can run as parallel tenants on the undercloud (e.g. for testing). OpenStack (KVM) OpenStack (Bare metal) OpenStack (KVM)
  • 19. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Undercloud → Fully HA Bare metal OpenStack → Self hosted: nodes in the control plane are tenants within it → Aiming for as few as 2 machines for the control plane → All additional nodes are available for the overcloud tenant
  • 20. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Overcloud → Fully HA KVM based OpenStack hosted by the undercloud → Orchestrated by Heat running in the undercloud → Can (optionally) use the same disk images for most services
  • 21. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Installation → Special case of normal deployment → Run a collapsed cluster: – a single image with Heat + Nova Bare metal in a VM → Bridge that to the new data center network → Enroll the machines → Tell Heat that we want an HA configuration → Wait while it scale the undercloud out → Switch off the VM image → Tell Heat to recover from the loss of the VM node (by scaling out again) → Deploy the overcloud as a tenant
  • 22. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Upgrade, the simple version → HA/scale out services know how to react to dead nodes → Rolling upgrade: – heat deletes one node – heat creates new node with new version – lather, rinse, repeat
  • 23. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Upgrade, the complex version → Some nodes have precious data → Cloudify the install: – Node and root FS are ephemeral – Root FS specialization through cloud metadata – Precious data goes in attached volumes → Make the Root Image metadata passed in via heat → Upgrade changes the image id of the instance → takeovernode: – Download image – Mount in temp dir – Overwrite old Root FS with new Root FS → Services need to be restarted or node needs reboot: – Remember os-refresh-config?
  • 24. © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Upgrade engineering → Local cinder volumes → nova-bm rebuild to support booting from newer kernels
  • 25. © Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Thankyou