Return-Path: X-Original-To: apmail-aurora-issues-archive@minotaur.apache.org Delivered-To: apmail-aurora-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A5B2CCAB for ; Wed, 7 Jan 2015 21:23:55 +0000 (UTC) Received: (qmail 68605 invoked by uid 500); 7 Jan 2015 21:23:56 -0000 Delivered-To: apmail-aurora-issues-archive@aurora.apache.org Received: (qmail 68558 invoked by uid 500); 7 Jan 2015 21:23:56 -0000 Mailing-List: contact issues-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list issues@aurora.incubator.apache.org Received: (qmail 68548 invoked by uid 99); 7 Jan 2015 21:23:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 21:23:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 07 Jan 2015 21:23:54 +0000 Received: (qmail 65993 invoked by uid 99); 7 Jan 2015 21:23:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jan 2015 21:23:34 +0000 Date: Wed, 7 Jan 2015 21:23:34 +0000 (UTC) From: "Bhuvan Arumugam (JIRA)" To: issues@aurora.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AURORA-988) aurora client apache.aurora.client.api.ThriftInternalError error due to unexpected kwarg user_agent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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 > 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)