You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Andersen Max <ma...@redhat.com> on 2010/09/14 12:20:50 UTC
Eclipse tooling for Delta Cloud
Hi,
For some reason my initial post about this did not seem to go through so i'm trying again from my official box ;)
We released milestone 2 of JBoss Tools last week which includes our first initial steps on providing Eclipse based
access to Delta Cloud.
Main release blog at http://community.jboss.org/en/jbosstools/blog/2010/09/09/jboss-tools-320m2-big-mama
Screenshots/quick explanation about Delta Cloud functionality here: http://docs.jboss.org/tools/whatsnew/deltacloud/deltacloud-news-0.0.1.M2.html
Let us know what you think and as always we are very open for for feedback/contributions.
p.s. big kudos for Jeff J. to make this happen at the same time as the deltacloud API kept changing ;)
/max
Re: Eclipse tooling for Delta Cloud
Posted by ma...@redhat.com.
>>>
>>>
>>
>>
>>
>>
>>>
>>
>>
>>>
>>
>>
> I brought in some jar files for external packages that are needed. I don't know whether this is ok in the long run for JBoss. Things include log4j and httpclient.
Yes that's something I would like to eliminate as dependencies since java 6 got it's own decent httpclient afaik and using log4j is not really needed for such a little library and from within eclipse it doesn't end up anywhere anyway.
>
>> I know there are some issues with that library in context of osgi/eclipse environments so we might
>> have some changes for that going forward.
>>
>> /max
>
> -- Jeff J.
Re: Eclipse tooling for Delta Cloud
Posted by Jeff Johnston <jj...@redhat.com>.
On 09/15/2010 08:09 AM, Andersen Max wrote:
>>> Let us know what you think and as always we are very open for for
>>> feedback/contributions.
>>
>> Do you bundle the deltacloud server within Eclipse ? Since there aren't
>> any public instances (that I know of), users will have to run their own.
>>
>
> For now we assume users connect to an external deltacloud running locally or remotely.
>
> from what I understand deltacloud today requires native components thus I didn't
> even consider bundling it because of the many environments we would have to test/verify it in.
>
> If deltacloud could run in a pure JRuby setup it might be worth considering...but for
> now its external.
>
> Another idea would be if something like jcloud would provide a deltacloud api implementation;
> that would probably fit better/easier into a portable java setup. WDYT?
>
>>> p.s. big kudos for Jeff J. to make this happen at the same time as the
>>> deltacloud API kept changing ;)
>>
>> Ugh .. sorry about that. Which parts of the API exactly are you using ?
>> From the screenshots, it looks like you're definitely using images,
>> instances and keypairs; anything else ?
>
> I'll let Jeff answer that ;)
>
That's essentially it.
>>
>> And what would you like to see added to the API to make your life easier
>> and the Eclipse integration more powerful ? What are you using as the
>> client library in Java, or are you doing straightup REST in your code ?
>
The key name is a bit of a pain. When I fetch instances, everything is
there but not the key name. When I query a single instance, it is
there. The problem is when the user asks for a refresh. This gets all
the instances and wipes out the key names which means I have to keep
track of this all the time. It would easier just to unmarshall the key
data each time.
> I believe Jeff took the existing Java client library and "mutated" it to be compatible with the recent changes.
>
Yes, I took an early version of the Java client code developed by Martyn
Taylor and made fixes to match various API changes. I tried switching
to a newer version that Martyn had provided, but it broke a bunch of
things so I just opted to continue my hacking. I intend to eventually
try Martyn's code again and work with any issues.
I brought in some jar files for external packages that are needed. I
don't know whether this is ok in the long run for JBoss. Things include
log4j and httpclient.
> I know there are some issues with that library in context of osgi/eclipse environments so we might
> have some changes for that going forward.
>
> /max
-- Jeff J.
Re: Eclipse tooling for Delta Cloud
Posted by Benjamin Browning <bb...@redhat.com>.
On Sep 15, 2010, at 8:09 AM, Andersen Max wrote:
>>
>> Do you bundle the deltacloud server within Eclipse ? Since there aren't
>> any public instances (that I know of), users will have to run their own.
>>
>
> For now we assume users connect to an external deltacloud running locally or remotely.
>
> from what I understand deltacloud today requires native components thus I didn't
> even consider bundling it because of the many environments we would have to test/verify it in.
>
> If deltacloud could run in a pure JRuby setup it might be worth considering...but for
> now its external.
We're running deltacloud in a pure JRuby environment with the SteamCannon project. All the necessary patches to deltacloud-core have been checked in but I don't believe a release of the deltacloud-core-java gem has happened yet.
There are also some ouststanding patches that have been submitted but not checked in to get deltacloud-client running under JRuby. However, since you mention using the Java client you probably don't need this.
Ben
Re: Eclipse tooling for Delta Cloud
Posted by Andersen Max <ma...@redhat.com>.
>> I know there are some issues with that library in context of
>> osgi/eclipse environments so we might
>> have some changes for that going forward.
>
> Sounds good. Would these issues also exist for jclouds ?
I haven't tried jclouds enough to know.
The problems with the java library is mostly the httpclient and log4j dependencies
which is "annoying"/unnecessary IMO on Java 6 and within Eclipse.
/max
Re: Eclipse tooling for Delta Cloud
Posted by David Lutterkort <lu...@redhat.com>.
On Wed, 2010-09-15 at 14:09 +0200, Andersen Max wrote:
> >> Let us know what you think and as always we are very open for for
> >> feedback/contributions.
> >
> > Do you bundle the deltacloud server within Eclipse ? Since there aren't
> > any public instances (that I know of), users will have to run their own.
> >
>
> For now we assume users connect to an external deltacloud running locally or remotely.
>
> from what I understand deltacloud today requires native components thus I didn't
> even consider bundling it because of the many environments we would have to test/verify it in.
Yes, when you run it under thin, there's native code involved; the
Deltacloud code itself is pure Ruby.
> If deltacloud could run in a pure JRuby setup it might be worth considering...but for
> now its external.
Benjamin Browning actually got it to work with TorqueBox IIRC.
> Another idea would be if something like jcloud would provide a deltacloud api implementation;
> that would probably fit better/easier into a portable java setup. WDYT?
That won't address the issue of needing a server somewhere - probably a
good idea though as a general-purpose client.
> >
> > And what would you like to see added to the API to make your life easier
> > and the Eclipse integration more powerful ? What are you using as the
> > client library in Java, or are you doing straightup REST in your code ?
>
> I believe Jeff took the existing Java client library and "mutated" it
> to be compatible with the recent changes.
Cool .. have you sent them upstream ? I assume you're talking about
mtaylor's Java library
(http://github.com/mtaylor/deltacloud-tools/tree/master)
> I know there are some issues with that library in context of
> osgi/eclipse environments so we might
> have some changes for that going forward.
Sounds good. Would these issues also exist for jclouds ?
David
Re: Eclipse tooling for Delta Cloud
Posted by Andersen Max <ma...@redhat.com>.
>> Let us know what you think and as always we are very open for for
>> feedback/contributions.
>
> Do you bundle the deltacloud server within Eclipse ? Since there aren't
> any public instances (that I know of), users will have to run their own.
>
For now we assume users connect to an external deltacloud running locally or remotely.
from what I understand deltacloud today requires native components thus I didn't
even consider bundling it because of the many environments we would have to test/verify it in.
If deltacloud could run in a pure JRuby setup it might be worth considering...but for
now its external.
Another idea would be if something like jcloud would provide a deltacloud api implementation;
that would probably fit better/easier into a portable java setup. WDYT?
>> p.s. big kudos for Jeff J. to make this happen at the same time as the
>> deltacloud API kept changing ;)
>
> Ugh .. sorry about that. Which parts of the API exactly are you using ?
> From the screenshots, it looks like you're definitely using images,
> instances and keypairs; anything else ?
I'll let Jeff answer that ;)
>
> And what would you like to see added to the API to make your life easier
> and the Eclipse integration more powerful ? What are you using as the
> client library in Java, or are you doing straightup REST in your code ?
I believe Jeff took the existing Java client library and "mutated" it to be compatible with the recent changes.
I know there are some issues with that library in context of osgi/eclipse environments so we might
have some changes for that going forward.
/max
Re: Eclipse tooling for Delta Cloud
Posted by David Lutterkort <lu...@redhat.com>.
On Tue, 2010-09-14 at 12:20 +0200, Andersen Max wrote:
> We released milestone 2 of JBoss Tools last week which includes our
> first initial steps on providing Eclipse based
> access to Delta Cloud.
This is reat news ! Thanks so much for sharing.
> Main release blog at
> http://community.jboss.org/en/jbosstools/blog/2010/09/09/jboss-tools-320m2-big-mama
>
> Screenshots/quick explanation about Delta Cloud functionality here:
> http://docs.jboss.org/tools/whatsnew/deltacloud/deltacloud-news-0.0.1.M2.html
This looks very nice.
> Let us know what you think and as always we are very open for for
> feedback/contributions.
Do you bundle the deltacloud server within Eclipse ? Since there aren't
any public instances (that I know of), users will have to run their own.
> p.s. big kudos for Jeff J. to make this happen at the same time as the
> deltacloud API kept changing ;)
Ugh .. sorry about that. Which parts of the API exactly are you using ?
>From the screenshots, it looks like you're definitely using images,
instances and keypairs; anything else ?
And what would you like to see added to the API to make your life easier
and the Eclipse integration more powerful ? What are you using as the
client library in Java, or are you doing straightup REST in your code ?
David