aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhuvan Arumugam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AURORA-988) aurora client apache.aurora.client.api.ThriftInternalError error due to unexpected kwarg user_agent
Date Wed, 07 Jan 2015 21:23:34 GMT

    [ https://issues.apache.org/jira/browse/AURORA-988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268256#comment-14268256
] 

Bhuvan Arumugam commented on AURORA-988:
----------------------------------------

[~joshua.cohen] [~wfarner] i couldn't replicate this bug if i use {{zk}} and {{scheduler_zk_path}}
in clusters.json.

I could replicate if i use {{scheduler_uri}}. The {{DirectSchedulerClient}} don't seem to
honor kwargs! The fix is modify the constructor to take **kwargs.
  -> https://github.com/apache/incubator-aurora/blob/master/src/main/python/apache/aurora/client/api/scheduler_client.py#L181

Here is the complete traceback:
{code}
Traceback (most recent call last):
  File "/home/bhuvan/projects/mesos/incubator-aurora/dist/aurora_client.pex/apache/aurora/client/api/scheduler_client.py",
line 299, in method_wrapper
    method = getattr(self.client(), method_name)
  File "/home/bhuvan/projects/mesos/incubator-aurora/dist/aurora_client.pex/apache/aurora/client/api/scheduler_client.py",
line 232, in _wrapper
    self._construct_scheduler()
  File "/home/bhuvan/projects/mesos/incubator-aurora/dist/aurora_client.pex/apache/aurora/client/api/scheduler_client.py",
line 264, in _construct_scheduler
    self._scheduler_client = SchedulerClient.get(self.cluster, verbose=self.verbose, **self._kwargs)
  File "/home/bhuvan/projects/mesos/incubator-aurora/dist/aurora_client.pex/apache/aurora/client/api/scheduler_client.py",
line 71, in get
    return DirectSchedulerClient(cluster.scheduler_uri, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'user_agent'
{code}



> aurora client apache.aurora.client.api.ThriftInternalError error due to unexpected kwarg
user_agent
> ---------------------------------------------------------------------------------------------------
>
>                 Key: AURORA-988
>                 URL: https://issues.apache.org/jira/browse/AURORA-988
>             Project: Aurora
>          Issue Type: Bug
>          Components: Client
>    Affects Versions: 0.7.0
>            Reporter: Bhuvan Arumugam
>
> The issue occur for all commands, with both clients: v1 and v2.
> v1 error:
> {code}
> ./dist/aurora_client.pex status -v vagrant/bhuvan/devel/hello[master]
> WARNING: status is an aurora clientv1 command which will be deprecated soon
> To run this command using clientv2, use 'aurora job status vagrant/bhuvan/devel/hello'
>  INFO] Checking status of vagrant/bhuvan/devel/hello
> Traceback (most recent call last):
>   File "/home/bhuvan/.pex/install/twitter.common.app-0.3.2-py2-none-any.whl.c9a6c61d19a8540640a20ab7a9e32d8fe783ded1/twitter.common.app-0.3.2-py2-none-any.whl/twitter/common/app/application.py",
line 758, in _wrap_method
>     return_code = method()
>   File "/home/bhuvan/.pex/install/twitter.common.app-0.3.2-py2-none-any.whl.c9a6c61d19a8540640a20ab7a9e32d8fe783ded1/twitter.common.app-0.3.2-py2-none-any.whl/twitter/common/app/application.py",
line 780, in <lambda>
>     main = lambda: main_method(*args, **kwargs)
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora_client.pex/apache/aurora/client/commands/core.py",
line 690, in status
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora_client.pex/apache/aurora/client/api/__init__.py",
line 121, in check_status
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora_client.pex/apache/aurora/client/api/__init__.py",
line 140, in query_no_configs
> apache.aurora.client.api.ThriftInternalError: Error during thrift call getTasksWithoutConfigs
to vagrant: __init__() got an unexpected keyword argument 'user_agent'
> {code}
> v2 error:
> {code}
> ./dist/aurora2.pex job status vagrant/bhuvan/devel/hello                 [latest]
>  INFO] Checking status of vagrant/bhuvan/devel/hello
> Fatal error running command:
> Traceback (most recent call last):
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora2.pex/apache/aurora/client/cli/__init__.py",
line 368, in _execute
>     result = noun.execute(context)
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora2.pex/apache/aurora/client/cli/__init__.py",
line 457, in execute
>     return self.verbs[context.options.verb].execute(context)
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora2.pex/apache/aurora/client/cli/jobs.py",
line 652, in execute
>     result = self.get_status_for_jobs(jobs, context)
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora2.pex/apache/aurora/client/cli/jobs.py",
line 613, in get_status_for_jobs
>     job_tasks = context.get_job_status(jk)
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora2.pex/apache/aurora/client/cli/context.py",
line 222, in get_job_status
>     resp = api.check_status(key)
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora2.pex/apache/aurora/client/api/__init__.py",
line 121, in check_status
>     return self.query_no_configs(job_key.to_thrift_query())
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora2.pex/apache/aurora/client/api/__init__.py",
line 140, in query_no_configs
>     raise self.ThriftInternalError(e.args[0])
> ThriftInternalError: Error during thrift call getTasksWithoutConfigs to vagrant: __init__()
got an unexpected keyword argument 'user_agent'
> {code}



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

Mime
View raw message