aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Cohen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AURORA-988) aurora client apache.aurora.client.api.ThriftInternalError error due to unexpected kwarg user_agent
Date Tue, 06 Jan 2015 21:58:35 GMT

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

Joshua Cohen commented on AURORA-988:
-------------------------------------

[~bhuvan] I'm not able to reproduce:

{noformat}
vagrant@vagrant-ubuntu-trusty-64:~$ aurora status -v devcluster/vagrant/test/http_example
WARNING: status is an aurora clientv1 command which will be deprecated soon
To run this command using clientv2, use 'aurora job status devcluster/vagrant/test/http_example'
 INFO] Checking status of devcluster/vagrant/test/http_example
 INFO] Connecting to 192.168.33.7:2181
 INFO] Sending request(xid=None): Connect(protocol_version=0, last_zxid_seen=0, time_out=10000,
session_id=0, passwd='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', read_only=None)
 INFO] Zookeeper connection established, state: CONNECTED
 INFO] Sending request(xid=1): GetChildren(path=u'/aurora/scheduler', watcher=<function
get_watch at 0x7f7c65e44aa0>)
 INFO] Received response(xid=1): [u'member_0000000031', u'singleton_candidate_0000000030']
 INFO] Sending request(xid=2): GetData(path=u'/aurora/scheduler/member_0000000031', watcher=None)
 INFO] Received response(xid=2): ('{"serviceEndpoint":{"host":"vagrant-ubuntu-trusty-64","port":8081},"additionalEndpoints":{"http":{"host":"vagrant-ubuntu-trusty-64","port":8081}},"status":"ALIVE"}',
ZnodeStat(czxid=1030, mzxid=1030, ctime=1420580730376, mtime=1420580730376, version=0, cversion=0,
aversion=0, ephemeralOwner=93099177415081989, dataLength=163, numChildren=0, pzxid=1030))
 INFO] Sending request(xid=3): GetChildren(path=u'/aurora/scheduler', watcher=None)
 INFO] Received response(xid=3): [u'member_0000000031', u'singleton_candidate_0000000030']
 INFO] Sending request(xid=4): Close()
 INFO] Closing connection to 192.168.33.7:2181
 INFO] Zookeeper session lost, state: CLOSED
 INFO] Response from scheduler: OK (message: )
 INFO] Active Tasks (2)
 INFO] role: vagrant, env: test, name: http_example, shard: 0, status: RUNNING on 192.168.33.7
cpus: 0.5, ram: 32 MB, disk: 64 MB
	ports: {'http': 31603}
	failure count: 0 (max 1)
	events:
		 2015-01-06 21:49:43 PENDING: None
		 2015-01-06 21:49:43 ASSIGNED: None
		 2015-01-06 21:49:45 STARTING: Initializing sandbox.
		 2015-01-06 21:49:46 RUNNING: None
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 1, status: RUNNING on 192.168.33.7
cpus: 0.5, ram: 32 MB, disk: 64 MB
	ports: {'http': 31335}
	failure count: 0 (max 1)
	events:
		 2015-01-06 21:49:43 PENDING: None
		 2015-01-06 21:49:52 ASSIGNED: None
		 2015-01-06 21:49:53 STARTING: Initializing sandbox.
		 2015-01-06 21:49:54 RUNNING: None
	metadata:
 INFO] Inactive Tasks (13)
 INFO] role: vagrant, env: test, name: http_example, shard: 0, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 32 MB, disk: 64 MB
	ports: {'http': 31228}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:48:02 PENDING: None
		 2015-01-05 18:48:02 ASSIGNED: None
		 2015-01-05 18:48:04 STARTING: Initializing sandbox.
		 2015-01-05 18:48:05 RUNNING: None
		 2015-01-05 18:48:08 KILLING: Killed by UNSECURE
		 2015-01-05 18:48:10 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 1, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 34 MB, disk: 64 MB
	ports: {'http': 31631}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:37:43 PENDING: None
		 2015-01-05 18:37:47 ASSIGNED: None
		 2015-01-05 18:37:48 STARTING: Initializing sandbox.
		 2015-01-05 18:37:49 RUNNING: None
		 2015-01-05 18:38:41 KILLING: Killed by UNSECURE
		 2015-01-05 18:38:42 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 1, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 34 MB, disk: 64 MB
	ports: {'http': 31332}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:48:10 PENDING: None
		 2015-01-05 18:48:10 ASSIGNED: None
		 2015-01-05 18:48:12 STARTING: Initializing sandbox.
		 2015-01-05 18:48:12 RUNNING: None
		 2015-01-05 18:49:09 KILLING: Killed by UNSECURE
		 2015-01-05 18:49:11 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 0, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 32 MB, disk: 64 MB
	ports: {'http': 31568}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:36:22 PENDING: Rescheduled
		 2015-01-05 18:36:23 ASSIGNED: None
		 2015-01-05 18:36:24 STARTING: Initializing sandbox.
		 2015-01-05 18:36:24 RUNNING: None
		 2015-01-05 18:37:37 KILLING: Killed by UNSECURE
		 2015-01-05 18:37:39 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 3, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 34 MB, disk: 64 MB
	ports: {'http': 31043}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:38:05 PENDING: None
		 2015-01-05 18:38:07 ASSIGNED: None
		 2015-01-05 18:38:08 STARTING: Initializing sandbox.
		 2015-01-05 18:38:09 RUNNING: None
		 2015-01-05 18:38:50 KILLING: Killed by UNSECURE
		 2015-01-05 18:38:52 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 2, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 34 MB, disk: 64 MB
	ports: {'http': 31236}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:38:01 PENDING: None
		 2015-01-05 18:38:01 ASSIGNED: None
		 2015-01-05 18:38:02 STARTING: Initializing sandbox.
		 2015-01-05 18:38:03 RUNNING: None
		 2015-01-05 18:38:48 KILLING: Killed by UNSECURE
		 2015-01-05 18:38:50 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 2, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 34 MB, disk: 64 MB
	ports: {'http': 31722}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:48:29 PENDING: None
		 2015-01-05 18:48:29 ASSIGNED: None
		 2015-01-05 18:48:31 STARTING: Initializing sandbox.
		 2015-01-05 18:48:31 RUNNING: None
		 2015-01-05 18:49:09 KILLING: Killed by UNSECURE
		 2015-01-05 18:49:11 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 1, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 32 MB, disk: 64 MB
	ports: {'http': 31868}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:36:09 PENDING: None
		 2015-01-05 18:36:17 ASSIGNED: None
		 2015-01-05 18:36:19 STARTING: Initializing sandbox.
		 2015-01-05 18:36:21 RUNNING: None
		 2015-01-05 18:36:56 RESTARTING: Restarted by UNSECURE
		 2015-01-05 18:36:58 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 0, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 34 MB, disk: 64 MB
	ports: {'http': 31635}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:37:43 PENDING: None
		 2015-01-05 18:37:43 ASSIGNED: None
		 2015-01-05 18:37:45 STARTING: Initializing sandbox.
		 2015-01-05 18:37:45 RUNNING: None
		 2015-01-05 18:38:46 KILLING: Killed by UNSECURE
		 2015-01-05 18:38:48 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 3, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 34 MB, disk: 64 MB
	ports: {'http': 31114}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:48:31 PENDING: None
		 2015-01-05 18:48:36 ASSIGNED: None
		 2015-01-05 18:48:37 STARTING: Initializing sandbox.
		 2015-01-05 18:48:37 RUNNING: None
		 2015-01-05 18:49:09 KILLING: Killed by UNSECURE
		 2015-01-05 18:49:11 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 0, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 34 MB, disk: 64 MB
	ports: {'http': 31271}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:48:13 PENDING: None
		 2015-01-05 18:48:13 ASSIGNED: None
		 2015-01-05 18:48:15 STARTING: Initializing sandbox.
		 2015-01-05 18:48:15 RUNNING: None
		 2015-01-05 18:49:09 KILLING: Killed by UNSECURE
		 2015-01-05 18:49:11 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 1, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 32 MB, disk: 64 MB
	ports: {'http': 31287}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:36:58 PENDING: Rescheduled
		 2015-01-05 18:36:58 ASSIGNED: None
		 2015-01-05 18:36:59 STARTING: Initializing sandbox.
		 2015-01-05 18:36:59 RUNNING: None
		 2015-01-05 18:37:37 KILLING: Killed by UNSECURE
		 2015-01-05 18:37:39 KILLED: Instructed to kill task.
	metadata:
 INFO] role: vagrant, env: test, name: http_example, shard: 0, status: KILLED on 192.168.33.7
cpus: 0.5, ram: 32 MB, disk: 64 MB
	ports: {'http': 31926}
	failure count: 0 (max 1)
	events:
		 2015-01-05 18:36:09 PENDING: None
		 2015-01-05 18:36:09 ASSIGNED: None
		 2015-01-05 18:36:11 STARTING: Initializing sandbox.
		 2015-01-05 18:36:12 RUNNING: None
		 2015-01-05 18:36:20 RESTARTING: Restarted by UNSECURE
		 2015-01-05 18:36:22 KILLED: Instructed to kill task.
	metadata:
{noformat}

This is using a client built from current HEAD on master:

{noformat}
$ git log -1
commit 1c53b94810e5b778ebf9c52da29f06b6a1cf7c29
Author: Bill Farner <wfarner@apache.org>
Date:   Tue Jan 6 11:54:25 2015 -0800

    Remove SANDBOX_DELETED state.
    
    Bugs closed: AURORA-832
    
    Reviewed at https://reviews.apache.org/r/28913/
{noformat}

We recently added support for [custom user agents|https://github.com/apache/incubator-aurora/commit/8c841060bb4457518a372f0f84053b2dec0e7034]
to distinguish scheduler traffic coming from the v1, v2 and admin clients. As you can see
[we added a user_agent arg|https://github.com/apache/incubator-aurora/commit/8c841060bb4457518a372f0f84053b2dec0e7034#diff-b1c264c64f79dcd32ab6970e32c074ffR51]
to the api client. If you guys have a fork of the client you'll probably need to make some
changes to accommodate the new arg?

> 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