Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-706

Client "task ssh" command fails badly when job not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.6.0
    • Client
    • None

    Description

      In clientv2:

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

      Worse, in clientv1, this produces a stack dump.

      $ 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
      
      

      Attachments

        Activity

          People

            mchucarroll Mark Chu-Carroll
            mchucarroll Mark Chu-Carroll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: