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

OpenStack: Build a cloud!

OpenStack: Build a cloud!

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

Dražen Lučanin

November 24, 2012
Tweet

More Decks by Dražen Lučanin

Other Decks in Programming

Transcript

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

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

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

    (S3) •  Elastic networks– Quantum (!) That’s like Amazon!
  4. Interfaces •  REST API –  EC2 –  OpenStack (subset) • 

    Web interface – Horizon •  Terminal •  Programming languages –  Python –  Java –  Ruby
  5. 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
  6. Scenario 2: Integration testing $ cat integration_test.sh #!/bin/bash nova boot

    server nova boot client ssh john@client ./start_test.sh
  7. 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…
  8. 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
  9. To conclude… •  Cloud –  Better resource usage –  Infinite

    possibilites •  OpenStack –  A very active open source implementation –  Interesting for freelancers…