[ 
https://issues.apache.org/jira/browse/SAMZA-512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284150#comment-14284150
 ] 

Yi Pan (Data Infrastructure) commented on SAMZA-512:
----------------------------------------------------

Verified on my Mac:
1) rename ~/.ssh/authorized_keys to something else and re-pro the issue
2) applied the patch and killed all running processes:
    for pid in $(ps auxww | grep samza | awk '{print $2}'); do kill -s 9 
${pid}; done
3) re-run the test and succeeded

+1 on the patch.

> Integration tests don't work with interactive authentication
> ------------------------------------------------------------
>
>                 Key: SAMZA-512
>                 URL: https://issues.apache.org/jira/browse/SAMZA-512
>             Project: Samza
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.9.0
>            Reporter: Chris Riccomini
>            Assignee: Chris Riccomini
>              Labels: newbie
>             Fix For: 0.9.0
>
>         Attachments: SAMZA-512-0.patch
>
>
> Executing Zopkio with my SSH password, and no ~/.ssh/authorized_keys leads to:
> {noformat}
> 2015-01-14 10:03:02,437 zopkio.test_runner [ERROR] Aborting smoke-tests due 
> to setup_suite failure:
> Traceback (most recent call last):
>   File 
> "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/zopkio/test_runner.py",
>  line 107, in run
>     self.deployment_module.setup_suite()
>   File "/tmp/samza-tests/scripts/deployment.py", line 88, in setup_suite
>     'executable': c('samza_executable'),
>   File "/tmp/samza-tests/scripts/samza_job_yarn_deployer.py", line 77, in 
> install
>     with get_ssh_client(host) as ssh:
>   File 
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py",
>  line 17, in __enter__
>     return self.gen.next()
>   File 
> "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/zopkio/remote_host_helper.py",
>  line 200, in get_ssh_client
>     ssh.connect(hostname, username=username, password=password)
>   File 
> "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/paramiko/client.py",
>  line 307, in connect
>     look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
>   File 
> "/tmp/samza-tests/samza-integration-tests/lib/python2.7/site-packages/paramiko/client.py",
>  line 519, in _auth
>     raise saved_exception
> PasswordRequiredException: Private key file is encrypted
> Running the same tests with --nopassword, and authroized_keys containing my 
> public key works.
> {noformat}
> _NOTE: some of my deployment HAS already passed at the point that this 
> failure occurs, so it appears that SFTP and SSH do work, but somehow this 
> specific invocation is causing a problem._
> Solution is listed [here|https://github.com/linkedin/Zopkio/issues/47]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to