You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Justin Venus (JIRA)" <ji...@apache.org> on 2016/09/26 20:50:20 UTC

[jira] [Created] (AURORA-1782) Thermos Executor is ignoring shell escapes in Unified Containerizer code path

Justin Venus created AURORA-1782:
------------------------------------

             Summary: Thermos Executor is ignoring shell escapes in Unified Containerizer code path
                 Key: AURORA-1782
                 URL: https://issues.apache.org/jira/browse/AURORA-1782
             Project: Aurora
          Issue Type: Bug
    Affects Versions: 0.16.0
            Reporter: Justin Venus


When using mesos containerizer with an image, the code path taken appears to be stripping new line characters making it impossible to render files with '/bin/echo' or execute inline python scripts.  I suspect this is due to the introduction of shlex.split() in the method wrapped_cmdline() in the file src/main/python/apache/thermos/core/process.py, but I haven't investigated any further.

This is a regression from the behavior in 0.15.0.   


This is enough to cause an execution to fail.
{code}
python -c 'import sys

if __name__ == "__main__":
  sys.exit(0)
{code}

This is the error seen when running an inline script from a Process().
{code}
Failed to parse the flags: Failed to load flag 'command': Failed to load value '{"shell":true,"value":"/bin/bash -c 'python -c import': syntax error at line 1 near: 
{code}




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