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