[
https://issues.apache.org/jira/browse/YARN-7412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16225033#comment-16225033
]
Eric Badger commented on YARN-7412:
-----------------------------------
/etc/profile would work fine, but the reason I didn't use it is because I
replaced the usage of /usr with /etc. To preserve all of the tests that were
already in place, we need to have multiple directories that have well-known
files and aren't symlinked. The /usr/bin/cut test is to make sure that you can
get to /usr/bin/cut even when you can't get to /usr or /usr/bin. If we were to
use /etc/profile then it wouldn't test this since the tests already use /etc as
a permitted mount.
> test_docker_util.test_check_mount_permitted() is failing
> --------------------------------------------------------
>
> Key: YARN-7412
> URL: https://issues.apache.org/jira/browse/YARN-7412
> Project: Hadoop YARN
> Issue Type: Bug
> Components: nodemanager
> Affects Versions: 3.0.0-alpha4
> Reporter: Haibo Chen
> Assignee: Eric Badger
> Priority: Critical
> Attachments: YARN-7412.001.patch
>
>
> Test output
> <testcase name="test_check_mount_permitted" status="run" time="0.001"
> classname="TestDockerUtil">
> <failure
> message="/home/haibochen/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/utils/test_docker_util.cc:444

> Expected: itr->second
 Which is: 1
To be equal to:
> ret
 Which is: 0
for inp
> ut /usr/bin/touch"
> type=""><![CDATA[/home/haibochen/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/utils/test_docker_util.cc:444
> Expected: itr->second
> Which is: 1
> To be equal to: ret
> Which is: 0
> for input /usr/bin/touch]]></failure>
> </testcase>
> <testcase name="test_normalize_mounts" status="run" time="0"
> classname="TestDockerUtil">
> <failure
> message="/home/haibochen/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/utils/test_docker_util.cc:462

> Expected: expected[i]
 Which is:
> "/usr/bin/touch"
To be equal to: ptr[i]

> Which is: "/bin/touch""
> type=""><![CDATA[/home/haibochen/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/test/utils/test_docker_util.cc:462
> Expected: expected[i]
> Which is: "/usr/bin/touch"
> To be equal to: ptr[i]
> Which is: "/bin/touch"]]></failure>
> </testcase>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]