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

Authentication errors cause stack dump in client

    XMLWordPrintableJSON

Details

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

    Description

      Partial stack trace example:

      
      

      $ aurora update smfd/jcohen/devel/echo echo.aurora
      INFO] Fetching metadata for package jcohen/echo version 6 in {'slave_run_directory': 'latest', 'name': 'smfd', 'zk': 'zookeeper.smfd.twitter.com', 'packer_zk_path': '/twitter/service/mesos/devel/packer', 'dc': 'smfd', 'scheduler_zk_path': '/twitter/service/mesos/nonprod/scheduler', 'packer_zk': 'sdzookeeper.smfd.twitter.com', 'auth_mechanism': 'twitter-ods', 'packer_copy_command': '/usr/local/bin/package_cache package_md5 package_uri package', 'scheduler_role': 'mesos.nonprod.master', 'master_role': 'mesos.nonprod.master', 'slave_root': '/var/lib/mesos', 'slave_role': 'mesos.nonprod.slave'}.
      INFO] Updating job: echo
      Traceback (most recent call last):
      File "twitter/common/app/application.py", line 738, in _wrap_method
      return_code = method()
      File "twitter/common/app/application.py", line 760, in <lambda>
      main = lambda: main_method(*args, **kwargs)
      File "twitter/aurora/client/base.py", line 43, in wrapped_function
      return fn(*args)
      File "twitter/aurora/client/commands/core.py", line 529, in update
      resp = api.update_job(config, options.health_check_interval_seconds, options.shards)
      File "twitter/aurora/client/hooks/hooked_api.py", line 167, in update_job
      config, health_check_interval_seconds=health_check_interval_seconds, instances=instances))
      File "twitter/aurora/client/hooks/hooked_api.py", line 128, in _hooked_call
      resp = api_call()
      File "twitter/aurora/client/api/_init_.py", line 103, in update_job
      return updater.update(instances)
      File "twitter/aurora/client/api/updater.py", line 191, in update
      resp = self._start()
      File "twitter/aurora/client/api/updater.py", line 55, in _start
      resp = self._scheduler.startUpdate(self._config.job())
      File "twitter/aurora/client/api/scheduler_client.py", line 244, in method_wrapper
      auth_args = () if method_name in self.UNAUTHENTICATED_RPCS else (self.session_key(),)
      File "twitter/aurora/client/api/scheduler_client.py", line 207, in session_key
      return self._session_key_factory(self.cluster.auth_mechanism)
      File "twitter/aurora/common/auth/auth_module_manager.py", line 43, in make_session_key
      session_key = auth_module()

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: