On Fri, Apr 18, 2014 at 3:20 PM, Ignasi Barrera <[email protected]> wrote:

> If you can make your code wait until the node has the ip address you can
> run the script afterwards with the "computeService.runScriptOnNode" method.
>
> Does this work for you?
>
Yes, It worked. Thanks!



> El 18/04/2014 10:51, "Melan Nimesh" <[email protected]> escribió:
>
> Hi,
>>
>> I am getting following error in jclouds-1.7.1. vCloud Director 5.5. I
>> noticed there is a delay in DHCP IP assignment. Any idea how to resolve
>> this ?
>>
>>
>> IllegalStateException on node
>> https://mycloud.stratogen.sg/api/vApp/vapp-425193cf-e1fe-4f76-bac6-bc1fae970dce
>> :
>> java.lang.IllegalStateException: node does not have IP addresses
>> configured: {id=
>> https://mycloud.stratogen.sg/api/vApp/vapp-425193cf-e1fe-4f76-bac6-bc1fae970dce,
>> providerId=
>> https://mycloud.stratogen.sg/api/vApp/vapp-425193cf-e1fe-4f76-bac6-bc1fae970dce,
>> uri=
>> https://mycloud.stratogen.sg/api/vApp/vapp-425193cf-e1fe-4f76-bac6-bc1fae970dce,
>> name=myphpphp-1a2, uri=
>> https://mycloud.stratogen.sg/api/vApp/vapp-425193cf-e1fe-4f76-bac6-bc1fae970dce,
>> location={scope=ZONE, id=
>> https://mycloud.stratogen.sg/api/vdc/fb594881-b50c-4ac9-91c8-f536f9beb03d,
>> description=wso2, parent=
>> https://mycloud.stratogen.sg/api/org/95339bad-7431-4f6c-a0b0-4b323742013c},
>> group=myphpphp, os={family=ubuntu, name=Ubuntu 64-Bit, version=,
>> description=Ubuntu Linux (64-bit), is64Bit=true, osType=UBUNTU_64},
>> status=RUNNING, loginPort=22, hostname=myphpphp-1a2, hardware={id=
>> https://mycloud.stratogen.sg/api/vApp/vapp-425193cf-e1fe-4f76-bac6-bc1fae970dce,
>> providerId=
>> https://mycloud.stratogen.sg/api/vApp/vapp-425193cf-e1fe-4f76-bac6-bc1fae970dce,
>> name=myphpphp-1a2, location={scope=ZONE, id=
>> https://mycloud.stratogen.sg/api/vdc/fb594881-b50c-4ac9-91c8-f536f9beb03d,
>> description=wso2, parent=
>> https://mycloud.stratogen.sg/api/org/95339bad-7431-4f6c-a0b0-4b323742013c},
>> processors=[{cores=1.0, speed=1.0}], ram=1024, volumes=[{id=0, type=LOCAL,
>> size=50.0, bootDevice=true, durable=true}], hypervisor=VMware,
>> supportsImage=idEquals(
>> https://mycloud.stratogen.sg/api/vApp/vapp-425193cf-e1fe-4f76-bac6-bc1fae970dce)},
>> loginUser=root}
>>     at
>> com.google.common.base.Preconditions.checkState(Preconditions.java:150)
>>     at
>> org.jclouds.compute.util.ConcurrentOpenSocketFinder.checkNodeHasIps(ConcurrentOpenSocketFinder.java:180)
>>     at
>> org.jclouds.compute.util.ConcurrentOpenSocketFinder.findOpenSocketOnNode(ConcurrentOpenSocketFinder.java:79)
>>     at
>> org.jclouds.compute.functions.CreateSshClientOncePortIsListeningOnNode.apply(CreateSshClientOncePortIsListeningOnNode.java:70)
>>     at
>> org.jclouds.compute.functions.CreateSshClientOncePortIsListeningOnNode.apply(CreateSshClientOncePortIsListeningOnNode.java:44)
>>     at
>> org.jclouds.compute.callables.SudoAwareInitManager.init(SudoAwareInitManager.java:71)
>>     at
>> org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh.init(RunScriptOnNodeAsInitScriptUsingSsh.java:68)
>>     at
>> org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.init(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:81)
>>     at
>> org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.init(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:42)
>>     at
>> org.jclouds.compute.strategy.InitializeRunScriptOnNodeOrPlaceInBadMap.call(InitializeRunScriptOnNodeOrPlaceInBadMap.java:65)
>>     at
>> org.jclouds.compute.strategy.InitializeRunScriptOnNodeOrPlaceInBadMap.call(InitializeRunScriptOnNodeOrPlaceInBadMap.java:38)
>>     at
>> org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:123)
>>     at
>> org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:146)
>>     at
>> org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:53)
>>     at com.google.common.util.concurrent.Futures$1.apply(Futures.java:711)
>>     at
>> com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:849)
>>     at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>     at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>     at java.lang.Thread.run(Thread.java:744)
>>
>>
>> Thanks,
>> Melan
>>
>


-- 
Melan Nimesh Jayasinghage

Reply via email to