[jira] [Commented] (MESOS-5123) Docker task may fail if path to agent work_dir is relative.
[ https://issues.apache.org/jira/browse/MESOS-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16089764#comment-16089764 ] Alexander Rukletsov commented on MESOS-5123: [~jieyu], [~klausma1982], [~gilbert] is it still an issue? > Docker task may fail if path to agent work_dir is relative. > > > Key: MESOS-5123 > URL: https://issues.apache.org/jira/browse/MESOS-5123 > Project: Mesos > Issue Type: Improvement > Components: docker >Affects Versions: 1.0.0 >Reporter: Alexander Rukletsov >Assignee: Klaus Ma > Labels: docker, documentation, mesosphere > > When a local folder for agent’s {{\-\-work_dir}} is specified (e.g., > {{\-\-work_dir=w/s}}) docker complains that there are forbidden symbols in a > *local* volume name. Specifying an absolute path (e.g., > {{\-\-work_dir=/tmp}}) solves the problem. > Docker error observed: > {noformat} > docker: Error response from daemon: create > w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc: > volume name invalid: > "w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc" > includes invalid characters for a local volume name, only > "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. > {noformat} > First off, it is not obvious that Mesos always creates a volume for the > sandbox. We may want to document it. > Second, it's hard to understand that local {{work_dir}} can trigger forbidden > symbols error in docker. Does it make sense to check it during agent launch > if docker containerizer is enabled? Or reject docker tasks during task > validation? -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MESOS-5123) Docker task may fail if path to agent work_dir is relative.
[ https://issues.apache.org/jira/browse/MESOS-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15520577#comment-15520577 ] Klaus Ma commented on MESOS-5123: - [~alexr], I think we can close this PR. The diff will be different after refactor {{Flags.load}}. > Docker task may fail if path to agent work_dir is relative. > > > Key: MESOS-5123 > URL: https://issues.apache.org/jira/browse/MESOS-5123 > Project: Mesos > Issue Type: Improvement > Components: docker >Affects Versions: 1.0.0 >Reporter: Alexander Rukletsov >Assignee: Klaus Ma > Labels: docker, documentation, mesosphere > > When a local folder for agent’s {{\-\-work_dir}} is specified (e.g., > {{\-\-work_dir=w/s}}) docker complains that there are forbidden symbols in a > *local* volume name. Specifying an absolute path (e.g., > {{\-\-work_dir=/tmp}}) solves the problem. > Docker error observed: > {noformat} > docker: Error response from daemon: create > w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc: > volume name invalid: > "w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc" > includes invalid characters for a local volume name, only > "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. > {noformat} > First off, it is not obvious that Mesos always creates a volume for the > sandbox. We may want to document it. > Second, it's hard to understand that local {{work_dir}} can trigger forbidden > symbols error in docker. Does it make sense to check it during agent launch > if docker containerizer is enabled? Or reject docker tasks during task > validation? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MESOS-5123) Docker task may fail if path to agent work_dir is relative.
[ https://issues.apache.org/jira/browse/MESOS-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15512939#comment-15512939 ] Alexander Rukletsov commented on MESOS-5123: [~klaus1982] Is r/46298 still relevant? > Docker task may fail if path to agent work_dir is relative. > > > Key: MESOS-5123 > URL: https://issues.apache.org/jira/browse/MESOS-5123 > Project: Mesos > Issue Type: Improvement > Components: docker >Affects Versions: 1.0.0 >Reporter: Alexander Rukletsov >Assignee: Klaus Ma > Labels: docker, documentation, mesosphere > > When a local folder for agent’s {{\-\-work_dir}} is specified (e.g., > {{\-\-work_dir=w/s}}) docker complains that there are forbidden symbols in a > *local* volume name. Specifying an absolute path (e.g., > {{\-\-work_dir=/tmp}}) solves the problem. > Docker error observed: > {noformat} > docker: Error response from daemon: create > w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc: > volume name invalid: > "w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc" > includes invalid characters for a local volume name, only > "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. > {noformat} > First off, it is not obvious that Mesos always creates a volume for the > sandbox. We may want to document it. > Second, it's hard to understand that local {{work_dir}} can trigger forbidden > symbols error in docker. Does it make sense to check it during agent launch > if docker containerizer is enabled? Or reject docker tasks during task > validation? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MESOS-5123) Docker task may fail if path to agent work_dir is relative.
[ https://issues.apache.org/jira/browse/MESOS-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15245073#comment-15245073 ] Klaus Ma commented on MESOS-5123: - cc [~jieyu]/[~alexr] :). > Docker task may fail if path to agent work_dir is relative. > > > Key: MESOS-5123 > URL: https://issues.apache.org/jira/browse/MESOS-5123 > Project: Mesos > Issue Type: Improvement > Components: docker >Affects Versions: 0.28.0, 0.29.0 >Reporter: Alexander Rukletsov >Assignee: Klaus Ma > Labels: docker, documentation, mesosphere > Fix For: 0.29.0 > > > When a local folder for agent’s {{\-\-work_dir}} is specified (e.g., > {{\-\-work_dir=w/s}}) docker complains that there are forbidden symbols in a > *local* volume name. Specifying an absolute path (e.g., > {{\-\-work_dir=/tmp}}) solves the problem. > Docker error observed: > {noformat} > docker: Error response from daemon: create > w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc: > volume name invalid: > "w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc" > includes invalid characters for a local volume name, only > "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. > {noformat} > First off, it is not obvious that Mesos always creates a volume for the > sandbox. We may want to document it. > Second, it's hard to understand that local {{work_dir}} can trigger forbidden > symbols error in docker. Does it make sense to check it during agent launch > if docker containerizer is enabled? Or reject docker tasks during task > validation? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MESOS-5123) Docker task may fail if path to agent work_dir is relative.
[ https://issues.apache.org/jira/browse/MESOS-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15244093#comment-15244093 ] Klaus Ma commented on MESOS-5123: - RR: https://reviews.apache.org/r/46298/ I think we also need to send email to dev@ for this behaviour change. > Docker task may fail if path to agent work_dir is relative. > > > Key: MESOS-5123 > URL: https://issues.apache.org/jira/browse/MESOS-5123 > Project: Mesos > Issue Type: Improvement > Components: docker >Affects Versions: 0.28.0, 0.29.0 >Reporter: Alexander Rukletsov >Assignee: Klaus Ma > Labels: docker, documentation, mesosphere > Fix For: 0.29.0 > > > When a local folder for agent’s {{\-\-work_dir}} is specified (e.g., > {{\-\-work_dir=w/s}}) docker complains that there are forbidden symbols in a > *local* volume name. Specifying an absolute path (e.g., > {{\-\-work_dir=/tmp}}) solves the problem. > Docker error observed: > {noformat} > docker: Error response from daemon: create > w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc: > volume name invalid: > "w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc" > includes invalid characters for a local volume name, only > "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. > {noformat} > First off, it is not obvious that Mesos always creates a volume for the > sandbox. We may want to document it. > Second, it's hard to understand that local {{work_dir}} can trigger forbidden > symbols error in docker. Does it make sense to check it during agent launch > if docker containerizer is enabled? Or reject docker tasks during task > validation? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MESOS-5123) Docker task may fail if path to agent work_dir is relative.
[ https://issues.apache.org/jira/browse/MESOS-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15234554#comment-15234554 ] Klaus Ma commented on MESOS-5123: - Do we also assume it's realpath in Unified container? If so, I think reject it when starting agent is better. > Docker task may fail if path to agent work_dir is relative. > > > Key: MESOS-5123 > URL: https://issues.apache.org/jira/browse/MESOS-5123 > Project: Mesos > Issue Type: Improvement > Components: docker >Affects Versions: 0.28.0, 0.29.0 >Reporter: Alexander Rukletsov >Assignee: Klaus Ma > Labels: docker, documentation, mesosphere > Fix For: 0.29.0 > > > When a local folder for agent’s {{\-\-work_dir}} is specified (e.g., > {{\-\-work_dir=w/s}}) docker complains that there are forbidden symbols in a > *local* volume name. Specifying an absolute path (e.g., > {{\-\-work_dir=/tmp}}) solves the problem. > Docker error observed: > {noformat} > docker: Error response from daemon: create > w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc: > volume name invalid: > "w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc" > includes invalid characters for a local volume name, only > "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. > {noformat} > First off, it is not obvious that Mesos always creates a volume for the > sandbox. We may want to document it. > Second, it's hard to understand that local {{work_dir}} can trigger forbidden > symbols error in docker. Does it make sense to check it during agent launch > if docker containerizer is enabled? Or reject docker tasks during task > validation? -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MESOS-5123) Docker task may fail if path to agent work_dir is relative.
[ https://issues.apache.org/jira/browse/MESOS-5123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15226527#comment-15226527 ] Jie Yu commented on MESOS-5123: --- We also need to make sure work_dir is never relative. In fact, may of our code assume work_dir is a realpath. We probably should enforce that. > Docker task may fail if path to agent work_dir is relative. > > > Key: MESOS-5123 > URL: https://issues.apache.org/jira/browse/MESOS-5123 > Project: Mesos > Issue Type: Improvement > Components: docker >Affects Versions: 0.28.0, 0.29.0 >Reporter: Alexander Rukletsov > Labels: docker, documentation, mesosphere > > When a local folder for agent’s {{\-\-work_dir}} is specified (e.g., > {{\-\-work_dir=w/s}}) docker complains that there are forbidden symbols in a > *local* volume name. Specifying an absolute path (e.g., > {{\-\-work_dir=/tmp}}) solves the problem. > Docker error observed: > {noformat} > docker: Error response from daemon: create > w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc: > volume name invalid: > "w/s/slaves/33b8fe47-e9e0-468a-83a6-98c1e3537e59-S1/frameworks/33b8fe47-e9e0-468a-83a6-98c1e3537e59-0001/executors/docker-test/runs/3cc5cb04-d0a9-490e-94d5-d446b66c97cc" > includes invalid characters for a local volume name, only > "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. > {noformat} > First off, it is not obvious that Mesos always creates a volume for the > sandbox. We may want to document it. > Second, it's hard to understand that local {{work_dir}} can trigger forbidden > symbols error in docker. Does it make sense to check it during agent launch > if docker containerizer is enabled? Or reject docker tasks during task > validation? -- This message was sent by Atlassian JIRA (v6.3.4#6332)