53

"OpenStack — more than just software". Tom Fifield, OpenStack

  • Upload
    yandex

  • View
    3.226

  • Download
    1

Embed Size (px)

DESCRIPTION

OpenStack is much more than a Cloud Technology platform. It's also a thriving ecosystem of companies, and a fast-moving open source project. These three forces are accelerating one of the biggest changes to IT infrastructure we've seen. Dell, HP, IBM, Intel, Red Hat and two hundred others of the largest IT names in the world are already on board. Do you like saving money on IT infrastructure? Or coding cool large-scale systems? Or automating systems to make your job easier? Come and learn about this fantastic piece of software and its community. One last point that might interest you - there's strong demand internationally for OpenStack engineers.

Citation preview

Page 1: "OpenStack — more than just software". Tom Fifield, OpenStack
Page 2: "OpenStack — more than just software". Tom Fifield, OpenStack

2

A Quick Technical Overview Tom Fifield

[email protected] @Tom Fifield

Page 3: "OpenStack — more than just software". Tom Fifield, OpenStack

3

Special Thanks to:

Lorin Hochstein

Nimbis Services

[email protected]

@lhochstein

Page 4: "OpenStack — more than just software". Tom Fifield, OpenStack

4

A Motivating Example

Page 5: "OpenStack — more than just software". Tom Fifield, OpenStack

What is OpenStack?

Page 6: "OpenStack — more than just software". Tom Fifield, OpenStack

6

OpenStack provides access to compute, networking and storage

Page 7: "OpenStack — more than just software". Tom Fifield, OpenStack

7

Access compute resources

Start 5 servers, each with:• 2 CPUs• 4 GB of RAM• 20 GB of storage

User Suspend server "X"

Snapshot server "X"

Page 8: "OpenStack — more than just software". Tom Fifield, OpenStack

8

Access networking resources

Create private network withsubnet 10.2.12.0/24

User

Attach IP address 203.0.113.19 to server "X"

Allow access to ports 80 and 443 for the

"web" group

Page 9: "OpenStack — more than just software". Tom Fifield, OpenStack

9

Access block storage resources, which attach to servers like disks

Create a 100 GB data volume and attach it to

server "X"

User

Take a snapshot of volume "Q"

Page 10: "OpenStack — more than just software". Tom Fifield, OpenStack

10

Access object storage resources, which are accessed over HTTP

Store file family.png in container "photos"

UserMake file logo.png in

container "acme" visible to everyone

Page 11: "OpenStack — more than just software". Tom Fifield, OpenStack

11

OpenStack includes a web-based Dashboard service

Page 12: "OpenStack — more than just software". Tom Fifield, OpenStack

12

Make requests with command-line tools or REST API

$ nova boot --image precise --flavor m1.small myinstance

Client

HTTP POST/servers

{ "server": { "imageRef": ... "flavorRef": ... "name": "myinstance", }}

Page 13: "OpenStack — more than just software". Tom Fifield, OpenStack

13

Also... Python bindings! import novaclient.v1_1.client as nvclient creds = ... nova = nvclient.Client(**creds) image = nova.images.find(name="precise") flavor = nova.flavors.find(name="m1.small") nova.servers.create(image=image, flavor=flavor, name="myinstance")

Page 14: "OpenStack — more than just software". Tom Fifield, OpenStack

14

ECO

SYST

EM S

IZE

(Mem

bers

+ S

pons

ors

+ Su

ppor

ters

)

CUMULATIVE CONTRIBUTORS

AVERAGE MONTHLY CONTRIBUTORS

PATCHESMERGED

1017 230 7,260

(Grizzly Release Cycle – Six Months)

230Companies TOP 10 Countries

1) United States2) China3) India4) Great Britain5) Australia

12,154 6) France7) Russia8) Canada9) Ireland10) Germany

INDI

VIDU

AL

MEM

BERS

Project is very active with many contributors

Data from May 2013

Page 15: "OpenStack — more than just software". Tom Fifield, OpenStack

15

To Name Just a Few…

…and counting.

Page 16: "OpenStack — more than just software". Tom Fifield, OpenStack

What does the architecture look like?

Page 17: "OpenStack — more than just software". Tom Fifield, OpenStack

17

System is a collection of RESTful web services

Page 18: "OpenStack — more than just software". Tom Fifield, OpenStack

18

Compute service manages VMs on compute nodes

Page 19: "OpenStack — more than just software". Tom Fifield, OpenStack

19

Image provides a catalog of virtual machine images

Page 20: "OpenStack — more than just software". Tom Fifield, OpenStack

20

Identity handles authentication and service catalog

Page 21: "OpenStack — more than just software". Tom Fifield, OpenStack

21

Network service manages connectivity for VMs

Page 22: "OpenStack — more than just software". Tom Fifield, OpenStack

22

Block storage manages block devices that attach to VMs

Page 23: "OpenStack — more than just software". Tom Fifield, OpenStack

23

Object storage manages binary objects accessed via HTTP

Page 24: "OpenStack — more than just software". Tom Fifield, OpenStack

24

Dashboard service provides web interface

Page 25: "OpenStack — more than just software". Tom Fifield, OpenStack

Let’s look at an example.

Page 26: "OpenStack — more than just software". Tom Fifield, OpenStack

26

Alice is a web developer who needs an Ubuntu server to deploy her app for testing

Page 27: "OpenStack — more than just software". Tom Fifield, OpenStack

27

Start a server using the ‘ubuntu12.04’ image and attach it to network ‘mynet’

Page 28: "OpenStack — more than just software". Tom Fifield, OpenStack

28

1. Get the compute endpoint and an auth token

Page 29: "OpenStack — more than just software". Tom Fifield, OpenStack

29

2. Start a new compute server

Page 30: "OpenStack — more than just software". Tom Fifield, OpenStack

30

3. Download the ubuntu12.04 image

Page 31: "OpenStack — more than just software". Tom Fifield, OpenStack

31

4. Retrieve the image from the object store

Page 32: "OpenStack — more than just software". Tom Fifield, OpenStack

32

5. Determine how to connect the VM to ‘mynet’

Page 33: "OpenStack — more than just software". Tom Fifield, OpenStack

33

6. Start the virtual machine

Page 34: "OpenStack — more than just software". Tom Fifield, OpenStack

34

Alice sees that her server is now running and connects to it via ssh.

Page 35: "OpenStack — more than just software". Tom Fifield, OpenStack

… but how does that work?

Page 36: "OpenStack — more than just software". Tom Fifield, OpenStack

36

Each OpenStack service is implemented as Linux daemons

Example: Compute Service

Page 37: "OpenStack — more than just software". Tom Fifield, OpenStack

37

Daemons use non-blocking I/O with eventlet to handle multiple requests

OpenStackdaemon

Eventlet

Page 38: "OpenStack — more than just software". Tom Fifield, OpenStack

38

Daemons maintain persistent state using an SQL database via SQLAlchemy

OpenStackdaemon

SQLAlchemy

Page 39: "OpenStack — more than just software". Tom Fifield, OpenStack

39

Daemons communicate using remote procedure call over message queue

OpenStackdaemon

kombu

eventlet.green.zmq

qpidmessage

queue

Page 40: "OpenStack — more than just software". Tom Fifield, OpenStack

40

Let’s go back to the earlier example

Page 41: "OpenStack — more than just software". Tom Fifield, OpenStack

41

“Start a new compute server” request comes in to the nova-api daemon

Page 42: "OpenStack — more than just software". Tom Fifield, OpenStack

42

Ask nova-scheduler to find a compute node that can fulfill the request

Page 43: "OpenStack — more than just software". Tom Fifield, OpenStack

43

Dispatch the request to nova-compute on a node that has enough resources

Page 44: "OpenStack — more than just software". Tom Fifield, OpenStack

44

Download the image from the Image service

Page 45: "OpenStack — more than just software". Tom Fifield, OpenStack

45

Get network connection info from Networking service

Page 46: "OpenStack — more than just software". Tom Fifield, OpenStack

46

Ask the hypervisor to start the virtual machine

Page 47: "OpenStack — more than just software". Tom Fifield, OpenStack

So, what is OpenStack?

Page 48: "OpenStack — more than just software". Tom Fifield, OpenStack

48

Page 49: "OpenStack — more than just software". Tom Fifield, OpenStack

49

Customisation ‣  OpenStack doesn’t quite do what you need?

‣  Add it, but contribute back if possible ‣  Many things are pluggable

‣  Eg Object Storage Middleware Pipeline ‣  Eg Compute Scheduler ‣  Eg Dashboard

‣  Get a DevStack running and play!

Page 50: "OpenStack — more than just software". Tom Fifield, OpenStack

50

Interacting with the Community ‣  All development is open

‣  Etherpad → Blueprint → Coded → Reviewed → Released ‣  Collaboratively design features ‣  Competitors working together ‣  Every line of code reviewed by at least two people ‣  An extensive continuous integration and testing infrastructure

Documentation, Translation, Infrastructure is all Collaborative

Page 51: "OpenStack — more than just software". Tom Fifield, OpenStack

51

Interacting with the Community

l  Ask OpenStack! (http://ask.openstack.org/) l  https://wiki.openstack.org/wiki/MailingLists l  https://wiki.openstack.org/IRC l  Your local user group l  The comments section on that almost-related blog

Page 52: "OpenStack — more than just software". Tom Fifield, OpenStack

52

See you in Hong Kong

November 5-8, register now!

λ openstack.org/summit

Design Sessions: not a classic track with speakers and presentations - generally an open brainstorming discussion on a given feature Conference Sessions: Keynotes, Case Studies, Ecosystem, Operations, Strategy, Workshops

Page 53: "OpenStack — more than just software". Tom Fifield, OpenStack

Thank you for supporting OpenStack

Tom Fifield [email protected] @Tom Fifield

Ask Questions at ask.openstack.org