Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ......

41
Introduction to Synnefo open source cloud stack Thomas Schend, Systems Architect, CompuGroup Medical AG Open Source Data Center Conference 2014 08. – 10. April, Berlin 1/26/2015 OSDC 2014 1

Transcript of Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ......

Page 1: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Introduction to Synnefo

open source cloud stack

Thomas Schend, Systems Architect, CompuGroup Medical AG

Open Source Data Center Conference 2014

08. – 10. April, Berlin

1/26/2015 OSDC 2014 1

Page 2: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Agenda

1/26/2015 OSDC 2014 2

Introduction

What do we need from IaaS?

Introducing to Synnefo

Components

Ganeti

Demo

Q & A

Page 3: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

successfully worldwide in 35 countries for approx. 385,000 customers

26.01.2015 OSDC 2014 3

= 19 countries with own offices = additional 16 countries with customers

2012 Guidance 2013

Customers 385.000

Group sales € 451 Mio. € 458 – 463 Mio.

EBITDA € 105 Mio. € 97 – 100 Mio.

employees 3.700

Indicators

Best provider of IT solutions for higher quality and efficiency in health care

Worldwide leader for MIT (Medical Information Technology)

High profitability and an average of 30% growth p.a.

Objectives

Page 4: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Bio

1/26/2015 OSDC 2014 4

Systems Architect, responsible for Infrastructure Design

OSS Enthusiast

LPIC-2,MCITP,VCP,CCA,DCIE,…

Contact: [email protected]

Page 5: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Agenda

1/26/2015 OSDC 2014 5

Introduction

What do we need from IaaS?

Introducing to Synnefo

Components

Ganeti

Demo

Q & A

Page 6: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

What do we need from IaaS?

1/26/2015 OSDC 2014 6

Reliable

Scalable (Backend and VMs)

Easy to manage

Long lived workloads, not all VMs are EC2 instances ;-)

Page 7: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

“VMs are not cattle, they are pets”

Vangelis Koukis, Technical Lead, Synnefo

Quote

1/26/2015 OSDC 2014 7

Page 8: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Agenda

1/26/2015 OSDC 2014 8

Introduction

What do we need from IaaS?

Introducing to Synnefo

Components

Ganeti

Demo

Q & A

Page 9: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo

1/26/2015 OSDC 2014 9

Open Source

Production-quality IaaS

made for persistent VMs

commodity hardware – No SAN

Large-scale Installations

simple UI for the end-user

uses Ganeti as a Cluster Manager

Page 10: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo History

1/26/2015 OSDC 2014 10

Design started late 2010

Production since July 2011

~okeanos* public cloud running currently ~8700 VMs

*http://okeanos.grnet.gr

Page 11: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo Layers

1/26/2015 OSDC 2014 11

Image provided by GRNET

Page 12: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo birdseye view

1/26/2015 OSDC 2014 12

Image provided by GRNET

Page 13: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo

1/26/2015 OSDC 2014 13

Build with Ganeti as a backend

Astakos: Identity/Account services

Cyclades: Compute/Network/Image/Volume services

Pithos: File/Object Storage service

snf-manage commandline tool

Basic helpdesk tool

snf-burnin / snf-burnin-run

kamaki commandline client

Code on github

Page 14: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Agenda

1/26/2015 OSDC 2014 14

Introduction

What do we need from IaaS?

Introducing to Synnefo

Components

Ganeti

Demo

Q & A

Page 15: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo Architecture I

1/26/2015 OSDC 2014 15

Image provided by GRNET

Page 16: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo features - Astakos

1/26/2015 OSDC 2014 16

Identity service

Provides Dashboard

Track Resource usage

Project Management

Multiple Auth methods

Twitter / Google / LinkedIn / LDAP / Active-directory

Page 17: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo features - Cyclades

1/26/2015 OSDC 2014 17

Network management

L3 Routed/L2 VLANS/L2 isolation with mac filter

nfdhcpd

Archipelago storage abstraction

ceph/NFS/Gluster backend

very fast, thin cloning

Snapshots

Page 18: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo features - Pithos

1/26/2015 OSDC 2014 18

Object storage service

Efficient syncing

Hashing before upload

Deduplication in backend

Web UI written in GWT

Clients for Windows, Macos and IOS

Sharing public and private

Page 19: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo / Ganeti Communication

1/26/2015 OSDC 2014 19

Image provided by GRNET

Page 20: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

written in python / django

apache/gunicorn

postgres database

snf-gnt-eventd / snf-progress-mon

rabbitmq

snf-dispatcher

snf-vncauthproxy

build for wheezy, can run fully virtualized

speaks openstack API but does not share any code

Synnefo Architecture II

1/26/2015 OSDC 2014 20

Page 21: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Secure image deployment of untrusted images

Isolated from the ganeti node

Supports Linux,Windows and BSD

customization tasks

Assign hostname

Delete SSH keys

Change password

Resize Filesystem

Run unattended install (windows)

Inject files

Synnefo - snf-image

1/26/2015 OSDC 2014 22

Page 22: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Synnefo snf-image deployment process

1/26/2015 Central IT Services 23

gnt-node evacuate -I hail node3

Imag

e p

rovi

ded

by

GR

NET

Page 23: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Agenda

1/26/2015 OSDC 2014 24

Introduction

What we need from IaaS?

Introducing to Synnefo

Components

Ganeti

Demo

Q & A

Page 24: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti History

1/26/2015 OSDC 2014 25

Very mature, production ready

opensourced since August 30, 2007 by google

uses Mature open source tools LVM,DRBD,python,haskell

Different hypervisors (Xen,KVM,LXC)

Low overhead for cluster management

Page 25: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti Usage at google

1/26/2015 OSDC 2014 26

Usage at google

small Clusters in Offices (OIB)

large Clusters in Datacenters for virtual desktops

mostly using XEN

Not used for user facing services

Page 26: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti features I

1/26/2015 Central IT Services 27

Scale from 1-200 nodes and beyond

Live migration without shared storage

Noderoles: master,master candidate,regular nodes

Nodegroups

OVF import tool

Backup with included tool

Job queue

Commands start with gnt-

Page 27: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti features II

1/26/2015 OSDC 2014 28

OS Interface to provision new instances

snf-image secure image deployment

ganeti-instance-debootstrap, image, ganeti-os-defs

Htools to balance clusters, plan capacity and do maintenance

supported file,plain,sharedfile,ceph,NFS,Gluster

Ext storage provider with plugins for Archipelago, HP EVA,,IBM Storwize

Page 28: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti advanced features

1/26/2015 OSDC 2014 29

Hooks for every action (pre/post)

Tags for every object

Exclusion tags to keep machines apart from each other

Deploy flash in every node for high performance (flashcache,bcache,dm-cache)

OOB management interface

Ganeti watcher

Page 29: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti advantages

1/26/2015 OSDC 2014 30

No need for special hardware (SAN)

But SAN/Shared Storage is supported

Manage cluster as an entity not single nodes (libvirt)

Few dependencies

No database

Easy recovery in case of hardware outage

No SPOF which can affect the reliability of VMs

Very good documentation

Page 30: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Deployment automation puppet,chef,cfengine,..

Monitoring icinga/nagios/check_mk/…

Openvswitch LACP + 10GBe

Autorepair

Packages for all major OS debian,ubuntu,rhel/centos

Ganeti best practices

1/26/2015 OSDC 2014 31

Page 31: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti management interfaces

1/26/2015 OSDC 2014 32

cli with bash completion

LUXI

RAPI

Different web UIs using the RAPI

Ganeti web manager

Ganetimgr

Synnefo

Page 32: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti quick command reference

1/26/2015 OSDC 2014 33

gnt-cluster init / info / verify / command / copyfile

gnt-node add / list / failover / evacuate

gnt-instance add / info / replace-disks

gnt-job list …

gnt-network …

gnt-backup …

Page 33: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti htools - allocation and placement

1/26/2015 OSDC 2014 34

written in haskell

hail

hbal

hspace

harep

hinfo

hroller

Page 34: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Typical Ganeti Clsuter

1/26/2015 OSDC 2014 35

Node01

Node02

Node03

gnt-cluster init [-s ip]

--enabled-hypervisors=kvm

cluster

gnt-node add [-s ip]

node2 gnt-node add [-s ip] node3

gnt-cluster verify

gnt-instance add -t drbd -I hail -o debootstrap+default vm

Vee

am v

irtu

aliz

atio

n s

ten

cils

Page 35: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Ganeti Failover and Repair

1/26/2015 OSDC 2014 36

gnt-node modify -O

yes node01 gnt-node failover --

ignore-consistency

node01

gnt-node evacuate -I hail node01

Node01

Node02

Node03

Vee

am v

irtu

aliz

atio

n s

ten

cils

Page 36: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

“Ganeti didn't have any generally known meaning before this project. And now it means kick-ass cluster management”

Martin Beauchamp, on the Ganeti Users List

Quote

1/26/2015 OSDC 2014 37

Page 37: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Agenda

1/26/2015 OSDC 2014 38

Introduction

What do we need from IaaS?

Introducing to Synnefo

Components

Ganeti

Demo

Q & A

Page 38: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Login to Astakos

syncing and Pithos UI and App

Create VMs with Cyclades UI

Snapshot Feature

OOB Console

Hotplug of NICs and Networks

Floating IPs

Clean-up

Demo

1/26/2015 OSDC 2014 39

Page 39: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

Agenda

1/26/2015 OSDC 2014 40

Introduction

What do we need from IaaS?

Introducing to Synnefo

Components

Ganeti

Demo

Q & A

Page 40: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

http://www.synnefo.org

https://github.com/grnet/synnefo

https://code.google.com/p/ganeti/

Try it!

1/26/2015 OSDC 2014 41

Page 41: Open Source Data Center Conference 2014 08. 10. … Source Data Center Conference 2014 08. ... (Xen,KVM,LXC) Low overhead for ... ganeti-instance-debootstrap, image, ganeti-os-defs

1/26/2015 OSDC 2014 42

Q & A