Hi Radek,

Yes that's right - the labs:vcloud-director still requires a ComputeService implementation unfortunately. It does have all of the domain model represented, allowing all the rest api calls + responses to be accessed through java.

Aled


On 05/09/2013 16:37, Radek Skokan wrote:
I'm just trying the "vcloud-director" from jclouds-labs but failing getting the ComputeService. I am trying it the way it works for OpenStack from via the main jclouds lib (plus I also added jclouds-labs to my CP) and

Iterable<Module> modules = ImmutableSet.<Module>of(new SLF4JLoggingModule(), new SshjSshClientModule());

ComputeServiceContext computeContext = ContextBuilder.newBuilder("vcloud-director") .endpoint("https://172.16.2.152/api";) // perhaps needed to use Properties overrides.setProperty("vcloud.endpoint", "https://****/api";);
                .credentials("user1@org1", "Password123")
                .modules(modules)
                .buildView(ComputeServiceContext.class);
        compute = computeContext.getComputeService();

fails with
java.lang.IllegalArgumentException: api {id=vcloud-director, name=vCloud Director 1.5 API, views=[], endpointName=https endpoint, identityName=User at Organization (user@org), credentialName=Optional.of(Password), documentation=http://www.vmware.com/support/pubs/vcd_pubs.html, api=interface org.jclouds.vcloud.director.v1_5.user.VCloudDirectorApi, asyncApi=*interface org.jclouds.vcloud.director.v1_5.user.VCloudDirectorAsyncApi} not wrappable as org.jclouds.compute.ComputeServiceContext*; context: org.jclouds.vcloud.director.v1_5.VCloudDirectorContext, views: []

Is it because the vcloud-director provider is not integrated yet to the ComputeServiceCtx, do I need to access it more directly?

Thanks,
R.


On Wed, Sep 4, 2013 at 10:26 PM, Andrew Phillips <andr...@apache.org <mailto:andr...@apache.org>> wrote:

        If I understand
        
http://jclouds.incubator.apache.org/documentation/userguide/vmware-vcloud/,
         the
        error message is OK as neither 1.5 nor 5.1 vCloud versions are
        supported.


    Could you try the vcloud-director API, which is still in labs?

    https://github.com/jclouds/jclouds-labs/tree/master/vcloud-director
    http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22vcloud-director%22

    That should support 1.5. There are also some threads about 5.1
    work, although that seems to be still ongoing:

    http://apache.markmail.org/thread/wv3fiaqy42lwm52h
    https://groups.google.com/forum/#!msg/jclouds-dev/QaEb9KRoK7o/M8GQJiOr-zwJ
    
<https://groups.google.com/forum/#%21msg/jclouds-dev/QaEb9KRoK7o/M8GQJiOr-zwJ>

    ap



Reply via email to