building a real-world public cloud from the ground up

60
GRNET DeIC konference 2012 1 [email protected]| 20121112 Building a real-world public cloud from the ground up Vangelis Koukis [email protected] Technical Coordinator, okeanos Project

Upload: sutton

Post on 10-Jan-2016

39 views

Category:

Documents


0 download

DESCRIPTION

Building a real-world public cloud from the ground up. Vangelis Koukis [email protected] Technical Coordinator,  okeanos Project. Outline.  okeanos ? Rationale Design – Platform - Features Unity - Automation Opensource – Upcoming. What is  okeanos?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 1

[email protected]| 20121112

Building a real-world public cloudfrom the ground up

Vangelis Koukis [email protected] Coordinator, okeanos Project

Page 2: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 2

[email protected]| 20121112

Outline okeanos ? Rationale Design – Platform - Features Unity - Automation Opensource – Upcoming

Page 3: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 3

[email protected]| 20121112

What is okeanos?

‘okeanos’ is Greek for ‘ocean’.

Oceans capture, store and deliverenergy, oxygen and life around the planet.

Page 4: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 4

[email protected]| 20121112

Simplicity

Page 5: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 5

[email protected]| 20121112

Page 6: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 6

[email protected]| 20121112

Compute

Network

Storage

Security

Virtual Machines

Virtual Ethernets

Virtual Disks

Virtual Firewalls

Page 7: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 7

[email protected]| 20121112

Flexibility

Page 8: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 8

[email protected]| 20121112

Page 9: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 9

[email protected]| 20121112

1x

2x5x

8x

Page 10: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 10

[email protected]| 20121112

okeanos service

Goal: Production-quality IaaS Beta in Dec, current Alpha: >1600 VMs / >1000 users Target group: GRNET’s customers

direct: IT depts of connected institutions

indirect: university students, researchers in academia

Users manage resources over a simple, elegant UI, or

a REST API, for full programmatic control

Page 11: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 11

[email protected]| 20121112

okeanos features

Compute/Network Service: Cyclades File Storage Service: Pithos+ Image Service: Plankton Identity Service: Astakos

Volume Service: Archipelago

Page 12: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 12

[email protected]| 20121112

Rationale

Page 13: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 13

[email protected]| 20121112

How it all started

Need for easy, secure access to GRNET’s datacenters User friendliness, simplicity

Scalable to the thousands #VMs, TBs, users (Pithos: 10k)

running within GRNET’s AAI Federation Resell or build your own?

IaaS cloud provider, vendor, or own infrastructure?

It all depends on your needs

Page 14: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 14

[email protected]| 20121112

Build on commercial IaaS?

Commercial IaaS Amazon EC2 not an end-user service

Need to develop custom UI, AAI layers

Vendor lock-in

Unsuitable for IT depts• persistent, long-term servers

• custom networking requirements

GRNET has invested heavily in its core network > 8000km of dark fiber

Page 15: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 15

[email protected]| 20121112

Bring vendor into datacenter?

Hypervisor lock-in Is a turn-key solution suitable for a public cloud? Building public clouds is an ongoing process

Manageable by GRNET’s operation

Integrated into the rest of the infrastructure

Scaling to thousands of users

Build on existing know-how Gain know-how, build own IaaS reuse for own services

Page 16: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 16

[email protected]| 20121112

What about opensource?

OpenStack, Eucalyptus, OpenNebula Need a mature opensource core to build around Maturity, production-readiness?

proven in production environments, predictable

Extensibility? Flexibility? Upgradeability, maintainability?

Page 17: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 17

[email protected]| 20121112

Design

Page 18: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 18

[email protected]| 20121112

okeanos design decisions

Reuse existing components

Build on Google Ganeti

target commodity hardware

release to the community as opensource

Page 19: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 19

[email protected]| 20121112

okeanos design principles

No need to make the world No need to support everything

Service developed and maintained by 10-15 people

Start from the architecture… …then discover, combine, reuse the right components

And for everything that’s not already available Do it yourself!

Page 20: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 20

[email protected]| 20121112

Page 21: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 21

[email protected]| 20121112

Jigsaw puzzle

Synnefo custom cloud management software to power okeanos

Google Ganeti backend VM cluster management: physical nodes, VMs, migrations

OpenStack APIs: Compute API v1.1, Object Storage API with custom extensions whenever necessary

Then everything comes together UI, Networking, Images, Storage, Monitoring, Identity

management, Accounting, Billing, Clients, Helpdesk

Page 22: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 22

[email protected]| 20121112

Why Ganeti?

No need to reinvent the wheel Scalable, proven software infrastructure

Built with reliability and redundancy in mind

Combines open components (KVM, LVM, DRBD)

Well-maintained, readable code

VM cluster management in production is

serious business reliable VM control, VM migrations, resource allocation

handling node downtime, software upgrades

Page 23: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 23

[email protected]| 20121112

Why Ganeti?

GRNET already had long experience with Ganeti provides 280 VMs to NOCs through the ViMa service

involved in development, contributing patches upstream

Build on existing know-how for okeanos Common backend, common fixes

reuse of experience and operational procedures

simplified, less error-prone deployment

Page 24: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 24

[email protected]| 20121112

Platform

Page 25: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 25

[email protected]| 20121112

Software Stack

Multiple users,multiple resources

Multiple VMson cluster

SingleVM

Synnefo

Ganeti

KVM

REST API

Page 26: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 26

[email protected]| 20121112

Platform Designuser@home admin@home

Web Client CLI Client Web Client 2

GRNETdatacenter

Deb

ian

VirtualHardware

OpenStack Compute API v1.1

Direct Outof Band Access

Synnefo cloud management software

Google Ganeti

KVM

GRNET Proprietary

Page 27: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 27

[email protected]| 20121112

Features

Page 28: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 28

[email protected]| 20121112

Virtual Machine Actions

My_Windows_desktop

Shutdown

Reboot

Start Console

Destroy

Page 29: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 29

[email protected]| 20121112

IaaS – Compute (1)

Virtual Machines powered by KVM

• Linux and Windows guests, on Debian hosts

Google Ganeti for VM cluster management

accessible by the end-user over the Web or

programmatically (OpenStack Compute v1.1)

Page 30: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 30

[email protected]| 20121112

IaaS – Compute (2)

User has full control over own VMs Create

• Select # CPUs, RAM, System Disk

• OS selection from pre-defined or custom Images

• popular Linux distros (Fedora, Debian, Ubuntu)

• Windows Server 2008 R2

Start, Shutdown, Reboot, Destroy

Out-of-Band console over VNC for troubleshooting

Page 31: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 31

[email protected]| 20121112

IaaS – Compute (3)

REST API for VM management OpenStack Compute v1.1 compatible

3rd party tools and client libraries

custom extensions for yet-unsupported functionality

Python & Django implementation

Full-featured UI in JS/jQuery UI is just another API client

All UI operations happen over the API

Page 32: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 32

[email protected]| 20121112

IaaS – Network (Virtual Ethernets)

Internet

Private Network 1

Private Network 2

Private Network 3

Page 33: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 33

[email protected]| 20121112

IaaS – Network - Functionality

Dual IPv4/IPv6 connectivity for each VM Easy, platform-provided firewalling

Array of pre-configured firewall profiles

Or roll-your-own firewall inside VM

Multiple private, virtual L2 networks Construct arbitrary network topologies

e.g., deploy VMs in multi-tier configurations

Exported all the way to the API and the UI

Page 34: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 34

[email protected]| 20121112

Unity

Page 35: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 35

[email protected]| 20121112

Spawn

Freeze

Images

Ubuntumy own Ubuntu

Page 36: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 36

[email protected]| 20121112

Custom Images: snf-image

Untrusted images Host cannot touch user-provided data

Resize fs, change hostname, change passwords, inject files

Split design snf-image-host

snf-image-helper

All customization in helper VM

Page 37: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 37

[email protected]| 20121112

OpenStack Object Storage API Block storage Content-based addressing for blocks Every file is a collection of blocks Web-based, command-line, and native clients Synchronization, deduplication An integral part of okeanos

User files, Image registry for VM Images

Goal: use common backend with Archipelago

Page 38: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 38

[email protected]| 20121112

Spawn

Freeze

Images

Ubuntumy own Ubuntu

Page 39: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 39

[email protected]| 20121112

Clone

Snapshot

Images Storage

Ubuntu rootUbuntu + user data

Page 40: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 40

[email protected]| 20121112

Images – Golden Image

golden Debian

Page 41: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 41

[email protected]| 20121112

IaaS – Storage

Page 42: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 42

[email protected]| 20121112

Archipelago

RADOS

Object Storage nodes

IaaS – Storage

Maps

Volume Composer

object I/O Monitor nodes

Storage

Page 43: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 44

[email protected]| 20121112

IaaS – Storage (1)

First-phase deployment System-provided and custom user Images

Redundant storage based on DRBD

VMs survive physical node downtime or failure

Currently under testing Reliable distributed storage over RADOS

Combined with custom software for snapshotting, cloning

Dynamic virtual storage volumes

Page 44: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 45

[email protected]| 20121112

IaaS – Storage (2)

Multi-tier storage architecture Dedicated Storage Nodes (SSD, SAS, and SATA storage)

OSDs, e.g., for RADOS

Custom storage layer: Archipelago manages snapshots, creates clones over block pools

OS Images held as snapshots

VMs created as clones of snapshots

Page 45: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 46

[email protected]| 20121112

Integration

Page 46: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 47

[email protected]| 20121112

Page 47: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 48

[email protected]| 20121112

Page 48: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 49

[email protected]| 20121112

Page 49: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 50

[email protected]| 20121112

Page 50: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 51

[email protected]| 20121112

Support services

Identity: Astakos Provides the user base for okeanos

Once authenticated, the user retrieves a

common auth token for programmatic access

Page 51: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 52

[email protected]| 20121112

Automation

Page 52: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 53

[email protected]| 20121112

./kamaki$ ./kamakiUsage: kamaki <group> <command> [options]… --api=API API can be either openstack or synnefo --url=URL API URL --token=TOKEN use token TOKEN…

Commands: flavor info get flavor details flavor list list flavors… image create create image image delete delete image

$ ./kamaki server shutdown 101 --url=http://localhost:8000/api/v1.1--token=1234527db2…

Page 53: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 54

[email protected]| 20121112

./kamaki$ ipython

In [1]: from kamaki.client import ClientIn [2]: c = Client('http://localhost:8000/api/v1.1', "1234527db2…")In [3]: c.list_flavors()…In [4]: i = c.list_images()In [5]: i[5]{u'created': u'2011-06-09T00:00:00+00:00', u'id': 7, u'metadata': {u'values': {u'OS': u'windows',

u'size': u'11000'}}, u'name': u'Windows', u'progress': 100, u'status': u'ACTIVE', u'updated': u'2011-09-12T14:47:12+00:00'}In [6]: c.create_server('mywin1', 3, 5)

Page 54: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 55

[email protected]| 20121112

Sights

Page 55: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 56

[email protected]| 20121112

Live Demo

Prepare and upload Image from local template VM Spawn compute cluster to run MPI app Make local modifications and repeat

… What if it was over a 3G connection? Time needed to upload 1GB Image file?

Time needed to prepare and spawn virtual nodes?

Page 56: Building a real-world public cloud from the ground up

GRNET DeIC konference 2012 116

[email protected]| 20121112

Upcoming

Page 57: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 117

[email protected]| 20121112

Current and Upcoming features

Now: Alpha2 Common user base, custom user images on Pithos+

short-term: Synnefo v0.12, Beta Ultra-lightweight VMs on Archipelago with RADOS backend

medium-term Volumes: clonable / snapshottable / attachable disks

Network and storage hotplugging

Upcoming beta in fully populated datacenter

Page 58: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 118

[email protected]| 20121112

Opensource

Synnefo: Cyclades / Pithos+ / Astakos https://code.grnet.gr/projects/synnefo

https://code.grnet.gr/projects/pithos

https://code.grnet.gr/projects/astakos

kamaki https://code.grnet.gr/projects/kamaki

pip install or apt-get install everything!

Page 59: Building a real-world public cloud from the ground up

http://okeanos.io

Page 60: Building a real-world public cloud from the ground up

Greek Research and Technology Network DeIC konference 2012 120

[email protected]| 20121112

Thank You!

Questions?