> Regarding the Jetty test... Is it possible that the IP addresses that are 
> being added to the node are not reachable?

You were right. It turns out, it was our own network's firewall that blocks my 
machine's request to the remote node's public IP. (This explains as well as to 
why this test passes when I run this at home. *sigh* -.-)

> Failed test: weCanCancelTasks method from 
> testAScriptExecutionAfterBootWithBasicTemplate:262 

To debug this: I logged in to the node before the tests [executes 
scripts](https://github.com/jclouds/jclouds/blob/master/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java#L229).
 After the test [adds a 
user](https://github.com/jclouds/jclouds/blob/master/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java#L253),
 I have confirmed that a user `foo` was added, along with it's home directory 
`/over/ridden/foo`. The test afterwards asserts that the `LoginCredentials` 
should've been 
[changed](https://github.com/jclouds/jclouds/blob/master/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java#L259)
 - which it does; from previously 
> `identity=root,password=<template password from args>`

 to 
> `identity=foo,privateKey=<my machine's private key>`. 

I verified `foo`'s 
[`authorized_keys`](https://github.com/jclouds/jclouds/blob/master/compute/src/test/resources/runscript_adminUpdate.sh#L99)
 in the remote node, and my private key is there. Finally, it fails when the 
`ListenableFuture` is 
[cancelled](https://github.com/jclouds/jclouds/blob/master/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java#L305).

I stopped the test before it 
[destroyed](https://github.com/jclouds/jclouds/blob/master/compute/src/test/java/org/jclouds/compute/internal/BaseComputeServiceLiveTest.java#L271)
 the node, and tried to login to the node with `ssh foo@ip`. It worked.

Now, the weirdest part of this last test, is that, sometimes, it *passes*. **It 
passes**. This usually, but not consistently, happens when I walk through 
line-by-line with the debugger.

Stumped. Thoughts?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/224#issuecomment-165032437

Reply via email to