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

Josh Adams commented on AURORA-654:
-----------------------------------

Hi Bill, thanks for the fast response.

Here's the output:

{noformat}
$ PEX_INTERPRETER=1 ./aurora2.pex
Python 2.7.6 (default, Apr  2 2014, 22:16:48)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] 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)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
TypeError: unhashable instance
>>> import sys
>>> print '\n'.join(sys.path)
/foursquare/josh/loko/stagingjosh/infrastructure-aurora-base/installed/1aa579b/bin/aurora2.pex/.bootstrap
/foursquare/josh/loko/stagingjosh/infrastructure-aurora-base/installed/1aa579b/bin/aurora2.pex
/usr/local/lib/python27.zip
/usr/local/lib/python2.7
/usr/local/lib/python2.7/plat-linux2
/usr/local/lib/python2.7/lib-tk
/usr/local/lib/python2.7/lib-old
/usr/local/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/site-packages
/foursquare/josh/.pex/install/thrift-0.9.1-cp27-none-linux_x86_64.whl.5554a00a49bd3c9d0ed12679fbf9a9810c343ed1/thrift-0.9.1-cp27-none-linux_x86_64.whl
/foursquare/josh/.pex/install/src.main.thrift.org.apache.thermos.py_thrift_e5ae53de-0.0.0-py2-none-any.whl.e3156be2dc0ead5060a19df912fb0ac87705fdc0/src.main.thrift.org.apache.thermos.py_thrift_e5ae53de-0.0.0-py2-none-any.whl
/foursquare/josh/.pex/install/src.main.thrift.org.apache.aurora.gen.py_thrift_55173162-0.0.0-py2-none-any.whl.50b89255b2cb7380f6e2267b829bcfa2cd8e257c/src.main.thrift.org.apache.aurora.gen.py_thrift_55173162-0.0.0-py2-none-any.whl
/foursquare/josh/.pex/install/src.main.thrift.org.apache.aurora.gen.py_thrift_test_bd0368f7-0.0.0-py2-none-any.whl.f100f483bdc931bcbc99d2d8c77dc5caf7c9dd21/src.main.thrift.org.apache.aurora.gen.py_thrift_test_bd0368f7-0.0.0-py2-none-any.whl
/foursquare/josh/.pex/install/src.main.thrift.org.apache.aurora.gen.py_thrift_storage_7a552938-0.0.0-py2-none-any.whl.067e93b0cdae38c454890959e9f4d0460771358e/src.main.thrift.org.apache.aurora.gen.py_thrift_storage_7a552938-0.0.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.python-0.5.4-py2-none-any.whl.750a4927d47d5881d323c5f01501798c8b340649/twitter.common.python-0.5.4-py2-none-any.whl
/foursquare/josh/.pex/install/argparse-1.2.1-py2-none-any.whl.07a18fc6f220562c37103e75018e02763ae650c6/argparse-1.2.1-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.collections-0.3.0-py2-none-any.whl.fe2f87666b01ffa11d9011cca8ca7e7467aff20f/twitter.common.collections-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.decorators-0.3.0-py2-none-any.whl.0aa340190719a2f81d0d3b75db37d08039600a05/twitter.common.decorators-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.quantity-0.3.0-py2-none-any.whl.aba156618c09ac1fa98e45aa43382b8170fa54d8/twitter.common.quantity-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.lang-0.3.0-py2-none-any.whl.b71ad9c231be758900b58f772873208ae319ef8c/twitter.common.lang-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/pystachio-0.7.2-py2-none-any.whl.8dae2eed59929c82530c0e0c694e8b4161b88fd4/pystachio-0.7.2-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.rpc-0.3.0-py2-none-any.whl.0db323d2fdb86b146a4a934b66377715c071b6e9/twitter.common.rpc-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.zookeeper-0.3.0-py2-none-any.whl.eef8967951919f480c01a3bddbc4a5ceb9acdc6f/twitter.common.zookeeper-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/requests-2.3.0-py2.py3-none-any.whl.a21e9e68c134914680bf06b3d8b9bdb7d9fb304a/requests-2.3.0-py2.py3-none-any.whl
/foursquare/josh/.pex/install/twitter.common.app-0.3.0-py2-none-any.whl.cc2efb30cf61d6a5c78c15b38d0c0442bc1528af/twitter.common.app-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.log-0.3.0-py2-none-any.whl.1ff75813beca003536558bc4e3640500328689ee/twitter.common.log-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/wheel-0.24.0-py2.py3-none-any.whl.40de56cbd2282a5908a015772c9a55e52fbb02bf/wheel-0.24.0-py2.py3-none-any.whl
/foursquare/josh/.pex/install/setuptools-5.7-py2.py3-none-any.whl.fc9ff1dd1b5e0c2bd53d7b265154d776a8a7cfb3/setuptools-5.7-py2.py3-none-any.whl
/foursquare/josh/.pex/install/twitter.common.metrics-0.3.0-py2-none-any.whl.f717b3c46da7122bde02051c1ae6c9ed51e92b0b/twitter.common.metrics-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/kazoo-1.3.1-py2-none-any.whl.dd0ad5576ce6b5e158d7cf8674f8c96e34585b0d/kazoo-1.3.1-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.concurrent-0.3.0-py2-none-any.whl.838ceec9b17bfad4a64ce2924da425b5e11aa774/twitter.common.concurrent-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.process-0.3.0-py2-none-any.whl.ccad040e27faac1861a5c9e2211dc0d035a541a2/twitter.common.process-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.util-0.3.0-py2-none-any.whl.24bfda4f609256ce7bffcb99ac0e12c33759f359/twitter.common.util-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.options-0.3.0-py2-none-any.whl.7f21e2898c3a5f08048452d0b83b708f6b021086/twitter.common.options-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.dirutil-0.3.0-py2-none-any.whl.c94146f79df6ea9690d481c66ce64accbebd9fe0/twitter.common.dirutil-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.exceptions-0.3.0-py2-none-any.whl.e4d859bd5a87d4e486456095e384b40767e0cd6c/twitter.common.exceptions-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/zope.interface-4.1.1-cp27-none-linux_x86_64.whl.88077016471677b88867307ba2201e0001fd80ce/zope.interface-4.1.1-cp27-none-linux_x86_64.whl
/foursquare/josh/.pex/install/futures-2.1.2-py2-none-any.whl.3bc4f6c9b226cc477222a1c24837d4b8a11bc931/futures-2.1.2-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.string-0.3.0-py2-none-any.whl.dcb1a253faebff8ad13a885d66d1e8fbd4c79714/twitter.common.string-0.3.0-py2-none-any.whl
/foursquare/josh/.pex/install/twitter.common.contextutil-0.3.0-py2-none-any.whl.03fe52f6eeb9f1ceb984be359bd365baebf0ed8c/twitter.common.contextutil-0.3.0-py2-none-any.whl
>>>
{noformat}

> "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