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

Bill Farner commented on AURORA-654:
------------------------------------

Well, this is interesting.  I can do the same successfully:

{noformat}
$ PEX_INTERPRETER=1 aurora
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from gen.apache.aurora.api.ttypes import Constraint
>>> constraint = Constraint()
>>> result = set()
>>> result.add(constraint)
>>> result
set([Constraint(name=None, constraint=None)])
{noformat}

Grasping at straws here, but can you do the pex interpreter dance again and 
dump your sys.path?
{noformat}
>>> import sys
>>> print '\n'.join(sys.path)
/usr/local/bin/aurora/.bootstrap
/usr/local/bin/aurora
/usr/lib/python2.7
/usr/lib/python2.7/plat-linux2
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/home/vagrant/.pex/install/thrift-0.9.1-cp27-none-linux_x86_64.whl.81cd729d07d70b8f10674dfcbf5a104d7d7c45c0/thrift-0.9.1-cp27-none-linux_x86_64.whl
/home/vagrant/.pex/install/src.main.thrift.org.apache.thermos.py_thrift_e5ae53de-0.0.0-py2-none-any.whl.11ff0d799fe17fcae4d26949cef3a015aa6c077d/src.main.thrift.org.apache.thermos.py_thrift_e5ae53de-0.0.0-py2-none-any.whl
/home/vagrant/.pex/install/src.main.thrift.org.apache.aurora.gen.py_thrift_c432d4bc-0.0.0-py2-none-any.whl.8bf087894c61ad419d6d209d1416ce6227c2138c/src.main.thrift.org.apache.aurora.gen.py_thrift_c432d4bc-0.0.0-py2-none-any.whl
/home/vagrant/.pex/install/src.main.thrift.org.apache.aurora.gen.py_thrift_storage_45f4612f-0.0.0-py2-none-any.whl.82a84c4c2cedd8e8686a0c4a7c10617415e8eea8/src.main.thrift.org.apache.aurora.gen.py_thrift_storage_45f4612f-0.0.0-py2-none-any.whl
/home/vagrant/.pex/install/src.main.thrift.org.apache.aurora.gen.py_thrift_test_bd0368f7-0.0.0-py2-none-any.whl.81bb9679a1fc80c384ecdcdba59e4ea057cf3eb4/src.main.thrift.org.apache.aurora.gen.py_thrift_test_bd0368f7-0.0.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.python-0.5.4-py2-none-any.whl.8098749371005d82d3f33ab2cb34351d24fe4f39/twitter.common.python-0.5.4-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.collections-0.3.0-py2-none-any.whl.860d1b0f85c26dfeeee4bc83b8a56d901e8368af/twitter.common.collections-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.quantity-0.3.0-py2-none-any.whl.bce1161851521dd723124af9fb067d5238bf48bf/twitter.common.quantity-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.lang-0.3.0-py2-none-any.whl.786c7f89bbb7dacea38805ae60957d1c84418371/twitter.common.lang-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/pystachio-0.7.2-py2-none-any.whl.a3cf03e7500af4c27302786fddd1694cae2aede3/pystachio-0.7.2-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.rpc-0.3.0-py2-none-any.whl.74d513b7eb2d1350f7804aaf90eb215d491410ad/twitter.common.rpc-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.zookeeper-0.3.0-py2-none-any.whl.c5c3e90b6fa7454f9e7c10140cd8ec81599a33ff/twitter.common.zookeeper-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/requests-2.3.0-py2.py3-none-any.whl.a21e9e68c134914680bf06b3d8b9bdb7d9fb304a/requests-2.3.0-py2.py3-none-any.whl
/home/vagrant/.pex/install/twitter.common.app-0.3.0-py2-none-any.whl.d901dc67f9d5c117cb62f3f1471330885ffc55b5/twitter.common.app-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.log-0.3.0-py2-none-any.whl.b50018d1be305d84ff6f940839ea7a18f460a6b0/twitter.common.log-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/wheel-0.23.0-py2.py3-none-any.whl.da18f1de9481ae2ba63c91f40d2d4b2903879952/wheel-0.23.0-py2.py3-none-any.whl
/home/vagrant/.pex/install/setuptools-5.3-py2.py3-none-any.whl.543b0e44f84f91446f3e1adec41753215f4ff11f/setuptools-5.3-py2.py3-none-any.whl
/home/vagrant/.pex/install/twitter.common.metrics-0.3.0-py2-none-any.whl.c34c98a591a840dc21fac4e327454bfd2b8165e9/twitter.common.metrics-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/kazoo-1.3.1-py2-none-any.whl.2e837a852354be552786b3e7bd23d7d7f13d329d/kazoo-1.3.1-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.concurrent-0.3.0-py2-none-any.whl.6c4600afc6f3d0f0996651014308c4533d533795/twitter.common.concurrent-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.process-0.3.0-py2-none-any.whl.3c74d6aaaf13353ec8389d2db11a26b7e5b929bd/twitter.common.process-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.util-0.3.0-py2-none-any.whl.6b157268b05bd390e820b5501fe4d0f63a23c0c1/twitter.common.util-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.options-0.3.0-py2-none-any.whl.54ae8cf8cd3ff0ff45449b51683dc9d347d02cb7/twitter.common.options-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.dirutil-0.3.0-py2-none-any.whl.235c5a300162df299fc2e6af6bf35491d5f36640/twitter.common.dirutil-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.exceptions-0.3.0-py2-none-any.whl.a0fefe344b7f4f7431095804a45c4dd1e8da96fe/twitter.common.exceptions-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/zope.interface-4.1.1-cp27-none-linux_x86_64.whl.0e174c58e98f521736895145aff9152292707888/zope.interface-4.1.1-cp27-none-linux_x86_64.whl
/home/vagrant/.pex/install/futures-2.1.2-py2-none-any.whl.5833a2523e3ddaba05d60d46325fdd431da2639a/futures-2.1.2-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.string-0.3.0-py2-none-any.whl.305c6c7d0216ba27e8a2efa6d849d4ce8189465f/twitter.common.string-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.contextutil-0.3.0-py2-none-any.whl.28dc0404f8d70e57e8ca8135cba8824f2a1144cd/twitter.common.contextutil-0.3.0-py2-none-any.whl
/home/vagrant/.pex/install/twitter.common.decorators-0.3.0-py2-none-any.whl.b47d130638d9d4886138163dac21a34e6dafa2c0/twitter.common.decorators-0.3.0-py2-none-any.whl
{noformat}

[~mchucarroll], [~wickman] any ideas?  You probably have more familiarity here 
than i.

> "Could not deserialize AssignedTask" from thermos_executor.pex
> --------------------------------------------------------------
>
>                 Key: AURORA-654
>                 URL: https://issues.apache.org/jira/browse/AURORA-654
>             Project: Aurora
>          Issue Type: Bug
>          Components: Executor
>         Environment: CentOS 6.4 on x86_64 hardware
>            Reporter: Josh Adams
>
> We're seeing the following error when attempting to run a new task after 
> upgrading to incubator-aurora@8d98542 and mesos@dc0b7bf (0.19.1-rc1):
> {code}
> WARNING: Logging before InitGoogleLogging() is written to STDERR
> I0813 00:57:40.229567 10732 exec.cpp:131] Version: 0.19.1
> I0813 00:57:40.231796 10761 exec.cpp:205] Executor registered on slave
> 20140812-235601-84869386-5050-469-0
> FATAL] Could not deserialize AssignedTask
> FATAL] Traceback (most recent call last):
>   File "apache/aurora/executor/aurora_executor.py", line 234, in validate_task
>     assigned_task = assigned_task_from_mesos_task(task)
>   File "apache/aurora/executor/common/task_info.py", line 32, in
> assigned_task_from_mesos_task
>     assigned_task = thrift_deserialize(AssignedTask(), task.data)
>   File 
> "/root/.pex/install/thrift-0.9.1-cp27-none-linux_x86_64.whl.5554a00a49bd3c9d0ed12679fbf9a9810c343ed1/thrift-0.9.1-cp27-none-linux_x86_64.whl/thrift/TSerialization.py",
> line 37, in deserialize
>     base.read(protocol)
>   File "gen/apache/aurora/api/ttypes.py", line 2841, in read
>     self.task.read(iprot)
>   File "gen/apache/aurora/api/ttypes.py", line 1678, in read
>     self.constraints.add(_elem26)
> TypeError: unhashable instance
> {code}
> We are upgrading to get the Announcer implementation working. Here's a simple 
> task config that has no {{constraints}} and still produces the error (we 
> haven't been able to generate a {{.aurora}} config that doesn't result in 
> this exception.
> {code}
> drag_proc_0 = Process(
>   name = 'drag_proc_0',
>   cmdline = """
>     while sleep 1; do date; done
>   """
> )
> drag_task = Task(
>   processes = [drag_proc_0],
>   resources = Resources(cpu = 0.5, ram = 1*GB, disk = 1*GB)
> )
> jobs = [
>   Service(
>     task = drag_task,
>     cluster = 'staging',
>     role = 'produser',
>     environment = 'staging',
>     name = 'drag',
>     instances = 1,
>     update_config = UpdateConfig(batch_size = 1, watch_secs = 345, 
> rollback_on_failure = False, max_per_shard_failures = 3),
>   )
> ]
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to