Mark Chu-Carroll created AURORA-706:
---------------------------------------

             Summary: Client "task ssh" command fails badly when job not found
                 Key: AURORA-706
                 URL: https://issues.apache.org/jira/browse/AURORA-706
             Project: Aurora
          Issue Type: Bug
          Components: Client
            Reporter: Mark Chu-Carroll
            Assignee: Mark Chu-Carroll


In clientv2:
{noformat}
$ aurora task ssh cluster/role/prod/job/0 --command "echo ..."
log(ERROR): Internal error executing command: list index out of range
$ 
{noformat}

Worse, in clientv1, this produces a stack dump.

{noformat}
$ aurora ssh cluster/role/prod/job 0 'echo ...'
 INFO] Response from scheduler: OK (message: None)
Traceback (most recent call last):
  File "/usr/libexec/aurora-client/twitter/common/app/application.py", line 
738, in _wrap_method
    return_code = method()
  File "/usr/libexec/aurora-client/twitter/common/app/application.py", line 
760, in <lambda>
    main = lambda: main_method(*args, **kwargs)
  File 
"/usr/libexec/aurora-client/.deps/apache.aurora.clientv2-0.5.1_DEV1406838503-py2.6.egg/apache/aurora/client/commands/ssh.py",
 line 54, in ssh
    first_task = resp.result.scheduleStatusResult.tasks[0]
IndexError: list index out of range{noformat}
{noformat}




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

Reply via email to