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

Sunil Shah commented on MESOS-2586:
-----------------------------------

[~nnielsen] - there's no way to specify executable assets currently through 
Chronos or Marathon. However, it was easy enough to change this to be run 
through Python or to add `chmod +x` into my command. I agree that this is a 
non-bug.

> Mesos 0.22 now respects executable flag (or lack of) on URIs
> ------------------------------------------------------------
>
>                 Key: MESOS-2586
>                 URL: https://issues.apache.org/jira/browse/MESOS-2586
>             Project: Mesos
>          Issue Type: Bug
>          Components: fetcher
>    Affects Versions: 0.22.0
>            Reporter: Sunil Shah
>            Assignee: Niklas Quarfot Nielsen
>            Priority: Minor
>              Labels: fetcher, mesosphere
>
> I'm unsure if this problem is because of a bug or because a bug has now been 
> fixed.
> A number of our Chronos jobs started failing when we upgraded to Mesos 0.22. 
> These worked prior to the upgrade. They specify a URI to a Python script and 
> execute the Python script within a minimal Docker container. 
> Note that Chronos does not setExecutable on the URI when building the Mesos 
> task and has never done so on URIs 
> (https://github.com/mesos/chronos/blob/36a294d4714e545de91fcda920429faff15a1746/src/main/scala/org/apache/mesos/chronos/scheduler/mesos/MesosTaskBuilder.scala#L101).
> stderr output complains about lacking permission:
> {code}
> /bin/sh: 1: ./integration_test.py: Permission denied
> {code}
> I suspect this is intended behaviour and was just wondering if this was a 
> known bug in the fetcher that was fixed in the 0.22 release of Mesos.
> Example job configuration:
> {code}
> {
>   "schedule": "R/2015-03-13T00:00:00Z/PT1H",
>   "name": "Integration Test",
>   "container": {
>     "type": "DOCKER",
>     "image": "mesosphere/python-monitoring"
>   },
>   "cpus": "1.0",
>   "mem": "512",
>   "owner": "su...@mesosphere.io",
>   "uris": [
>     "https://path/to/integration_test.py";
>   ],
>   "command": "cd $MESOS_SANDBOX && ./integration_test.py"
> }
> {code}



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

Reply via email to