[Swift-devel] ssh test case on pads/beagle
Michael Wilde
wilde at mcs.anl.gov
Tue Aug 9 13:58:20 CDT 2011
Alberto, I suspect that the problem is that your SSH key is of a form that's not compatible with the Java SSH library that Swift is using, based on this message:
Caused by: com.sshtools.j2ssh.transport.publickey.InvalidSshKeyException: Can't read key due to cryptography problems: java.security.NoSuchAlgorithmException: Unsupported passphrase algorithm: AES-128-CBC
Can you try again with a new key, generated on Linux, using say RSA encryption? Try using one of the recipes for generating ssh keys that are posted on the MCS or CI web sites.
- Mike
----- Original Message -----
From: "Alberto Chavez" <alberto_chavez at live.com>
To: "Swift Devel" <swift-devel at ci.uchicago.edu>
Sent: Tuesday, August 9, 2011 1:43:59 PM
Subject: [Swift-devel] ssh test case on pads/beagle
Hello,
I am trying to run a simpler case than ssh-pbs-coaster test case, and I'm still having the same error.
Now I am running only ssh test case (/tests/providers/ssh/001-catsn-ssn.swift)
The command line is:
swift -config cf -tc.file tc.template.data -sites.file sites.template.xml 001-catsn-ssh.swift
The output:
Swift svn swift-r4861 (swift modified locally) cog-r3183
RunID: 20110809-1336-ohte788a
Progress: time: Tue, 09 Aug 2011 13:36:42 -0500
Exception in cat:
Arguments: [data.txt]
Host: ssh
Directory: 001-catsn-ssh-20110809-1336-ohte788a/jobs/m/cat-mq74h7ek
- - -
Caused by: null
Caused by: org.globus.cog.abstraction.impl.common.task.InvalidSecurityContextException: Invalid private key or passphrase
Caused by: com.sshtools.j2ssh.transport.publickey.InvalidSshKeyException: Can't read key due to cryptography problems: java.security.NoSuchAlgorithmException: Unsupported passphrase algorithm: AES-128-CBC
Progress: time: Tue, 09 Aug 2011 13:36:43 -0500 Selecting site:8 Submitting:1 Failed:1
Exception in cat:
Arguments: [data.txt]
Host: ssh
Directory: 001-catsn-ssh-20110809-1336-ohte788a/jobs/n/cat-nq74h7ek
- - -
Caused by: null
Caused by: org.globus.cog.abstraction.impl.common.task.InvalidSecurityContextException: Invalid private key or passphrase
Caused by: com.sshtools.j2ssh.transport.publickey.InvalidSshKeyException: Can't read key due to cryptography problems: java.security.NoSuchAlgorithmException: Unsupported passphrase algorithm: AES-128-CBC
Progress: time: Tue, 09 Aug 2011 13:36:44 -0500 Selecting site:7 Submitting:1 Failed:2
Exception in cat:
Arguments: [data.txt]
Host: ssh
Directory: 001-catsn-ssh-20110809-1336-ohte788a/jobs/o/cat-oq74h7ek
- - -
Caused by: null
Caused by: org.globus.cog.abstraction.impl.common.task.InvalidSecurityContextException: Invalid private key or passphrase
Caused by: com.sshtools.j2ssh.transport.publickey.InvalidSshKeyException: Can't read key due to cryptography problems: java.security.NoSuchAlgorithmException: Unsupported passphrase algorithm: AES-128-CBC
"error_log.log" 105L, 5770C
My auth.defaults reads:
login1.beagle.ci.uchicago.edu.type=key
login1.beagle.ci.uchicago.edu.username=achavez
login1.beagle.ci.uchicago.edu.key=/home/Alberto/.ssh/identity
login1.pads.ci.uchicago.edu.type=key
login1.pads.ci.uchicago.edu.username=achavez
login1.pads.ci.uchicago.edu.key=/home/Alberto/.ssh/identity
and it has been set to 600, I ommited the passphrase line, but it is there, and the passphrase is right because I just verified it in two ways:
1) by logging to pads and beagle without providing a password
2) "changed" the password. I the "new" password is the same as the "old" one.
sites.templates.xml:
<config>
<pool handle="ssh">
<execution provider="ssh" url="login1.pads.ci.uchicago.edu" jobmanager="ssh"/>
<filesystem provider="ssh" url="login1.pads.ci.uchicago.edu" />
<profile key="jobThrottle" namespace="karajan">0</profile>
<workdirectory>/home/achavez/swiftwork</workdirectory>
</pool>
</config>
config file:
wrapperlog.always.transfer=true
sitedir.keep=true
execution.retries=0
lazy.errors=true
status.mode=provider
use.provider.staging=true
provider.staging.pin.swiftfiles=false
foreach.max.threads=10
provenance.log=true
I also tried a simpler SwiftScript:
type filemsg;
app (filemsg output) hello(string s)
{
echo s stdout=@filename(output);
}
filemsg myfile<"dogcatdinosaur.out">;
myfile = hello("dog,cat,dinosaur");
and I get the following output:
Swift svn swift-r4861 (swift modified locally) cog-r3183
RunID: 20110809-1343-2es2hel2
Progress: time: Tue, 09 Aug 2011 13:43:25 -0500
Exception in echo:
Arguments: [dog,cat,dinosaur]
Host: ssh
Directory: hello_swift-20110809-1343-2es2hel2/jobs/0/echo-0oldh7ek
- - -
Caused by: null
Caused by: org.globus.cog.abstraction.impl.common.task.InvalidSecurityContextException: Invalid private key or passphrase
Caused by: com.sshtools.j2ssh.transport.publickey.InvalidSshKeyException: Can't read key due to cryptography problems: java.security.NoSuchAlgorithmException: Unsupported passphrase algorithm: AES-128-CBC
Final status: time: Tue, 09 Aug 2011 13:43:26 -0500 Failed:1
The following errors have occurred:
1. Can't read key due to cryptography problems: java.security.NoSuchAlgorithmException: Unsupported passphrase algorithm: AES-128-CBC
any thoughts on this?
_______________________________________________
Swift-devel mailing list
Swift-devel at ci.uchicago.edu
https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel
--
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20110809/f24aaeda/attachment.html>
More information about the Swift-devel
mailing list