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

'see log for details' in client output is confusing

    XMLWordPrintableJSON

Details

    • Story
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 0.6.0
    • Client, Usability
    • None

    Description

      This approach is taken in several places in response to a non-successful RPC:

      $ grep -R ' see log for details' src/main/python/
      src/main/python/apache/aurora/client/cli/cron.py:        err_msg=("Error scheduling job %s; see log for details" % context.options.jobspec))
      src/main/python/apache/aurora/client/cli/cron.py:        err_msg=("Error descheduling job %s; see log for details" % context.options.jobspec))
      src/main/python/apache/aurora/client/cli/cron.py:        err_msg=("Error starting cron job %s; see log for details" % context.options.jobspec))
      src/main/python/apache/aurora/client/cli/cron.py:        err_msg=("Error getting cron status for %s; see log for details" % jobkey))
      src/main/python/apache/aurora/client/cli/jobs.py:      raise context.CommandError(EXIT_COMMAND_FAILURE, "Error reported by scheduler; see log for details")
      src/main/python/apache/aurora/client/cli/jobs.py:          err_msg="Error loading configuration; see log for details")
      src/main/python/apache/aurora/client/cli/jobs.py:        context.print_err("Kill of shards %s failed with error; see log for details" % batch)
      src/main/python/apache/aurora/client/cli/jobs.py:      context.print_err("Error restarting job %s; see log for details" % str(job))
      src/main/python/apache/aurora/client/cli/jobs.py:          "Server could not find running job to update: see log for details")
      src/main/python/apache/aurora/client/cli/jobs.py:        err_msg="Server could not populate job config for comparison; see log for details.")
      src/main/python/apache/aurora/client/cli/jobs.py:        err_msg="Update failed; see log for details.")
      src/main/python/apache/aurora/client/cli/update.py:        err_msg="Failed to start scheduler-driven update; see log for details.")
      src/main/python/apache/aurora/client/cli/update.py:      err_msg="Failed to pause scheduler-driven update; see log for details")
      src/main/python/apache/aurora/client/cli/update.py:      err_msg="Failed to resume scheduler-driven update; see log for details")
      src/main/python/apache/aurora/client/cli/update.py:      err_msg="Failed to abort scheduler-driven update; see log for details")
      

      Take this command and output for example:

      $ aurora2 beta-update start devcluster/www-data/devel/hello_world /vagrant/hello_world.aurora
      log(info): Starting update for: hello_world
      log(info): Starting new HTTP connection (1): 192.168.33.7
      log(info): Starting new HTTP connection (1): 192.168.33.7
      log(info): Message from scheduler: Job is unchanged by proposed update.
      Error: Failed to start scheduler-driven update; see log for details.
      log(info): Error executing command: Failed to start scheduler-driven update; see log for details.
      Error executing command: Failed to start scheduler-driven update; see log for details.
      

      In this case, the lines containing "see log for details" makes me think that i'm expected to look at a log file somewhere, not that i should read the line immediately preceding. It would be great if this output looked more like:

      $ aurora2 beta-update start devcluster/www-data/devel/hello_world /vagrant/hello_world.aurora
      Invalid request: Job is unchanged by proposed update.
      

      Attachments

        Activity

          People

            mchucarroll Mark Chu-Carroll
            wfarner Bill Farner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: