You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Kasper Grud Skat Madsen <ka...@gmail.com> on 2014/04/22 10:57:40 UTC

JClouds 1.7.0 and CloudStack 4.2.1

Dear everyone
I am trying to use JClouds 1.7.0 to deploy on CloudStack 4.2.1. My problem
is that the NodeMetadata object returned when launching an instance,
doesn't contain the metadata I provide at launchtime.

Here is the code, I use to launch...

new TemplateOptions()
   .inboundPorts(Tools.getPortsToOpen())
   .userMetadata("daemons", _daemons.toString())
   .runScript(new StatementList(_initScript))
   .overrideLoginCredentials(Tools.getPrivateKeyCredentials(_username))

.authorizePublicKey(Tools.getPublicKey())).build()

Here is what is returned in the NodeMetadata object...

2014-04-22 11:45:42 [INFO] {id=45c2afc4-cef9-4eb8-8fc3-1a2173865e42,
providerId=45c2afc4-cef9-4eb8-8fc3-1a2173865e42, name=cloudstacktest-ffc,
location={scope=ZONE, id=49308768-eabe-4f6f-b4db-c6fd7e6c0844,
description=ZoneOne, parent=cloudstack}, group=cloudstacktest,
status=RUNNING, loginPort=22, hostname=cloudstacktest-ffc,
privateAddresses=[192.168.10.155],
hardware={id=4a6fdeae-ef25-4ef3-92af-3871a5ab1798,
providerId=4a6fdeae-ef25-4ef3-92af-3871a5ab1798, name=1/2,
processors=[{cores=4.0, speed=2600.0}], ram=10000, hypervisor=KVM,
supportsImage=ALWAYS_TRUE}, loginUser=cloud}


Shouldn't the NodeMetadata object also contain the metadata? ... I use the
same code to deploy on Amazon EC2, and there it will contain the
NodeMetadata.


Best,
Kasper Madsen

Re: JClouds 1.7.0 and CloudStack 4.2.1

Posted by Andrew Phillips <an...@apache.org>.
> Shouldn't the NodeMetadata object also contain the metadata? ... I use the
> same code to deploy on Amazon EC2, and there it will contain the
> NodeMetadata.

According to the live test [1] - always a good place to look for  
jclouds functionality - CloudStack doesn't support metadata. At least,  
it probably didn't in the version that the jclouds API was written  
for? If that has changed since then, it looks like an item that we  
should address as part of

http://markmail.org/thread/hqecnzfanmfcmy7f

ap

[1]  
https://github.com/jclouds/jclouds/blob/master/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/CloudStackComputeServiceLiveTest.java#L44