Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Last active December 21, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grkvlt/6369703 to your computer and use it in GitHub Desktop.
Save grkvlt/6369703 to your computer and use it in GitHub Desktop.
Brooklyn Integration Testing Results for 0.6.0

Brooklyn-Master-Integration

brooklyn.util.task.system.SystemTasksTest.testSubshellExitScriptDoesNotExit

http://brooklyn.builds.cloudsoftcorp.com/job/Brooklyn-Master-Integration/io.brooklyn$brooklyn-core/56/testReport/brooklyn.util.task.system/SystemTasksTest/testSubshellExitScriptDoesNotExit/

2013-08-28 18:15:29,880 INFO  TESTNG INVOKING: "Command line test" - brooklyn.util.task.system.SystemTasksTest.testSubshellExitScriptDoesNotExit()
2013-08-28 18:15:30,252 WARN  SSH task ended with exit code 1 when non-zero was not explicitly allowed (error may be thrown in future), in Task[ssh: echo hello ; ( exit 1 ) ; echo bye code $? [Stream[stdin/38b], Stream[stdout/6b], Stream[stderr/0b]]; FATgwEzz]: echo hello ; ( exit 1 ) ; echo bye code $?
2013-08-28 18:15:30,254 INFO  TESTNG FAILED: "Command line test" - brooklyn.util.task.system.SystemTasksTest.testSubshellExitScriptDoesNotExit() finished in 373 ms
java.lang.AssertionError: expected [0] but found [1]
  at brooklyn.util.task.system.SystemTasksTest.checkSubshellExitDoesNotExit(SystemTasksTest.java:92)
	at brooklyn.util.task.system.SystemTasksTest.testSubshellExitScriptDoesNotExit(SystemTasksTest.java:77)

brooklyn.entity.rebind.RebindSshMachineLocationTest.testMachineUsableAfterRebind

http://brooklyn.builds.cloudsoftcorp.com/job/Brooklyn-Master-Integration/io.brooklyn$brooklyn-core/56/testReport/brooklyn.entity.rebind/RebindSshMachineLocationTest/testMachineUsableAfterRebind/

2013-08-28 17:40:17,530 INFO  TESTNG INVOKING: "Command line test" - brooklyn.entity.rebind.RebindSshMachineLocationTest.testMachineUsableAfterRebind()
2013-08-28 17:40:17,534 WARN  Deprecated use of unmanaged location (SshMachineLocation[localhost:localhost/127.0.0.1]); will be managed automatically now but not supported in future versions
2013-08-28 17:40:17,536 INFO  Starting entity Application[thYi9kH0] at [SshMachineLocation[localhost:localhost/127.0.0.1]]
2013-08-28 17:40:17,539 INFO  Started application Application[thYi9kH0]
2013-08-28 17:40:18,592 INFO  Rebinding app, using directory /tmp/1377711617497-0
2013-08-28 17:40:18,603 INFO  Memento-persister will use directory /tmp/1377711617497-0
2013-08-28 17:40:18,612 INFO  Loading memento from /tmp/1377711617497-0; 1 entities, 1 locations, 0 policies
2013-08-28 17:40:18,648 INFO  RebindManager instantiating locations: [e3YK26wq]
2013-08-28 17:40:18,652 WARN  Deprecated use of old-style location construction for brooklyn.location.basic.SshMachineLocation; instead use LocationManager().createLocation(spec)
2013-08-28 17:40:18,663 INFO  RebindManager instantiating entities: [thYi9kH0]
2013-08-28 17:40:18,675 INFO  RebindManager instantiating policies: []
2013-08-28 17:40:18,676 INFO  RebindManager reconstructing locations
2013-08-28 17:40:18,680 INFO  RebindManager reconstructing policies
2013-08-28 17:40:18,680 INFO  RebindManager reconstructing entities
2013-08-28 17:40:18,681 INFO  RebindManager managing locations
2013-08-28 17:40:18,683 INFO  RebindManager managing entities
2013-08-28 17:40:18,685 INFO  RebindManager complete; return apps: [thYi9kH0]
2013-08-28 17:40:23,677 INFO  TESTNG FAILED: "Command line test" - brooklyn.entity.rebind.RebindSshMachineLocationTest.testMachineUsableAfterRebind() finished in 6140 ms
java.lang.IllegalStateException: Cannot establish ssh connection to jenkins @ SshMachineLocation[localhost:localhost/127.0.0.1]. 
Ensure that passwordless and passphraseless ssh access is enabled using standard keys from ~/.ssh or as configured in brooklyn.properties. Check that the target host is accessible, that credentials are correct (location and permissions if using a key), that the SFTP subsystem is available on the remote side, and that there is sufficient random noise in /dev/random on both ends. To debug less common causes, see the original error in the trace or log, and/or enable 'net.schmizz' (sshj) logging.
  at brooklyn.location.basic.SshMachineLocation.connectSsh(SshMachineLocation.java:347)
	at brooklyn.location.basic.SshMachineLocation$2.get(SshMachineLocation.java:175)
	at brooklyn.location.basic.SshMachineLocation$2.get(SshMachineLocation.java:1)
	at brooklyn.util.pool.BasicPool.leaseObject(BasicPool.java:117)
	at brooklyn.util.pool.BasicPool.exec(BasicPool.java:126)
	at brooklyn.location.basic.SshMachineLocation.execSsh(SshMachineLocation.java:283)
	at brooklyn.location.basic.SshMachineLocation$7.execWithTool(SshMachineLocation.java:444)
	at brooklyn.util.task.system.internal.ExecWithLoggingHelpers.execWithLogging(ExecWithLoggingHelpers.java:108)
	at brooklyn.util.task.system.internal.ExecWithLoggingHelpers.execScript(ExecWithLoggingHelpers.java:48)
	at brooklyn.location.basic.SshMachineLocation.execScript(SshMachineLocation.java:437)
	at brooklyn.location.basic.SshMachineLocation.execScript(SshMachineLocation.java:431)
	at brooklyn.entity.rebind.RebindSshMachineLocationTest.testMachineUsableAfterRebind(RebindSshMachineLocationTest.java:57)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:189)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:105)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:117)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:158)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
Caused by: brooklyn.util.internal.ssh.SshException: (null@localhost:22) failed to connect:(null@localhost:22) (null@localhost:22) error acquiring {hostAndPort=localhost:22, user=null, ssh=250071329, password=xxxxxx, privateKeyFile=null, privateKey=xxxxxx, connectTimeout=0, sessionTimeout=0} (attempt 4/4, in time 4.97s/2m); out of retries:null
	at brooklyn.util.internal.ssh.SshAbstractTool.propagate(SshAbstractTool.java:148)
	at brooklyn.util.internal.ssh.sshj.SshjTool.connect(SshjTool.java:172)
	at brooklyn.location.basic.SshMachineLocation.connectSsh(SshMachineLocation.java:339)
	... 45 more
Caused by: brooklyn.util.internal.ssh.SshException: (null@localhost:22) (null@localhost:22) error acquiring {hostAndPort=localhost:22, user=null, ssh=250071329, password=xxxxxx, privateKeyFile=null, privateKey=xxxxxx, connectTimeout=0, sessionTimeout=0} (attempt 4/4, in time 4.97s/2m); out of retries:null
	at brooklyn.util.internal.ssh.SshAbstractTool.propagate(SshAbstractTool.java:148)
	at brooklyn.util.internal.ssh.sshj.SshjTool.acquire(SshjTool.java:368)
	at brooklyn.util.internal.ssh.sshj.SshjTool.connect(SshjTool.java:169)
	... 46 more
Caused by: java.lang.NullPointerException
	at net.schmizz.sshj.common.Buffer.putString(Buffer.java:421)
	at net.schmizz.sshj.userauth.method.AbstractAuthMethod.buildReq(AbstractAuthMethod.java:77)
	at net.schmizz.sshj.userauth.method.AuthPublickey.buildReq(AuthPublickey.java:62)
	at net.schmizz.sshj.userauth.method.AuthPublickey.buildReq(AuthPublickey.java:81)
	at net.schmizz.sshj.userauth.method.AbstractAuthMethod.request(AbstractAuthMethod.java:63)
	at net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:92)
	at net.schmizz.sshj.SSHClient.auth(SSHClient.java:205)
	at net.schmizz.sshj.SSHClient.authPublickey(SSHClient.java:305)
	at net.schmizz.sshj.SSHClient.authPublickey(SSHClient.java:353)
	at net.schmizz.sshj.SSHClient.authPublickey(SSHClient.java:283)
	at brooklyn.util.internal.ssh.sshj.SshjClientConnection.create(SshjClientConnection.java:183)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment