40
Apache CloudStack Sebastien Goasguen AlpesJUG, January 30 th 2013 Grenoble, France

Apache CloudStack AlpesJUG

Embed Size (px)

DESCRIPTION

Presentation at the AlpesJug: http://www.alpesjug.org

Citation preview

Page 1: Apache CloudStack AlpesJUG

Apache CloudStack

Sebastien GoasguenAlpesJUG, January 30th 2013

Grenoble, France

Page 2: Apache CloudStack AlpesJUG

Info

• Apache incubator project• http://incubator.apache.org/cloudstack/• #cloudstack on irc.freenode.net• @cloudstack on Twitter• http://www.slideshare.net/cloudstack• http://cloudstack.org/discuss/mailing-lists.html

Welcoming contributions and feedback, Join the fun !

Page 3: Apache CloudStack AlpesJUG

OSS SaaS…and more

Page 4: Apache CloudStack AlpesJUG

OSS PaaS…

Page 5: Apache CloudStack AlpesJUG

OSS IaaS…

Page 6: Apache CloudStack AlpesJUG

IaaS challenges

• Not out of the box by itself.• Need a farm of hypervisors

– Xen, KVM, Vmware…

• Need storage– For image catalogue– For volume/snapshot management

• Need flexible network that can be configured on-demand– VLANS, no VLANS, existing net infra, SDN…

Page 7: Apache CloudStack AlpesJUG

French Use Cases• INRIA service national d’integration continue• Grid5000 , iKoula• Usharesoft, BtrCloud, Activeeon Integration• Appalia integrator

Page 8: Apache CloudStack AlpesJUG

A bit of History• Original company VMOPs (2008)

– Founded by Sheng Liang former lead dev on JVM

• Open source (GPLv3) as CloudStack• Acquired by Citrix (July 2011)• Relicensed under ASL v2 April 3, 2012• Accepted as Apache Incubating Project April

16, 2012• First Apache release ACS 4.0 in November 2012

Page 9: Apache CloudStack AlpesJUG

Apache Software Foundation

Page 10: Apache CloudStack AlpesJUG

Apache Process

• 100% community driven• New ideas, decisions only taken on mailing lists.

Votes taken by community• Project led by Project Management Committee

(PMC):– http://www.apache.org/dev/pmc.html– http://incubator.apache.org/guides/committer.html

• Non committers get invited as committers:– http://community.apache.org/newcommitter.html

Page 11: Apache CloudStack AlpesJUG

Apache Processes

Page 12: Apache CloudStack AlpesJUG

What the ASF did to CloudStack ?

Page 13: Apache CloudStack AlpesJUG

Releases

• Apache CloudStack 4.0 released in November• Check out the testing procedure:

– https://cwiki.apache.org/CLOUDSTACK/cloudstack-40-test-procedure.html

• Or watch my amazing screencast:– http://vimeo.com/54610161– Apache CloudStack 4.1 planned for March 22nd.

Feature Freeze tomorrow...

Page 14: Apache CloudStack AlpesJUG

ContributionsExamples:

Sungard: Announced that 6 developers were joining the Apache projectSchuberg Philis: Big contribution in building/packaging and Nicira supportPCextreme: RBD/Ceph supportCaringo: Support for own object storeBasho: Devcloud packaging, S3 integration

Page 15: Apache CloudStack AlpesJUG

What Does it do ?

• Open source Infrastructure as a Service (IaaS) platform.

• Data Center orchestrator• Hypervisor agnostic (with addition of bare

metal provisioning)• Support complex enterprise networking (e.g

Firewall, load balancer, VPN, VPC…)• Multi-tenant

Page 16: Apache CloudStack AlpesJUG

A Very Flexible IaaS PlatformCompute Hypervisor

Storage Block & Object

Network Network & Network Services

Primary Storage Secondary Storage

http://www.slideshare.net/cloudstack/cloudstack-architecture

Page 17: Apache CloudStack AlpesJUG

Architecture / Language

• Java application• Tomcat6, Axis2, Maven build + ant

– Ant going away in 4.1

• Moving towards a plugin architecture• Collaboration Conference, Nov 30th -Dec 2nd

– http://collab12.cloudstack.org/– http://www.youtube.com/diycloudcomputing

Page 18: Apache CloudStack AlpesJUG

Build and Run in 4.1

• git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git

• mvn clean• mvn install• mvn –P developer –pl developer –Ddeploydb

• mvn –pl :cloud-client-ui jetty:run

Page 19: Apache CloudStack AlpesJUG

Cloud Interactions

CloudStackCloudStack

Cloud user{API client (Fog/etc)}

End User UI

End User UI

Admin UI

Admin UI

MySQLMySQL

CloudStackCloudStackClustered

CloudStackManagement

Server

ClusteredCloudStack

ManagementServer

Domain Admin

UI

Domain Admin

UI

CS Admin & End-user API

Cloud user{ec2 API client }

ec2 API

Monitoring CS API vSphere ClusterPrimaryStorage

vcentervcenter

Cluster Mgmt

XS ClusterPrimaryStorage

vCenter API

XAPI

KVM ClusterPrimaryStorageJSON

OVM Cluster PrimaryStorage

XenApi

NetConf

Nitro APIJuniper SRX

Netscaler

Console Proxy VMConsole

Proxy VMConsole Proxy VMConsole

Proxy VM

JSON

Cloud user

HTTPSAjax Console

Ajax Console

VNC

Sec. StorageVM

Sec. StorageVM

NFS Server

NFSSec. Storage

VMSec. Storage

VM

HTTP (Template Download)

HTTP (Template Copy)

HTTP (Swift)

NFS

Router VMRouter VMRouter VMRouter VM

Router VMRouter VM

JSON

{Proxied} SSH

http://www.slideshare.net/cloudstack/cloudstack-architecture

Page 20: Apache CloudStack AlpesJUG

TerminologyZone: Availability zone, aka Regions. Could be worldwide. Different data centersPods: Racks or aisles in a data centerClusters: Group of machines with a common type of HypervisorHost: A Single serverPrimary Storage: Shared storage across a clusterSecondary Storage: Shared storage in a single Zone

Page 21: Apache CloudStack AlpesJUG

Pod 1

….

Cluster N

Access LayerAccess Layer

Host 2Host 2

Cluster 1

CloudStack Cloud Architecture

Host 1Host 1

Hypervisor is the basic unit of scale.

Cluster consists of one ore more hosts of same hypervisor

All hosts in cluster have access to shared (primary) storage

Pod is one or more clusters, usually with L2 switches.

Availability Zone has one or more pods, has access to secondary storage.

One or more zones represent cloud

PrimaryStorage

Zone 1

….

L3 coreL3 core

SecondaryStorage

Pod N

CloudStack Management

Server

InternetInternet

Page 22: Apache CloudStack AlpesJUG

Storage• Primary Storage:

– Anything that can be mounted on the node of a cluster. – Cluster LVM…iSCSI…– Holds disk images of running VMs– Support for CEPH with KVM hypervisors

• Secondary Storage:– Available across the zone– Holds snapshots and templates (image repo)– Can use Openstack swift or any object store (Gluster FS…)– New support for Caringo

• Can use NFS for both to start• Storage Abstraction refactoring underway

Page 23: Apache CloudStack AlpesJUG

Networking

• Extremely flexible to:– Provide isolation with VLANs– Provide isolation at L3 with shared L2 (scalability)– Support hardware devices that exposes API– Deployed on existing networking infrastructure– Support new networking paradigm (SDN)

• Support for Nicira Virtual P• Extensive use of Open VSwitch

Page 24: Apache CloudStack AlpesJUG

Layer-2 Guest Virtual Network

Public Network/Internet

Guest Virtual Network 10.1.1.1/8VLAN 100

Gateway address 10.1.1.1

DHCP, DNSNATLoad BalancingVPN

Public IP 65.37.141.11

10.1.1.1Guest VM 1Guest VM 1

10.1.1.3Guest VM 2Guest VM 2

10.1.1.4Guest VM 3Guest VM 3

10.1.1.5Guest VM 4Guest VM 4

CSVirtual Router

CSVirtual Router

Public Network/Internet

Guest Virtual Network 10.1.1.1/8VLAN 100

Private IP10.1.1.112

DHCP, DNS

Public IP 65.37.141.112

10.1.1.1Guest VM 1Guest VM 1

10.1.1.3Guest VM 2Guest VM 2

10.1.1.4Guest VM 3Guest VM 3

10.1.1.5Guest VM 4Guest VM 4

NetScalerLoad

Blancer

NetScalerLoad

Blancer

Private IP10.1.1.111

Public IP 65.37.141.111

Juniper SRX

Firewall

Juniper SRX

Firewall

CS Virtual Router provides Network Services External Devices provide Network ServicesNetwork Hardware exposing API can be controlled

CSVirtual Router

CSVirtual Router

Slide from Chiradeep Vittal, http://www.slideshare.net/cloudstack/cloudstack-networking

Page 25: Apache CloudStack AlpesJUG

L3 isolation

• To go beyond the limitation of VLANs (4096 vlans per switch)

• Move to L3 isolation– Shared L2 – Manage one firewall per VM

• Potential use of GRE tunnels to create single L2 overlay

• GRE in tech preview for site to site VPN.

Page 26: Apache CloudStack AlpesJUG

L3 isolation with distributed firewallsTenant 1 VM 1

10.1.0.2

Tenant 2 VM 1

10.1.0.3

Tenant 1 VM 2

10.1.0.4

Tenant 2 VM 2

10.1.16.12

Tenant 2 VM 3 10.1.16.21

Tenant 1 VM 3 10.1.16.47

Tenant 1 VM 4 10.1.16.85

Public Internet

10.1.0.1

Public IP address 65.37.141.1165.37.141.2465.37.141.3665.37.141.80

Load Balancer

L3 Core

Pod 1 L2 Switch

Pod 3 L2 Switch

10.1.16.1

…10.1.8.1Pod 2 L2 Switch

Slide from Chiradeep Vittal

Page 27: Apache CloudStack AlpesJUG

A customizable GUIAJAX + API

Page 28: Apache CloudStack AlpesJUG

A very extensive API

Page 29: Apache CloudStack AlpesJUG

API• Not really REST• A set of methods available over http(s)• Unauthenticated on integration port• Authenticated on 8080 using Access and Secret Key• Python/Ruby clients available• Internal Marvin client• CLI under development• Other clouds client support the API

Page 30: Apache CloudStack AlpesJUG

EC2 /S3 compatibility

• Significant development work happening to make Cloudstack highly compatible with EC2 /S3 API.

• http://wiki.cloudstack.org/display/RelOps/EC2+API+support+in+CloudStack

• http://www.slideshare.net/sebastiengoasguen/cloudstack-ec2-configuration

• Euca tools, boto etc…should work with cloudstack.

Page 31: Apache CloudStack AlpesJUG

Enabling EC2 and S3

• Via the GUI

• Via API call on integration API port 8096http://localhost:8096/client/api?command=updateConfiguration&name=enable.s3.api&value=true

http://localhost:8096/client/api?command=updateConfiguration&name=enable.ec2.api&value=true

Page 32: Apache CloudStack AlpesJUG

Highly Scalable• See:

– http://www.slideshare.net/cloudstack/scalability-12819428

– From Alex Huang. 10k “resources” managed per Mgt server. 30k resources with 30k VM in simulation.

• Management server can be setup in a multi-node configuration with a load-balancer and replicated MySQL.

Page 33: Apache CloudStack AlpesJUG

SandBox: DevCloud

• A Virtual box appliance packaged to provide a working CloudStack environment.

• Aimed at developers but has other use cases:– Xen PV hosts gives nested virtualization– Local EC2/S3 Cloud on your laptop– Networking experiments ?

• http://wiki.cloudstack.org/display/comm/DevCloud

Page 34: Apache CloudStack AlpesJUG

DevCloud: self-containedCloudStack runs in the appliance

Page 35: Apache CloudStack AlpesJUG

DevCloud: as HostRun CloudStack on local machineUse DevCloud to setup hosts

Page 36: Apache CloudStack AlpesJUG

DevCloud to test 4.1 branch

• mvn -P developer clean• mvn -P developer install• mvn -P developer -pl developer –Ddeploydb• mvn -P developer -pl tools/devcloud –Ddeploydb

• mvn -pl :cloud-client-ui jetty:run

Configure infrastructure:• mvn -P developer,deploysvr -pl tools/devcloud -Ddeploysvr

Page 37: Apache CloudStack AlpesJUG

Testing Framework –for the PyUG • Marvin is a Python

based framework to run tests against a CloudStack install

• Could be used as a simulator of a datacenter

• Used to configure an infrastructure on a mgt server

[environment]

dns=10.147.28.6

mshost=10.147.39.69

mysql.host=10.147.39.69

[cloudstack]

private.gateway=10.147.40.1

private.pod.startip=10.147.41.121

private.pod.endip=10.147.41.160

private.netmask=255.255.254.0

public.gateway=10.147.40.1

public.vlan.startip=10.147.41.162

public.vlan.endip=10.147.41.200

public.netmask=255.255.254.0

hypervisor=XenServer

host=10.147.40.10

host.password=password

#storage pools

primary.pool=nfs://10.147.28.7:/export/home/automation/sadhu/primary

secondary.pool=nfs://10.147.28.6:/export/home/automation/sadhu/secondary

Page 38: Apache CloudStack AlpesJUG

CloudMonkey

• New ASF CloudStack CLI• Python code, built using Marvin• https://cwiki.apache.org/CLOUDSTACK/

cloudstack-cloudmonkey-cli.html• Available from CloudStack source or pypi:

– http://pypi.python.org/pypi/cloudmonkey/

Page 39: Apache CloudStack AlpesJUG

Build A Cloud Events• http://www.buildacloud.org• @build_cloud or @sebgoa on twitter• Upcoming events in Europe in 2013:

– BACD Ghent Belgium February 1st

– FOSDEM February 2-3, Brussels– Probable LinuxTag, Berlin, May– Probable Summer: RMLL 6-11 July, Brussels– Probable in Fall: Linuxcon Europe, OWF Paris,

Page 40: Apache CloudStack AlpesJUG

Info

• Apache incubator project• http://incubator.apache.org/cloudstack• #cloudstack and #cloudstack-dev on irc.freenode.net• @CloudStack on Twitter• http://www.slideshare.net/cloudstack• http://cloudstack.org/discuss/mailing-lists.html

Welcoming contributions and feedback, Join the fun !