+ All Categories
Home > Documents > OPENSTACK: THE OPEN CLOUD - Jacobs University...

OPENSTACK: THE OPEN CLOUD - Jacobs University...

Date post: 17-Apr-2018
Category:
Upload: lenhu
View: 218 times
Download: 2 times
Share this document with a friend
16
OPENSTACK: THE OPEN CLOUD Anuj Sehgal ([email protected]) AIMS 2012 Labs 04 June 2012
Transcript
Page 1: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

OPENSTACK: THE OPEN CLOUD Anuj Sehgal ([email protected]) AIMS 2012 Labs 04 June 2012

Page 2: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

Outline • What is the cloud? • Background • Architecture • OpenStack Nova • OpenStack Glance

1 4 June 2012

Page 3: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

What is the Cloud? • Cloud computing is the paradigm shift towards providing computing as a service.

Cloud Clients Browsers, Mobile Apps, Etc.

Software as a Service (SaaS) Applications, Services

Platform as a Service (PaaS) APIs, Pre-built components, Development

Environments

Infrastructure as a Service (IaaS) VMs, Load Balancers, DBs, IPs

Physical Hardware Computing, Networking, Storage

2 4 June 2012

Page 4: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

Background • Amazon EC2 and S3 initial movers.

• Rackspace countered with their solution.

• Eucalyptus was the most popular open source IaaS platform. •  NASA major supporter

3 4 June 2012

Page 5: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

What went wrong?

•  NASA Nebula Project -  Required massive scalability

(1 million machines and 60 million VMs)

•  Scalability of Eucalyptus was insufficient

•  Eucalyptus had closed source core -  NASA could not contribute

modules

4 4 June 2012

Page 6: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

Birth of OpenStack • OpenStack became a collaboration of Rackspace and

NASA.

• Rackspace Ozone cloud controller. • NASA Nova cloud computing from Nebula. • Rackspace Cloud Files storage engine (swift).

5 4 June 2012

Page 7: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

OpenStack Components •  Compute (Nova)

•  Used to orchestrate, manage and offer virtual machines upon many hypervisors.

•  Support for Xen, XenServer/XCP, KVM, UML, VMware vSphere and Hyper-V.

•  Analogous to the Amazon Elastic Compute Cloud (EC2).

•  Object Storage (Swift) •  Provides redundant storage for static objects. •  Scalable to massive data sizes. Theoretically infinite storage.

•  Image Service (Glance)

•  Provides storage for virtual disk, kernel and machine images. •  Also provides image registration and querying services. •  Accepts images in many formats, including AMI, AKI and ARI.

4 June 2012 6

Page 8: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

OpenStack Architecture

Nova API

Glance API

Glance Registry

Image Store

Queue Server Swift

Nova Volume

Nova Schedule

Nova Compute

Nova Network

7 4 June 2012

Page 9: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

OpenStack Nova •  Is the heart of OpenStack

•  scheduler, networking, virtual machines, APIs and etc.

•  nova-api provides an endpoint for management •  Handles all API queries (Amazon EC2 and OpenStack) •  Initiates all the orchestration of activities through message queue •  Enforces policies

•  nova-schedule decides where a new VM is instantiated •  Maps API calls to appropriate OpenStack components •  Picks servers from a pool •  Decides based on load, memory, physical distance, CPU architecture and etc.

•  rabbitmq-server provides the message queuing services •  The API talks to the message queue •  Facilitates an asynchronous request-response architecture via callbacks

8 4 June 2012

Page 10: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

OpenStack Nova •  Three primary infrastructure modules

•  nova-compute creates and terminates VM instances, supports multiple hypervisors (but single one within a cloud)

•  nova-volume manages creation, attaching and detaching of persistent volumes to VMs (uses iSCSI)

•  nova-network manipulates the network by configuring VLANs, changing firewall rules, applying private/public IPs

• An SQL database (MySQL, PostgreSQL, SQLite) is used to keep track of runtime state

•  Libvirt is used to manage the VM instances • Written almost entirely in Python

9 4 June 2012

Page 11: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

OpenStack Glance •  Provides the registration and management of VM images

•  glance provides a list of available VM images to instantiate images can be registered using EC2 APIs uses filesystem or Swift for storage of images

•  Requires kernel, ramdisk and filesystem images, which are

provided to nova-compute for instantiation

•  Multiple possible flavors for instantiation can be registered •  CPUs, root-fs size, RAM and etc.

•  Uses SQL to keep track of all state information

10 4 June 2012

Page 12: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

Highly Distributed • Single Node Architecture

11 4 June 2012

Cloud Controller nova-api

nova-network nova-scheduler

Image Host glance

Volume Node nova-volume

Compute Node nova-compute

Message Queue rabbitmq-server

Page 13: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

Highly Distributed • Multi Node Architecture

12 4 June 2012

Cloud Controller nova-api

nova-network nova-scheduler

Image Host glance

Compute Node nova-compute

Message Queue rabbitmq-server

Volume Node nova-volume

Page 14: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

Highly Distributed • Multi Node Architecture

13 4 June 2012

Cloud Controller nova-api

nova-network nova-scheduler

Image Host glance

Volume Node nova-volume

Compute Node nova-compute

Message Queue rabbitmq-server

Compute Node nova-compute

Page 15: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

Exercises • Single Node Scenario

•  Ubuntu 11.10 Server base OS •  RabbitMQ •  Glance •  Cloud Controller •  Volume Host •  Compute Host

4 June 2012 14

Page 16: OPENSTACK: THE OPEN CLOUD - Jacobs University …cnds.eecs.jacobs-university.de/slides/2012-aims-openstack.pdf · OPENSTACK: THE OPEN CLOUD ... What is the Cloud? • Cloud computing

Exercises • Multi Node Scenario (Time permitting/Homework/Demo)

•  Ubuntu 11.10 Server base OS •  RabbitMQ •  Glance •  Cloud Controller •  Volume Host •  Compute Host

4 June 2012 15


Recommended