You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by Gowri LN <go...@gmail.com> on 2015/05/28 09:15:18 UTC

Unable to launch windows instance using Apache Brooklyn

Hi,

I am trying to launch windows instance using apache brooklyn but I am
facing the follow error :



Failure running task invoking start[locations] on 1 node (bZe96dnU): Error
> invoking start at EmptySoftwareProcessImpl{id=XqL5g1VE}:
> org.jclouds.compute.RunNodesException: error running 1 node
> group(brooklyn-sa07-ubuntu-simple-vmwin5-nqwm-vm-xql5) location(us-west-1)
> image(ami-6502e021) size(c1.medium) options({scriptPresent=true,
> userMetadata={Name=brooklyn-sa07-ubuntu-simple-vmwin5-nqwm-vm-xql5-hwjB},
> userDataCksum=2f4a740b}) Execution failures: 0 error[s] Node failures: 1)
> NoSuchElementException on node us-west-1/i-b8269773:
> java.util.NoSuchElementException: *could not connect to any ip address
> port 22 on node* {id=us-west-1/i-b8269773, providerId=i-b8269773,
> location={scope=ZONE, id=us-west-1b, description=us-west-1b,
> parent=us-west-1, iso3166Codes=[US-CA]},
> group=brooklyn-sa07-ubuntu-simple-vmwin5-nqwm-vm-xql5,
> imageId=us-west-1/ami-6502e021, os={family=windows, arch=hvm, version=,
> description=amazon/Windows_Server-2012-R2_RTM-English-64Bit-Base-2015.04.15,
> is64Bit=true}, status=RUNNING[running], loginPort=22,
> hostname=ip-........., privateAddresses=[....], publicAddresses=[....],
> hardware={id=c1.medium, providerId=c1.medium, processors=[{cores=2.0,
> speed=2.5}], ram=1740, volumes=[{type=LOCAL, size=340.0, device=/dev/sda2,
> bootDevice=false, durable=false}, {id=vol-505b8bb5, type=SAN,
> device=/dev/sda1, bootDevice=true, durable=true}], hypervisor=xen,
> supportsImage=Predicates.and(Predicates.alwaysTrue(),Predicates.or(isWindows(),requiresVirtualizationType(paravirtual)),Predicates.alwaysTrue(),Predicates.alwaysTrue())},
> loginUser=Administrator} at
> org.jclouds.compute.util.ConcurrentOpenSocketFinder.findOpenSocketOnNode(ConcurrentOpenSocketFinder.java:107)
> at
> org.jclouds.compute.functions.CreateSshClientOncePortIsListeningOnNode.apply(CreateSshClientOncePortIsListeningOnNode.java:66)
> at
> org.jclouds.compute.functions.CreateSshClientOncePortIsListeningOnNode.apply(CreateSshClientOncePortIsListeningOnNode.java:40)
> at
> org.jclouds.compute.callables.SudoAwareInitManager.init(SudoAwareInitManager.java:67)
> at
> org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh.init(RunScriptOnNodeAsInitScriptUsingSsh.java:64)
> at
> org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.init(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:77)
> at
> org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.init(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:38)
> at
> org.jclouds.compute.strategy.InitializeRunScriptOnNodeOrPlaceInBadMap.call(InitializeRunScriptOnNodeOrPlaceInBadMap.java:61)
> at
> org.jclouds.compute.strategy.InitializeRunScriptOnNodeOrPlaceInBadMap.call(InitializeRunScriptOnNodeOrPlaceInBadMap.java:34)
> at
> org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:119)
> at
> org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:49)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:745) 1 error[s]



An windows instance gets created in AWS initially but terminates after
sometime as the entity status changes to ON_FIRE.

I also tried to specify image id directly through the blueprint but I am
still getting the same error

Blueprints used :


Blueprint 1:

name: simple-vm
location:
 jclouds:aws-ec2:
  region: us-west-1
  identity: ...............
  credential: ............................
services:
- type: brooklyn.entity.basic.EmptySoftwareProcess
  name: VM
  provisioning.properties:
   osFamily: windows
   minRam: 10mb
   minCores: 2
   minDisk: 10
   extraSshPublicKeyUrls:
   - https://path/to/public/key

Blueprint 2 :

name: simple-vmwin5
location:
 jclouds:aws-ec2:
  region: us-west-1
  identity: ...
  credential: ..
services:
- type: brooklyn.entity.basic.EmptySoftwareProcess
  name: VM
  provisioning.properties:
   osFamily: windows
   minRam: 10mb
   minCores: 2
   minDisk: 10
   imageId: us-west-1/ami-6502e021
   extraSshPublicKeyUrls:
   - https://path/to/public/key

 Can anyone help me with this ?

Thanks,
Gowri