OpenStack: Build a cloud!

OpenStack: Build a cloud!

WebCampZg 2012 – video of the presentation available on https://www.youtube.com/watch?v=5e_dydztXSU

7874898d532b989d3a1108cade372cd2?s=128

Dražen Lučanin

November 24, 2012
Tweet

Transcript

  1. Build a cloud! Dražen Lučanin

  2. About me •  Graduated comp. sci. @ Uni Zagreb • 

    Python + open source = <3 •  Assistant, TU Vienna en. efficiency in cloud domputing = hacking OpenStack
  3. OpenStack •  Cloud manager •  Open source •  Support Cloud

    == “give me a computer!” •  Server cluster •  Virtualization •  “It just works”
  4. Architecture •  Virtualization – Nova (EC2) •  Storage – Swift

    (S3) •  Elastic networks– Quantum (!) That’s like Amazon!
  5. Why?

  6. Interfaces •  REST API –  EC2 –  OpenStack (subset) • 

    Web interface – Horizon •  Terminal •  Programming languages –  Python –  Java –  Ruby
  7. Scenario 1: Fast configuration $ nova boot --image ubuntu worker

    $ ssh john@worker $ nova image-create worker worker_image $ nova boot –-image worker_image -n 15
  8. Scenario 2: Integration testing $ cat integration_test.sh #!/bin/bash nova boot

    server nova boot client ssh john@client ./start_test.sh
  9. Scenario 3: Reliability testing $ ssh pero@server ./start_spinning.sh $ nova

    pause <that other server with the DB>
  10. Scenario 4: Scaling •  Juju – Describe relations – Add instances $

    juju add-unit --num-units 5 haproxy
  11. None
  12. Installation •  Easy to try •  Aloooot of components • 

    Production a bit harder… $ git clone https://github.com/ openstack-dev/devstack.git $ cd devstack && ./stack.sh Linux Apache KVM libvirt MySQL RabitMQ apache memcache open-iscsi brctl iptables lvm…
  13. Automatic vs. manual Dodai-deploy* •  Fast •  Easy to scale

    •  Initial configuration –  Multinode doesn’t work •  Reinstalling components unstable •  In development! *alt: Puppet, Chef, Juju+MaaS sudo apt-get install •  Slow, easy to err –  Helper scripts! •  Scaling so-so •  Easier to fix errors •  Advice: –  Terminal > web GUI
  14. To conclude… •  Cloud –  Better resource usage –  Infinite

    possibilites •  OpenStack –  A very active open source implementation –  Interesting for freelancers…
  15. OpenStack Summit: who’s hiring?

  16. Thanks! @kermit666