RSS

Monthly Archives: September 2012

OpenStack and jclouds Releases Within Days of Each Other…Coincidence?

milestoneTwo open source projects that I’m proud to be a part of have just had major releases within days of each other.

There’s OpenStack, which powers the Rackspace open cloud, with its eagerly anticipated Folsom release. This release sees the introduction of the Network Service (Quantum) and Block Storage Service (Cinder) among many other additions and improvements. For an overview of all of the components and projects it’s tough to beat Ken Pepple’s OpenStack Folsom Architecture post. I made it onto the contributor list this time around for fixing a minor bug and it’s an honor to be on that list with so many great developers. To get an idea of the scope of contributions to OpenStack just spend some time Looking at the Numbers.

Then there’s jclouds, the Java cross-cloud toolkit with its release of their 1.5 branch. I’ve made a fair number of contributions to this project by improving the support for OpenStack and Rackspace. During that time I’ve become part of their community and  have seen first hand the passion and commitment they have toward releasing a high quality toolkit. The jclouds user base is growing rapidly and it’s easy for me to see why.

To top it all off I get to present jclouds directly to the OpenStack community in a workshop titled Control the Clouds: Developer Experience with jclouds at the OpenStack Summit in San Diego. The workshop is on Thursday, October 18 at 3:20 pm. We’re going to be writing some writing some Java code to fire up some servers. If you’re attending the Summit, please join us!

Coda

So is it a coincidence that OpenStack and jclouds had major releases with days of each other? Yes, definitely, absolutely it was. But for me it was more like serendipity. These two great projects have truly come into their own and these releases are well deserved milestones on the road ahead.

 
Leave a comment

Posted by on September 28, 2012 in java, jclouds, openstack, rackspace

 

jclouds @ the OpenStack Summit

San Diego

I’m attending the OpenStack Summit from Oct. 15-18 in San Diego. I’ve submitted a session titled Control the Clouds: Developer Experience with jclouds. Sessions are voted in so, if you’re inclined, please vote for my session. You’ll need to do a Find in Page for “jclouds” on the voting page. The deadline for voting is Sept. 13 and here’s a description of the session.

In this session, you will learn how to write code that can control any cloud with jclouds.

Developers tend towards cross-platform solutions. Many popular languages and toolkits can run on many operating systems and devices. HTML and the web browser are the prime example of this trend. The benefits are clear, it gives developers the most bang for their buck when it comes to learning new skills and reaching the widest audience.

The cloud has emerged as the next major platform. So where do developers turn for cross-cloud toolkits?

For Java, the answer is jclouds. jclouds is an open source cross-cloud toolkit that works with both public and private clouds, enabling hybrid cloud workloads. The list of supported clouds includes AWS, Azure, vCloud, HP Cloud, OpenStack, and the Rackspace Open Cloud. There is a great community behind this toolkit working together to provide a better experience for developers in the cloud. Their goal is to simplify the control of many different clouds while still giving you the freedom to use cloud-specific features. The result is a toolkit that allows developers to write better code, in a shorter period of time, that works with any cloud.

In this session, I will demonstrate these qualities of jclouds. If you’re so inclined, you’ll be able to follow along with the demostration and write your own code that works with any cloud (hotel wifi permitting ;)

Prerequisites if you choose to follow along:
* JDK 1.6
* Cloud accounts such as:
trystack.org
hpcloud.com
rackspace.com/cloud/public/

If you’re going to be at the Summit as well and you’d like to meet up, just let me know in the comments!

 
Leave a comment

Posted by on September 8, 2012 in java, jclouds, openstack, rackspace

 

jclouds and OpenStack

OpenStack

Update: Using jclouds 1.5.1

Getting jclouds and your own OpenStack deployment working together can be just a bit tricky as there are a couple of special configurations you need to make.

I’ve described how to get started with jclouds before but the other piece of this puzzle is your own OpenStack deployment. For easy and reliable testing I just run my own devstack install of OpenStack. Setting up devstack has been written about many times elsewhere so the only thing that I’ll say about it here is that I use an Ubuntu 12.04 Server VM running in VirtualBox. The trickiest part of that setup is the networking so I posted my VirtualBox settings on this question on ServerFault. After that it’s just a matter of following the devstack instructions.

Here’s the code for connecting to OpenStack. It’s very similar to the getting started example with a few key differences. In the init() method notice that

  • String provider = "openstack-nova";
    • This ones pretty self explanatory, we’re using the OpenStack Nova provider in jclouds
  • String identity = "demo:demo"; // tenantName:userName
    • Here we use the tenant name and user name with a colon between them instead of just a user name
  • String password = "devstack";
    • Instead of using the API key I’m using the password I set when devstack did its installation
  • .endpoint("http://172.16.0.1:5000/v2.0/")
    • This is the Keystone endpoint that jclouds needs to connect with to get more info (services and endpoints) from OpenStack
    • When the devstack installation completes successfully, one of the last few lines will read something like “Keystone is serving at http://172.16.0.1:5000/v2.0/
    • Set the endpoint to this URL

To get everything compiling and running do the following.

This post was written on Mac OS X 10.7.4, Java 1.6.0, jclouds 1.5.1 1.5.0-beta.10, and OpenStack Essex. If you’re on a different OS and run into problems, please feel free to comment.

 
14 Comments

Posted by on September 4, 2012 in jclouds, openstack

 
 
Follow

Get every new post delivered to your Inbox.