10:15-DevCloud and CloudMonkey-Sebastien

advertisement
DevCloud and CloudMonkey
in Apache CloudStack
Sebastien Goasguen
@sebgoa
IaaS…
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…
IaaS is really:
• A Data Center Orchestrator
– Data storage
– Data movement
– Data processing
• That can:
– Handle failures
– Support large scale
– Be programmed
DevOps
• Bring your developers closer to the operations
• Make your sys admins develop the apps
• Move to Software Defined Data Center,
Automate everything
Dev:
Java
IDE
Ops:
Shell
CLI
What the ASF did to CloudStack ?
• “A little bit about the internals”
A Very Flexible IaaS
Platform
Compute
Hypervisor
XenServer
Storage
VMware
Oracle VM
KVM
Bare metal
iSCSI
Fiber
Channel
NFS
Swift
Block & Object
Local Disk
Primary Storage
Network
Secondary Storage
Network & Network Services
Network
Type
Isolation
Firewall
Load
balancer
http://www.slideshare.net/cloudstack/cloudstack-architecture
VPN
Architecture / Language
• Java application
• Tomcat6, Axis2, Maven build + ant
– Ant going away in 4.1
• Moving towards a plugin architecture
Releases
• Apache CloudStack 4.0 released in November
• Time based releases
– Rather slip features but guarantee release
• Apache CloudStack 4.1 planned for March
22nd. 4.2 most likely in July
CloudStack Cloud Architecture
Internet
CloudStack
Management
Server
Zone 1
 Hypervisor is the basic unit of
scale.
 Cluster consists of one ore
more hosts of same hypervisor
L3 core
Pod 1 Access Layer
Pod N
….
Cluster N
Secondary
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
Cluster 1
Host 1
Host 2
 All hosts in cluster have access
to shared (primary) storage
Primary
Storage
Cloud Interactions
Primary
Storage
OVM Cluster
vcenter
Monitoring
Primary
CS API
vSphere ClusterStorage
End
User UI
Clustered
CloudStack
CloudStack
CloudStack
Management
Server
Admin
UI
CS Admin &
Domain
Admin
UI
End-user API
Primary
Storage
XS Cluster
XAPI
Primary
JSON
KVM Cluster Storage
NetConf
Juniper SRX
Cloud user
{API client (Fog/etc)}
Nitro API
ec2 API
Cloud user
{ec2 API client }
JSON
Cloud user
Netscaler
Console
Console
Proxy VM
Proxy VM
MySQL
{Proxied} SSH
Ajax
Console
VNC
JSON
HTTPS
Router VM
Router VM
Router VM
http://www.slideshare.net/cloudstack/cloudstack-architecture
NFS
Server
Sec. Storage
Sec.VM
Storage
VM
NFS
NFS
HTTP (Template Download)
HTTP (Template Copy)
HTTP (Swift)
“To get your feet wet…”
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 ?
Self-Contained
DevCloud: as Host
Run CloudStack on local machine
Use DevCloud to setup hosts
CloudMonkey
• The CloudStack CLI, developed by Rohit Yadav
• ~600 lines of Python
• pip install cloudmonkey
• Lots of features:
– Auto-completion
– Tabular output
– Help , scriptable, interactive shell…
Intro
• $ cloudmonkey
• ☁ Apache CloudStack 🐵 cloudmonkey 4.0.0. Type
help or ? to list commands.
• 🙉 cloudmonkey> set apikey
plgWJfZK4gyS3mOMTVmjUVg-X-jlWlnfaUJ9GAbBbf9EdMkAYMmAiLqzzq1ElZLYq_u38zCm0bewzGUdP66mg
• 🙉 cloudmonkey> set secretkey
VDaACYb0LV9eNjTetIOElcVQkvJck_J_QljX_FcHRj87ZKiy0z
0ty0ZsYBkoXkY9b7eq1EhwJaw7FF3akA3KBQ
🙉 cloudmonkey> list users
🙉 cloudmonkey> list virtualmachines
🙉 cloudmonkey> help list templates
🙉 cloudmonkey> deploy virtualmachine –help
🙉 cloudmonkey> list templates
templatefilter=all
• 🙉 cloudmonkey> list serviceofferings | grep id
• 🙉 cloudmonkey> stop virtualmachine
id=2c650856-a080-4766-a8b3-4166042ccec7
•
•
•
•
•
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://incubator.apache.org/cloudstack/mailing-lists.html
Collaboration Conference, Nov 30th -Dec 2nd
– http://collab12.cloudstack.org/
– http://www.youtube.com/diycloudcomputing
Welcoming contributions and feedback, Join the fun !
“Time for a Demo ?”
Download