Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Apache CloudStack AlpesJUG


Published on

Presentation at the AlpesJug:

Published in: Technology
  • Be the first to comment

Apache CloudStack AlpesJUG

  1. 1. Apache CloudStack Sebastien GoasguenAlpesJUG, January 30th 2013 Grenoble, France
  2. 2. Info• Apache incubator project•• #cloudstack on• @cloudstack on Twitter•• contributions and feedback, Join the fun !
  3. 3. OSS SaaS…and more
  4. 4. OSS PaaS…
  5. 5. OSS IaaS…
  6. 6. 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…
  7. 7. French Use Cases• INRIA service national d’integration continue• Grid5000 , iKoula• Usharesoft, BtrCloud, Activeeon Integration• Appalia integrator
  8. 8. 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
  9. 9. Apache Software Foundation
  10. 10. Apache Process• 100% community driven• New ideas, decisions only taken on mailing lists. Votes taken by community• Project led by Project Management Committee (PMC): – –• Non committers get invited as committers: –
  11. 11. Apache Processes
  12. 12. What the ASF did to CloudStack ?
  13. 13. Releases• Apache CloudStack 4.0 released in November• Check out the testing procedure: – -40-test-procedure.html• Or watch my amazing screencast: – – Apache CloudStack 4.1 planned for March 22nd. Feature Freeze tomorrow...
  14. 14. Contributions Examples: Sungard: Announced that 6 developers were joining the Apache project Schuberg Philis: Big contribution in building/packaging and Nicira support PCextreme: RBD/Ceph support Caringo: Support for own object store Basho: Devcloud packaging, S3 integration
  15. 15. 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
  16. 16. A Very Flexible IaaS PlatformCompute HypervisorStorage Block & Object Primary Storage Secondary StorageNetwork Network & Network Services
  17. 17. 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 – –
  18. 18. Build and Run in 4.1• git clone https://git-wip- or-cloudstack.git• mvn clean• mvn install• mvn –P developer –pl developer –Ddeploydb• mvn –pl :cloud-client-ui jetty:run
  19. 19. Cloud Interactions OVM Cluster Primary Storage Ap i Xen vcenter vcenter Monitoring Primary CS API Clu I ste AP vSphere Cluster Storage r M n ter End End gm vCe t User UI User UI Primary XS Cluster Storage Admin Admin Clustered Clustered CloudStack XAPI UI UI CloudStack Domain Domain CS Admin & CloudStack CloudStack CloudStack CloudStack End-user API Primary Admin Admin UI UI Management Management JSON KVM Cluster Storage Server Server NetConf Juniper SRXCloud user Nitro API{API client (Fog/etc)} VNC JSON ec2 API JSON Netscaler Cloud user Console Console Console {ec2 API client } ProxyConsole VM Proxy VM Proxy VM Proxy VM NFS MySQL MySQL Server Sec. Storage Sec. Storage NFS NFS {Proxied} SSH Sec. VM Storage Sec. Storage VM Ajax Ajax HTTPS VM VM Console Console Router VM Router VM HTTP (Template Download) Router VM Router VM HTTP (Template Copy) Router VM Router VM Cloud user HTTP (Swift)
  20. 20. Terminology Zone: Availability zone, aka Regions. Could be worldwide. Different data centers Pods: Racks or aisles in a data center Clusters: Group of machines with a common type of Hypervisor Host: A Single server Primary Storage: Shared storage across a cluster Secondary Storage: Shared storage in a single Zone
  21. 21. CloudStack Cloud Architecture Internet Internet  Hypervisor is the basic unit of CloudStack Management scale. ServerZone 1  Cluster consists of one ore more hosts of same L3 core L3 core hypervisor  All hosts in cluster have accessPod 1 Access Layer Access Layer Pod N to shared (primary) storage Secondary …. Storage  Pod is one or more clusters, Cluster N usually with L2 switches.  Availability Zone has one or …. more pods, has access to secondary storage. Cluster 1  One or more zones represent Host 11 Host cloud Primary Storage Host 22 Host
  22. 22. 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
  23. 23. 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
  24. 24. Layer-2 Guest Virtual Network CS Virtual Router provides Network Services External Devices provide Network Services Network Hardware exposing API can be controlled Guest Virtual Network Guest Virtual Network VLAN 100 VLAN 100Public PublicNetwork/Inter Network/Internet Guest net Guest Guest Guest Private IP VM 11 Public IP VM 11 VM VM Gateway Juniper JuniperPublic IP 1 SRX SRX address65.37.141.11 CS Firewall Firewall CS Guest Guest Guest Guest Virtual Virtual VM 22 VM VM 22 VM Router Router Public IP Private IP DHCP, DNS 65.37.141. NetScaler NetScaler NAT Guest 112 Load Guest Guest Load Guest Load Balancing VM 33 Blancer VM 33 VM Blancer VM VPN Guest Guest Guest Guest VM 44 VM VM 44 VM CS CS DHCP, Virtual Virtual Router Router DNSSlide from Chiradeep Vittal,
  25. 25. 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.
  26. 26. L3 isolation with distributed firewalls Tenant Public IP address 1 VM 1Internet Pod 1 L2 Tenant Switch 2 VM 1 Tenant 1 VM 2 L3 Core Pod 2 L2 Switch … Tenant 2 VM 2 Load Pod 3 L2 Balancer Switch Tenant 2 VM 3 … Tenant 1 VM 3 Tenant 1 VM 4 Slide from Chiradeep Vittal
  27. 27. A customizable GUI AJAX + API
  28. 28. A very extensive API
  29. 29. 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
  30. 30. EC2 /S3 compatibility• Significant development work happening to make Cloudstack highly compatible with EC2 /S3 API.• +support+in+CloudStack• dstack-ec2-configuration• Euca tools, boto etc…should work with cloudstack.
  31. 31. Enabling EC2 and S3• Via the GUI• Via API call on integration API port 8096 http://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
  32. 32. Highly Scalable• See: – 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.
  33. 33. 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 ?• Cloud
  34. 34. DevCloud: self-containedCloudStack runs in the appliance
  35. 35. DevCloud: as HostRun CloudStack on local machineUse DevCloud to setup hosts
  36. 36. 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:runConfigure infrastructure:• mvn -P developer,deploysvr -pl tools/devcloud -Ddeploysvr
  37. 37. Testing Framework –for the PyUG  [environment]• Marvin is a Python dns= mshost= based framework to run tests against a [cloudstack] private.gateway= CloudStack install private.pod.startip= private.pod.endip=• Could be used as a private.netmask= public.gateway= simulator of a public.vlan.startip= datacenter public.vlan.endip= public.netmask=• Used to configure an hypervisor=XenServer host= infrastructure on a mgt host.password=password #storage pools server primary.pool=nfs:// rt/home/automation/sadhu/primary secondary.pool=nfs:// port/home/automation/sadhu/secondary
  38. 38. CloudMonkey• New ASF CloudStack CLI• Python code, built using Marvin• tack-cloudmonkey-cli.html• Available from CloudStack source or pypi: –
  39. 39. Build A Cloud Events•• @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,
  40. 40. Info• Apache incubator project•• #cloudstack and #cloudstack-dev on• @CloudStack on Twitter•• contributions and feedback, Join the fun !