0
Support Training
jclouds: The
Rackspace Java SDK
Everett Toews
Developer Advocate
@everett_toews
You need:
JDK 1.6+
Maven ...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Intro
2
Developer
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Committer on jclouds
3
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Intro
4
Advocate
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Intro
5
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Intro
6
Operations
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Co-author of The OpenStack Operations Guide
7docs.openstack.org/ops
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Intro
8
In startup we
are not allow
dev team for
talk to ops team
except by API.
@D...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Agenda
9
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
The Workshop
•Introduction
•jclouds Overview
•SDKs
•Terminology
•Cloud Accounts
•Ge...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
The Workshop
•Examples
•Authentication
•Logging
•Cloud Files
•Cloud Servers
•Cloud ...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
The Workshop
•Wreck-It
•Bug Reports
•Troubleshooting
•Help!
•Potpourri
•Wrap Up
12
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Introduction to jclouds
13
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
jclouds
14
• Cross-cloud toolkit
• Open Source (Apache v2)
• Community
• Portable A...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
jclouds’ Supported Clouds
•Compute
•Rackspace Cloud
Servers
•HP Cloud Compute
•AWS ...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
jclouds Community
16
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
17
APIs and Providers
APIs
Providers
openstack-nova ec2 rackspace-clouddns
rackspac...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
18
APIs
APIs
openstack-nova
NovaApi:
ServerApi
FlavorApi
ImageApi
=Extensions=
KeyP...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
19
Providers
Providers
rackspace-
cloudservers-us
rackspace-
cloudservers-uk
racksp...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
jclouds Layers (APIs)
•ComputeService
•OpenStack
•Rackspace
•HP, AWS, etc.
•NovaApi...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
21
jclouds Compute Venn (APIs)
Portable
Ecosystem
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
jclouds Layers (APIs)
22
•BlobStore
•OpenStack
•Rackspace
•HP, AWS, etc.
•SwiftApi
...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
23
jclouds Storage Venn (APIs)
Portable
Ecosystem
Provider
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
jclouds Community
24
After 3 beer I
can able use
any of cloud
API.
@DevOps_Borat
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Where Does jclouds Live?
25
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDK Deployment
26
Your
System
S
D
K
Cloud
A
P
I
VM
VM
VM
User
System
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDK Deployment
27
A
P
I
Cloud
Your
System
S
D
K
User
System
VM
VM
VM
VM
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
What Can jclouds
Do For You Today?
28
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
29
Plumbing
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
30
(Re)Authentication
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
31
Pagination
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
32
State Polling
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
33
Rate Limiting
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
34
Retry
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
35
Smoothing
Rough Edges
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
36
Open Source
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
37
In devops
nobody is get
fire for buy
open source.
@DevOps_Borat
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
38
Community
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
39
Packaged
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
40
All-in-one
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
41
Extensions
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
42
No lock-in
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
43
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
44
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
45
Battle Tested Code
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
46
Sample Code
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
47
Documentation
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
48
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
SDKs
49
Survey is show
junior devops
are still believe
in Tooth Fairy,
Santa Claus ...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Code
50
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Code
51
j.mp/jcldstrain
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Cloud Accounts
52
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Rackspace
•Username
•API Key
•(Password is useable too)
53
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Terminology
54
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Terminology
jclouds Rackspace/OpenStack
Compute Cloud Servers/Nova
Node Server
Loca...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Getting Started
56
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Getting Started
•developer.rackspace.com
•Java
•Getting Started with jclouds
•Get j...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Examples
58
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Examples
59
Cloud Files
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Examples
60
Cloud Servers
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Examples
61
Logging
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Examples
62
Authentication
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Examples
63
?
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Examples
64
Cross-Cloud
j.mp/jcldsglue2013
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
65
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Wreck-It
•Misspell username
•Upload Object to Container that doesn’t
exist
•Create ...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Bug Reports,
Troubleshooting,
and Help
67
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Bug Reports
•Get the version
•Get the code
•Get the wire and header logs
•gist or p...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Troubleshooting
•Download the version
•Run the code
•Compare the wire and header lo...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Troubleshooting
•Isolate the problem
•jclouds/User Problem (HTTP 4xx)
•Rackspace Pr...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Troubleshooting
•Debug the source code
•mvn dependency:copy-dependencies
"-DoutputD...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Responding
•Ideally:
•Contribute examples/doc
•Send the link to the customer
• jclo...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Responding
•Encourage customers to join the jclouds
community:
•jclouds-user-subscr...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Help!
•developer.rackspace.com/support
•javadocs.jclouds.cloudbees.net
•#jclouds on...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Potpourri
75
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Potpourri
•Moved to Apache Software Foundation
•groupId change
• 1.6.0: <groupId>or...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Potpourri
•Google’s Guice & Guava
•Removal of the AsyncApis in 1.7 (2.0?)
•Dropping...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Potpourri
•Command Line Interface
•Jenkins Plugin
•jclouds-chef
•Who Uses jclouds?
...
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Potpourri
•More examples
•Other installation methods
•Stay up-to-date with jclouds
...
Thank You
Everett Toews
Developer Advocate
@everett_toews
And don’t forget to terminate your VMs
developer.rackspace.com
j...
Upcoming SlideShare
Loading in...5
×

jclouds Support Training

589

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
589
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
39
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "jclouds Support Training"

  1. 1. Support Training jclouds: The Rackspace Java SDK Everett Toews Developer Advocate @everett_toews You need: JDK 1.6+ Maven 3+ Rackspace account
  2. 2. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 2 Developer
  3. 3. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Committer on jclouds 3
  4. 4. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 4 Advocate
  5. 5. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 5
  6. 6. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 6 Operations
  7. 7. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Co-author of The OpenStack Operations Guide 7docs.openstack.org/ops
  8. 8. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 8 In startup we are not allow dev team for talk to ops team except by API. @DevOps_Borat
  9. 9. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Agenda 9
  10. 10. RACKSPACE® HOSTING | WWW.RACKSPACE.COM The Workshop •Introduction •jclouds Overview •SDKs •Terminology •Cloud Accounts •Getting Started 10
  11. 11. RACKSPACE® HOSTING | WWW.RACKSPACE.COM The Workshop •Examples •Authentication •Logging •Cloud Files •Cloud Servers •Cloud Block Storage •Cloud Load Balancers •Cloud DNS •Cross-cloud 11
  12. 12. RACKSPACE® HOSTING | WWW.RACKSPACE.COM The Workshop •Wreck-It •Bug Reports •Troubleshooting •Help! •Potpourri •Wrap Up 12
  13. 13. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Introduction to jclouds 13
  14. 14. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds 14 • Cross-cloud toolkit • Open Source (Apache v2) • Community • Portable APIs • Ecosystem APIs • Provider APIs • Java
  15. 15. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds’ Supported Clouds •Compute •Rackspace Cloud Servers •HP Cloud Compute •AWS EC2 •ElasticHosts •GoGrid •All Clouds 15 •Storage •Rackspace Cloud Files •HP Cloud Storage •AWS S3 •Azure •CloudOne •All Clouds
  16. 16. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds Community 16
  17. 17. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 17 APIs and Providers APIs Providers openstack-nova ec2 rackspace-clouddns rackspace- cloudservers-us rackspace- cloudservers-uk aws-ec2 rackspace- clouddns-us rackspace- clouddns-uk
  18. 18. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 18 APIs APIs openstack-nova NovaApi: ServerApi FlavorApi ImageApi =Extensions= KeyPairApi SecurityGroupApi FloatingIpApi ... ec2 EC2Api: TagApi SubnetApi WindowsApi rackspace-clouddns CloudDNSApi: LimitApi DomainApi RecordApi ReverseDNSApi
  19. 19. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 19 Providers Providers rackspace- cloudservers-us rackspace- cloudservers-uk rackspace- cloudservers-us rackspace- cloudservers-uk rackspace- clouddns-us rackspace- clouddns-uk •configuration •provider specific features
  20. 20. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds Layers (APIs) •ComputeService •OpenStack •Rackspace •HP, AWS, etc. •NovaApi (*Api) •OpenStack •Rackspace •HP 20 Portable Ecosystem
  21. 21. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 21 jclouds Compute Venn (APIs) Portable Ecosystem
  22. 22. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds Layers (APIs) 22 •BlobStore •OpenStack •Rackspace •HP, AWS, etc. •SwiftApi •OpenStack •Rackspace •HP •CloudFilesClient •Rackspace Portable Ecosystem Provider
  23. 23. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 23 jclouds Storage Venn (APIs) Portable Ecosystem Provider
  24. 24. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds Community 24 After 3 beer I can able use any of cloud API. @DevOps_Borat
  25. 25. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Where Does jclouds Live? 25
  26. 26. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDK Deployment 26 Your System S D K Cloud A P I VM VM VM User System
  27. 27. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDK Deployment 27 A P I Cloud Your System S D K User System VM VM VM VM
  28. 28. RACKSPACE® HOSTING | WWW.RACKSPACE.COM What Can jclouds Do For You Today? 28
  29. 29. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 29 Plumbing
  30. 30. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 30 (Re)Authentication
  31. 31. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 31 Pagination
  32. 32. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 32 State Polling
  33. 33. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 33 Rate Limiting
  34. 34. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 34 Retry
  35. 35. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 35 Smoothing Rough Edges
  36. 36. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 36 Open Source
  37. 37. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 37 In devops nobody is get fire for buy open source. @DevOps_Borat
  38. 38. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 38 Community
  39. 39. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 39 Packaged
  40. 40. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 40 All-in-one
  41. 41. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 41 Extensions
  42. 42. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 42 No lock-in
  43. 43. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 43
  44. 44. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 44
  45. 45. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 45 Battle Tested Code
  46. 46. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 46 Sample Code
  47. 47. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 47 Documentation
  48. 48. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 48
  49. 49. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 49 Survey is show junior devops are still believe in Tooth Fairy, Santa Claus and documentation. @DevOps_Borat
  50. 50. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Code 50
  51. 51. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Code 51 j.mp/jcldstrain
  52. 52. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Cloud Accounts 52
  53. 53. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Rackspace •Username •API Key •(Password is useable too) 53
  54. 54. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Terminology 54
  55. 55. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Terminology jclouds Rackspace/OpenStack Compute Cloud Servers/Nova Node Server Location Region Hardware Flavor NodeMetadata Server details User Metadata Metadata BlobStore Cloud Files/Swift Blob File/Object 55
  56. 56. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Getting Started 56
  57. 57. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Getting Started •developer.rackspace.com •Java •Getting Started with jclouds •Get jclouds •Review JARs 57
  58. 58. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 58
  59. 59. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 59 Cloud Files
  60. 60. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 60 Cloud Servers
  61. 61. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 61 Logging
  62. 62. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 62 Authentication
  63. 63. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 63 ?
  64. 64. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 64 Cross-Cloud j.mp/jcldsglue2013
  65. 65. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 65
  66. 66. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Wreck-It •Misspell username •Upload Object to Container that doesn’t exist •Create Server in a location that doesn’t exist •Use a bad Flavor/Image •Remove Rackspace JARs from the classpath •etc. 66
  67. 67. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Bug Reports, Troubleshooting, and Help 67
  68. 68. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Bug Reports •Get the version •Get the code •Get the wire and header logs •gist or pastie 68
  69. 69. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Troubleshooting •Download the version •Run the code •Compare the wire and header logs 69
  70. 70. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Troubleshooting •Isolate the problem •jclouds/User Problem (HTTP 4xx) •Rackspace Problem (HTTP 5xx) •Use curl to verify 70
  71. 71. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Troubleshooting •Debug the source code •mvn dependency:copy-dependencies "-DoutputDirectory=./lib" "-Dclassifier=sources” 71
  72. 72. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Responding •Ideally: •Contribute examples/doc •Send the link to the customer • jclouds.org/documentation/devguides/contributing-to-jclouds/ •github.rackspace.com/van5941/CLAs 72
  73. 73. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Responding •Encourage customers to join the jclouds community: •jclouds-user-subscribe@apache.org • www.mail-archive.com/user@jclouds.incubator.apache.org/ 73
  74. 74. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Help! •developer.rackspace.com/support •javadocs.jclouds.cloudbees.net •#jclouds on IRC @ freenode.net •jclouds-user-subscribe@apache.org •jclouds-dev-subscribe@apache.org 74
  75. 75. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Potpourri 75
  76. 76. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Potpourri •Moved to Apache Software Foundation •groupId change • 1.6.0: <groupId>org.jclouds.X</groupId> • 1.6.1: <groupId>org.apache.jclouds.X</groupId> •Package change •1.6.0: import org.jclouds •1.7 (2.0?): import org.apache.jclouds 76
  77. 77. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Potpourri •Google’s Guice & Guava •Removal of the AsyncApis in 1.7 (2.0?) •Dropping support for Java 1.6? •Cloud Files isn’t multi-region...yet •Cloud Databases in progress •More endpoints 77
  78. 78. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Potpourri •Command Line Interface •Jenkins Plugin •jclouds-chef •Who Uses jclouds? •CloudBees •Cloudify •EnterpriseDB •Pallet •... 78
  79. 79. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Potpourri •More examples •Other installation methods •Stay up-to-date with jclouds •blog.phymata.com •@everett_toews •What else can we do to stay in sync? 79
  80. 80. Thank You Everett Toews Developer Advocate @everett_toews And don’t forget to terminate your VMs developer.rackspace.com j.mp/jcldstrain
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×