[Swift-devel] ssh data provider

Zhao Zhang zhaozhang at uchicago.edu
Thu Dec 11 18:30:16 CST 2008


Hi, Mihael

If I put .passphrase= there, I got this:
zzhang at login6.surveyor:~/swift/test> swift -sites.file ./sites.xml 
-tc.file ./tc.data first.swift
Swift svn swift-r2334 (Swift modified locally) cog-r2216

RunID: 20081211-1603-qsfmaeif
Progress:
echo started
Sorted: [bgp000:1,000.000(98.545):0/789 overload: 0]
Sorted: [bgp000:999.590(98.544):0/789 overload: 0]
Sorted: [bgp000:999.180(98.544):0/789 overload: 0]
echo failed
Execution failed:
        Could not initialize shared directory on bgp000
Caused by:
        org.globus.cog.abstraction.impl.file.FileResourceException: 
Error while communicating with the SSH server on 172.16.3.6:22
Caused by:
        java.lang.NullPointerException
        at 
org.globus.cog.abstraction.impl.ssh.SSHChannelManager.loadDefaultCredentials(SSHChannelManager.java:160)
        at 
org.globus.cog.abstraction.impl.ssh.SSHChannelManager.getDefaultCredentials(SSHChannelManager.java:120)
        at 
org.globus.cog.abstraction.impl.ssh.SSHChannelManager.getCredentials(SSHChannelManager.java:79)
        at 
org.globus.cog.abstraction.impl.ssh.SSHChannelManager.getChannel(SSHChannelManager.java:62)
        at 
org.globus.cog.abstraction.impl.ssh.file.FileResourceImpl.start(FileResourceImpl.java:81)
        at 
org.globus.cog.abstraction.impl.file.FileResourceCache.getResource(FileResourceCache.java:98)
        at 
org.globus.cog.abstraction.impl.file.CachingDelegatedFileOperationHandler.getResource(CachingDelegatedFileOperationHandler.java:75)
        at 
org.globus.cog.abstraction.impl.file.CachingDelegatedFileOperationHandler.submit(CachingDelegatedFileOperationHandler.java:40)
        at 
org.globus.cog.abstraction.impl.common.task.CachingFileOperationTaskHandler.submit(CachingFileOperationTaskHandler.java:28)
        at 
org.globus.cog.karajan.scheduler.submitQueue.NonBlockingSubmit.run(NonBlockingSubmit.java:86)
        at 
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:431)
        at 
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
        at java.lang.Thread.run(Thread.java:571)

zhao

Mihael Hategan wrote:
> Can you remove the quotes after .passphrase= and try again?
>
> On Thu, 2008-12-11 at 16:14 -0600, Zhao Zhang wrote:
>   
>> Hi, All
>>
>> I am trying to make the ssh data provider working between BG login node 
>> and IO node.
>> In this context, we could ssh from login nodes to IO nodes without a 
>> passphrase.
>>
>> I made a test, it failed:
>> zzhang at login6.surveyor:~/swift/test> swift -sites.file ./sites.xml 
>> -tc.file ./tc.data first.swift
>> Swift svn swift-r2334 (Swift modified locally) cog-r2216
>>
>> RunID: 20081211-1604-6otxvqtb
>> Progress:
>> echo started
>> Sorted: [bgp000:1,000.000(98.545):0/789 overload: 0]
>> Sorted: [bgp000:999.590(98.544):0/789 overload: 0]
>> Sorted: [bgp000:999.180(98.544):0/789 overload: 0]
>> echo failed
>> Execution failed:
>>         Could not initialize shared directory on bgp000
>> Caused by:
>>         org.globus.cog.abstraction.impl.file.FileResourceException: 
>> Error while communicating with the SSH server on 172.16.3.6:22
>> Caused by:
>>         Public Key Authentication failed
>>
>>
>> My sites.xml is like belwo:
>> zzhang at login6.surveyor:~/swift/test> cat sites.xml
>> <?xml version="1.0" encoding="UTF-8"?>
>> <config xmlns="http://www.griphyn.org/chimera/GVDS-PoolConfig"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.5">
>> <pool handle="bgp000">
>>         <filesystem url="172.16.3.6" provider="ssh"/>
>>         <execution provider="deef" 
>> url="http://172.16.3.6:50001/wsrf/services/GenericPortal/core/WS/GPFactoryService"/>
>>         <workdirectory>/tmp</workdirectory>
>>         <profile namespace="karajan" key="jobThrottle">8</profile>
>>         <profile namespace="karajan" key="initialScore">1000</profile>
>> </pool>
>>
>> </config>
>>
>> My auth.defaults is this:
>> zzhang at login6.surveyor:~/swift/test> cat ~/.ssh/auth.defaults
>> 172.16.3.6.type=key
>> 172.16.3.6.username=zzhang
>> 172.16.3.6.key=/home/zzhang/.ssh/id_rsa
>> 172.16.3.6.passphrase=""
>>
>> The log file could be reached at 
>> http://www.ci.uchicago.edu/~zzhang/first-20081211-1604-6otxvqtb.log
>>
>> Thanks.
>>
>> best wishes
>> zhangzhao
>> _______________________________________________
>> Swift-devel mailing list
>> Swift-devel at ci.uchicago.edu
>> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
>>     
>
>
>   



More information about the Swift-devel mailing list