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

Aurora beta-update status command is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • Client
    • None
    • Twitter Aurora Q1'15 Sprint 2

    Description

      $ aurora beta-update status devcluster/www-data/prod/hello
      Command failure:
      Fatal error running command:
      Traceback (most recent call last):
        File "/usr/local/bin/aurora/apache/aurora/client/cli/__init__.py", line 312, in _execute
          result = noun.execute(context)
        File "/usr/local/bin/aurora/apache/aurora/client/cli/__init__.py", line 390, in execute
          return self.verbs[context.options.verb].execute(context)
        File "apache/aurora/client/cli/update.py", line 253, in execute
          context.log_response_and_raise(response)
        File "/usr/local/bin/aurora/apache/aurora/client/cli/context.py", line 135, in log_response_and_raise
          self.print_err("\t%s" % combine_messages(resp))
        File "/usr/local/bin/aurora/apache/aurora/client/base.py", line 50, in combine_messages
          return ', '.join([d.message for d in (response.details or [])])
      TypeError: sequence item 0: expected string, NoneType found
      

      The above happens due to this line [1] that attempts to match AuroraJobKey against thrift JobKey and results in a subsequent RPC call [2] failing with NPE.

      [1] - https://github.com/apache/incubator-aurora/blob/master/src/main/python/apache/aurora/client/cli/update.py#L243
      [2] - https://github.com/apache/incubator-aurora/blob/master/src/main/python/apache/aurora/client/cli/update.py#L252

      Attachments

        Activity

          People

            maximk Maxim Khutornenko
            maximk Maxim Khutornenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: