SlideShare ist ein Scribd-Unternehmen logo
1 von 80
Support Training
jclouds: The
Rackspace Java SDK
Everett Toews
Developer Advocate
@everett_toews
You need:
JDK 1.6+
Maven 3+
Rackspace account
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.
@DevOps_Borat
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Agenda
9
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
The Workshop
•Introduction
•jclouds Overview
•SDKs
•Terminology
•Cloud Accounts
•Getting Started
10
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
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 APIs
• Ecosystem APIs
• Provider APIs
• Java
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
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
jclouds Community
16
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
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
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
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
jclouds Layers (APIs)
•ComputeService
•OpenStack
•Rackspace
•HP, AWS, etc.
•NovaApi (*Api)
•OpenStack
•Rackspace
•HP
20
Portable
Ecosystem
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
•OpenStack
•Rackspace
•HP
•CloudFilesClient
•Rackspace
Portable
Ecosystem
Provider
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 and
documentation. @DevOps_Borat
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
Location Region
Hardware Flavor
NodeMetadata Server details
User Metadata Metadata
BlobStore Cloud Files/Swift
Blob File/Object
55
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Getting Started
56
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Getting Started
•developer.rackspace.com
•Java
•Getting Started with jclouds
•Get jclouds
•Review JARs
57
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 Server in a location that doesn’t
exist
•Use a bad Flavor/Image
•Remove Rackspace JARs from the
classpath
•etc.
66
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 pastie
68
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Troubleshooting
•Download the version
•Run the code
•Compare the wire and header logs
69
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Troubleshooting
•Isolate the problem
•jclouds/User Problem (HTTP 4xx)
•Rackspace Problem (HTTP 5xx)
•Use curl to verify
70
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Troubleshooting
•Debug the source code
•mvn dependency:copy-dependencies
"-DoutputDirectory=./lib"
"-Dclassifier=sources”
71
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
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
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
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Potpourri
75
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
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
RACKSPACE® HOSTING | WWW.RACKSPACE.COM
Potpourri
•Command Line Interface
•Jenkins Plugin
•jclouds-chef
•Who Uses jclouds?
•CloudBees
•Cloudify
•EnterpriseDB
•Pallet
•...
78
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
Thank You
Everett Toews
Developer Advocate
@everett_toews
And don’t forget to terminate your VMs
developer.rackspace.com
j.mp/jcldstrain

Weitere ähnliche Inhalte

Was ist angesagt?

MHA (MySQL High Availability): Getting started & moving past quirks
MHA (MySQL High Availability): Getting started & moving past quirksMHA (MySQL High Availability): Getting started & moving past quirks
MHA (MySQL High Availability): Getting started & moving past quirks
Colin Charles
 
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)
Andreas Koop
 
Infrastructure as code
Infrastructure as codeInfrastructure as code
Infrastructure as code
Axel Quack
 

Was ist angesagt? (20)

Kafka Tutorial: Advanced Producers
Kafka Tutorial: Advanced ProducersKafka Tutorial: Advanced Producers
Kafka Tutorial: Advanced Producers
 
tow nodes Oracle 12c RAC on virtualbox
tow nodes Oracle 12c RAC on virtualboxtow nodes Oracle 12c RAC on virtualbox
tow nodes Oracle 12c RAC on virtualbox
 
System Hardening Using Ansible
System Hardening Using AnsibleSystem Hardening Using Ansible
System Hardening Using Ansible
 
Unsafe SSL webinar
Unsafe SSL webinarUnsafe SSL webinar
Unsafe SSL webinar
 
MHA (MySQL High Availability): Getting started & moving past quirks
MHA (MySQL High Availability): Getting started & moving past quirksMHA (MySQL High Availability): Getting started & moving past quirks
MHA (MySQL High Availability): Getting started & moving past quirks
 
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)
Deployment Best Practices on WebLogic Server (DOAG IMC Summit 2013)
 
Natively clouded Journey
Natively clouded JourneyNatively clouded Journey
Natively clouded Journey
 
It's in the cloud
It's in the cloudIt's in the cloud
It's in the cloud
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
 
Become a MySQL DBA - webinar series - slides: Which High Availability solution?
Become a MySQL DBA - webinar series - slides: Which High Availability solution?Become a MySQL DBA - webinar series - slides: Which High Availability solution?
Become a MySQL DBA - webinar series - slides: Which High Availability solution?
 
Become a MySQL DBA - slides: Deciding on a relevant backup solution
Become a MySQL DBA - slides: Deciding on a relevant backup solutionBecome a MySQL DBA - slides: Deciding on a relevant backup solution
Become a MySQL DBA - slides: Deciding on a relevant backup solution
 
Scaling i/o bound Microservices
Scaling i/o bound MicroservicesScaling i/o bound Microservices
Scaling i/o bound Microservices
 
Infrastructure as code
Infrastructure as codeInfrastructure as code
Infrastructure as code
 
Helm intro
Helm introHelm intro
Helm intro
 
Containerising bootiful microservices javaeeconf
Containerising bootiful microservices javaeeconfContainerising bootiful microservices javaeeconf
Containerising bootiful microservices javaeeconf
 
OTN Tour 2014: Rac 11g vs 12c
OTN Tour 2014: Rac 11g vs 12cOTN Tour 2014: Rac 11g vs 12c
OTN Tour 2014: Rac 11g vs 12c
 
MySQL DevOps at Outbrain
MySQL DevOps at OutbrainMySQL DevOps at Outbrain
MySQL DevOps at Outbrain
 
Quarkus bootstrap 2020
Quarkus bootstrap 2020Quarkus bootstrap 2020
Quarkus bootstrap 2020
 
GraphConnect Europe 2016 - Moving Graphs to Production at Scale - Ian Robinson
GraphConnect Europe 2016 - Moving Graphs to Production at Scale - Ian RobinsonGraphConnect Europe 2016 - Moving Graphs to Production at Scale - Ian Robinson
GraphConnect Europe 2016 - Moving Graphs to Production at Scale - Ian Robinson
 
Professional deployment
Professional deploymentProfessional deployment
Professional deployment
 

Andere mochten auch

Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат ГаджибалаевCloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Fuenteovejuna
 

Andere mochten auch (7)

jclouds at HKJUG
jclouds at HKJUGjclouds at HKJUG
jclouds at HKJUG
 
Getting started with jClouds
Getting started with jCloudsGetting started with jClouds
Getting started with jClouds
 
Jclouds Intro
Jclouds IntroJclouds Intro
Jclouds Intro
 
Eucalyptus основные особенности
Eucalyptus основные особенностиEucalyptus основные особенности
Eucalyptus основные особенности
 
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат ГаджибалаевCloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
Cloud APIs - обзор API западных провайдеров и API Scalaxy, Нат Гаджибалаев
 
Introduction to Apache jclouds
Introduction to Apache jcloudsIntroduction to Apache jclouds
Introduction to Apache jclouds
 
Intro to Docker Swarm
Intro to Docker SwarmIntro to Docker Swarm
Intro to Docker Swarm
 

Ähnlich wie jclouds Support Training

Software Development kits
Software Development kitsSoftware Development kits
Software Development kits
Everett Toews
 
Control the Clouds - Developer Experience with jclouds.pptx
Control the Clouds - Developer Experience with jclouds.pptxControl the Clouds - Developer Experience with jclouds.pptx
Control the Clouds - Developer Experience with jclouds.pptx
OpenStack Foundation
 
Solve the Cross-Cloud Conundrum with jclouds
Solve the Cross-Cloud Conundrum with jcloudsSolve the Cross-Cloud Conundrum with jclouds
Solve the Cross-Cloud Conundrum with jclouds
Everett Toews
 
Behind the Curtain: Operating an OpenStack Powered Private Cloud
Behind the Curtain: Operating an OpenStack Powered Private CloudBehind the Curtain: Operating an OpenStack Powered Private Cloud
Behind the Curtain: Operating an OpenStack Powered Private Cloud
Niki Acosta
 
Deploy from OpenStack Trunk into a Production Environment
Deploy from OpenStack Trunk into a Production EnvironmentDeploy from OpenStack Trunk into a Production Environment
Deploy from OpenStack Trunk into a Production Environment
OpenStack Foundation
 
Testing at-cloud-speed sans-app-sec-austin-2013
Testing at-cloud-speed sans-app-sec-austin-2013Testing at-cloud-speed sans-app-sec-austin-2013
Testing at-cloud-speed sans-app-sec-austin-2013
Matt Tesauro
 
The Next Generation IT Department MUST HAVE CLOUD
The Next Generation IT Department MUST HAVE CLOUDThe Next Generation IT Department MUST HAVE CLOUD
The Next Generation IT Department MUST HAVE CLOUD
Rackspace
 
Intro to OpenStack - WAJUG
Intro to OpenStack - WAJUGIntro to OpenStack - WAJUG
Intro to OpenStack - WAJUG
Kevin Jackson
 

Ähnlich wie jclouds Support Training (20)

Software Development kits
Software Development kitsSoftware Development kits
Software Development kits
 
Control the Clouds - Developer Experience with jclouds.pptx
Control the Clouds - Developer Experience with jclouds.pptxControl the Clouds - Developer Experience with jclouds.pptx
Control the Clouds - Developer Experience with jclouds.pptx
 
Solve the Cross-Cloud Conundrum with jclouds
Solve the Cross-Cloud Conundrum with jcloudsSolve the Cross-Cloud Conundrum with jclouds
Solve the Cross-Cloud Conundrum with jclouds
 
jclouds workshop
jclouds workshopjclouds workshop
jclouds workshop
 
Be a Cloud Native
Be a Cloud NativeBe a Cloud Native
Be a Cloud Native
 
Doc or Die
Doc or DieDoc or Die
Doc or Die
 
Behind the Curtain: Operating an OpenStack Powered Private Cloud
Behind the Curtain: Operating an OpenStack Powered Private CloudBehind the Curtain: Operating an OpenStack Powered Private Cloud
Behind the Curtain: Operating an OpenStack Powered Private Cloud
 
Deploy from OpenStack Trunk into a Production Environment
Deploy from OpenStack Trunk into a Production EnvironmentDeploy from OpenStack Trunk into a Production Environment
Deploy from OpenStack Trunk into a Production Environment
 
Cloud Technology Stack Comparison (OpenStack) - Cloud Connect Chicago 2012
Cloud Technology Stack Comparison (OpenStack) - Cloud Connect Chicago 2012Cloud Technology Stack Comparison (OpenStack) - Cloud Connect Chicago 2012
Cloud Technology Stack Comparison (OpenStack) - Cloud Connect Chicago 2012
 
DeveloperWeek 2014
DeveloperWeek 2014DeveloperWeek 2014
DeveloperWeek 2014
 
Operating OpenStack - Case Study in the Rackspace Cloud
Operating OpenStack - Case Study in the Rackspace CloudOperating OpenStack - Case Study in the Rackspace Cloud
Operating OpenStack - Case Study in the Rackspace Cloud
 
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
DevOps, CI, APIs, Oh My! - Texas Linux Fest 2012
 
Testing at-cloud-speed sans-app-sec-austin-2013
Testing at-cloud-speed sans-app-sec-austin-2013Testing at-cloud-speed sans-app-sec-austin-2013
Testing at-cloud-speed sans-app-sec-austin-2013
 
PyCon Russia 2014 - Auto Scale in the Cloud
PyCon Russia 2014 - Auto Scale in the CloudPyCon Russia 2014 - Auto Scale in the Cloud
PyCon Russia 2014 - Auto Scale in the Cloud
 
The Next Generation IT Department MUST HAVE CLOUD
The Next Generation IT Department MUST HAVE CLOUDThe Next Generation IT Department MUST HAVE CLOUD
The Next Generation IT Department MUST HAVE CLOUD
 
Migrating Traditional Apps from On-Premises to the Hybrid Cloud
Migrating Traditional Apps from On-Premises to the Hybrid CloudMigrating Traditional Apps from On-Premises to the Hybrid Cloud
Migrating Traditional Apps from On-Premises to the Hybrid Cloud
 
Behind The Scenes: New Rackspace Cloud Control Panel
Behind The Scenes:  New Rackspace Cloud Control PanelBehind The Scenes:  New Rackspace Cloud Control Panel
Behind The Scenes: New Rackspace Cloud Control Panel
 
Learning to Scale OpenStack
Learning to Scale OpenStackLearning to Scale OpenStack
Learning to Scale OpenStack
 
Intro to OpenStack - WAJUG
Intro to OpenStack - WAJUGIntro to OpenStack - WAJUG
Intro to OpenStack - WAJUG
 
Autoscaling Best Practices
Autoscaling Best PracticesAutoscaling Best Practices
Autoscaling Best Practices
 

Mehr von Everett Toews

Introduction to Apache jclouds at NYJavaSIG
Introduction to Apache jclouds at NYJavaSIGIntroduction to Apache jclouds at NYJavaSIG
Introduction to Apache jclouds at NYJavaSIG
Everett Toews
 

Mehr von Everett Toews (20)

All You Need to Know About Kustomize
All You Need to Know About KustomizeAll You Need to Know About Kustomize
All You Need to Know About Kustomize
 
Intro to InnerSource
Intro to InnerSourceIntro to InnerSource
Intro to InnerSource
 
An OpenShift Migration: From 3.9 to 4.5
An OpenShift Migration: From 3.9 to 4.5An OpenShift Migration: From 3.9 to 4.5
An OpenShift Migration: From 3.9 to 4.5
 
Cloud Native Summit 2019 Summary
Cloud Native Summit 2019 SummaryCloud Native Summit 2019 Summary
Cloud Native Summit 2019 Summary
 
DevOps: Chop wood. Carry water.
DevOps: Chop wood. Carry water.DevOps: Chop wood. Carry water.
DevOps: Chop wood. Carry water.
 
Ciao: Continuous Integration for Apps on OpenStack
Ciao: Continuous Integration for Apps on OpenStackCiao: Continuous Integration for Apps on OpenStack
Ciao: Continuous Integration for Apps on OpenStack
 
Introduction to Apache jclouds at NYJavaSIG
Introduction to Apache jclouds at NYJavaSIGIntroduction to Apache jclouds at NYJavaSIG
Introduction to Apache jclouds at NYJavaSIG
 
DevStack: Learn OpenStack by Running OpenStack
DevStack: Learn OpenStack by Running OpenStackDevStack: Learn OpenStack by Running OpenStack
DevStack: Learn OpenStack by Running OpenStack
 
Enabling Walk Up Contributions to Your Documentation at GlueCon
Enabling Walk Up Contributions to Your Documentation at GlueConEnabling Walk Up Contributions to Your Documentation at GlueCon
Enabling Walk Up Contributions to Your Documentation at GlueCon
 
You Sir, Sir Vey
You Sir, Sir VeyYou Sir, Sir Vey
You Sir, Sir Vey
 
Walk n Doc
Walk n DocWalk n Doc
Walk n Doc
 
Nashorn
NashornNashorn
Nashorn
 
Enabling Walk Up Contributions to Your Project Documentation
Enabling Walk Up Contributions to Your Project DocumentationEnabling Walk Up Contributions to Your Project Documentation
Enabling Walk Up Contributions to Your Project Documentation
 
Introduction to Apache jclouds at ApacheCon 2014
Introduction to Apache jclouds at ApacheCon 2014Introduction to Apache jclouds at ApacheCon 2014
Introduction to Apache jclouds at ApacheCon 2014
 
Women Who Code
Women Who CodeWomen Who Code
Women Who Code
 
HackTX
HackTXHackTX
HackTX
 
Cybera Summit
Cybera SummitCybera Summit
Cybera Summit
 
The OpenStack Community Welcomes Developers in All Languages
The OpenStack Community Welcomes Developers in All LanguagesThe OpenStack Community Welcomes Developers in All Languages
The OpenStack Community Welcomes Developers in All Languages
 
NetflixOSS on OpenStack
NetflixOSS on OpenStackNetflixOSS on OpenStack
NetflixOSS on OpenStack
 
DevStack
DevStackDevStack
DevStack
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

jclouds Support Training

  • 1. Support Training jclouds: The Rackspace Java SDK Everett Toews Developer Advocate @everett_toews You need: JDK 1.6+ Maven 3+ Rackspace account
  • 2. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 2 Developer
  • 3. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Committer on jclouds 3
  • 4. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 4 Advocate
  • 5. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 5
  • 6. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Intro 6 Operations
  • 7. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Co-author of The OpenStack Operations Guide 7docs.openstack.org/ops
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Agenda 9
  • 10. RACKSPACE® HOSTING | WWW.RACKSPACE.COM The Workshop •Introduction •jclouds Overview •SDKs •Terminology •Cloud Accounts •Getting Started 10
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM The Workshop •Wreck-It •Bug Reports •Troubleshooting •Help! •Potpourri •Wrap Up 12
  • 13. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Introduction to jclouds 13
  • 14. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds 14 • Cross-cloud toolkit • Open Source (Apache v2) • Community • Portable APIs • Ecosystem APIs • Provider APIs • Java
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds Community 16
  • 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. 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. 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds Layers (APIs) •ComputeService •OpenStack •Rackspace •HP, AWS, etc. •NovaApi (*Api) •OpenStack •Rackspace •HP 20 Portable Ecosystem
  • 21. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 21 jclouds Compute Venn (APIs) Portable Ecosystem
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 23 jclouds Storage Venn (APIs) Portable Ecosystem Provider
  • 24. RACKSPACE® HOSTING | WWW.RACKSPACE.COM jclouds Community 24 After 3 beer I can able use any of cloud API. @DevOps_Borat
  • 25. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Where Does jclouds Live? 25
  • 26. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDK Deployment 26 Your System S D K Cloud A P I VM VM VM User System
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM What Can jclouds Do For You Today? 28
  • 29. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 29 Plumbing
  • 30. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 30 (Re)Authentication
  • 31. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 31 Pagination
  • 32. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 32 State Polling
  • 33. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 33 Rate Limiting
  • 34. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 34 Retry
  • 35. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 35 Smoothing Rough Edges
  • 36. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 36 Open Source
  • 37. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 37 In devops nobody is get fire for buy open source. @DevOps_Borat
  • 38. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 38 Community
  • 39. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 39 Packaged
  • 40. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 40 All-in-one
  • 41. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 41 Extensions
  • 42. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 42 No lock-in
  • 43. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 43
  • 44. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 44
  • 45. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 45 Battle Tested Code
  • 46. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 46 Sample Code
  • 47. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 47 Documentation
  • 48. RACKSPACE® HOSTING | WWW.RACKSPACE.COM SDKs 48
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Code 50
  • 51. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Code 51 j.mp/jcldstrain
  • 52. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Cloud Accounts 52
  • 53. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Rackspace •Username •API Key •(Password is useable too) 53
  • 54. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Terminology 54
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Getting Started 56
  • 57. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Getting Started •developer.rackspace.com •Java •Getting Started with jclouds •Get jclouds •Review JARs 57
  • 58. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 58
  • 59. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 59 Cloud Files
  • 60. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 60 Cloud Servers
  • 61. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 61 Logging
  • 62. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 62 Authentication
  • 63. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 63 ?
  • 64. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Examples 64 Cross-Cloud j.mp/jcldsglue2013
  • 65. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 65
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Bug Reports, Troubleshooting, and Help 67
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Troubleshooting •Download the version •Run the code •Compare the wire and header logs 69
  • 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Troubleshooting •Debug the source code •mvn dependency:copy-dependencies "-DoutputDirectory=./lib" "-Dclassifier=sources” 71
  • 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. 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. 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Potpourri 75
  • 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. 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. RACKSPACE® HOSTING | WWW.RACKSPACE.COM Potpourri •Command Line Interface •Jenkins Plugin •jclouds-chef •Who Uses jclouds? •CloudBees •Cloudify •EnterpriseDB •Pallet •... 78
  • 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. Thank You Everett Toews Developer Advocate @everett_toews And don’t forget to terminate your VMs developer.rackspace.com j.mp/jcldstrain