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

Eric Badger commented on YARN-7344:
-----------------------------------

Looks like the problem here is that realpath for {{/bin}} returns {{/usr/bin/}} 
on CentOS7/RHEL7. So when the test checks for the permitted mounts, it sees 
{{/usr/bin/ls}} or {{/usr/bin}} instead of {{/bin/ls}} or {{/bin}}

{noformat}
[ebadger@foobar]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.1 (Maipo)
[ebadger@foobar]$ realpath /bin
/usr/bin
[ebadger@foobar]$ realpath /bin/ls
/usr/bin/ls
{noformat}

> Unit test for white list mount fails on CentOS 7
> ------------------------------------------------
>
>                 Key: YARN-7344
>                 URL: https://issues.apache.org/jira/browse/YARN-7344
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 3.0.0-beta1
>         Environment: CentOS Linux release 7.4.1708 (Core)
> cmake3-3.6.3-1.el7.x86_64
> openjdk version "1.8.0_144"
> OpenJDK Runtime Environment (build 1.8.0_144-b01)
> OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
> Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 
> 2017-04-03T15:39:06-04:00)
> libprotoc 2.5.0
>            Reporter: Eric Yang
>
> YARN-6623 introduced ability to turn off docker support for container 
> executor.  When running C++ unit tests, the newly introduced tests failed.
> {code}
> [  FAILED  ] 3 tests, listed below:
> [  FAILED  ] TestDockerUtil.test_check_mount_permitted
> [  FAILED  ] TestDockerUtil.test_normalize_mounts
> [  FAILED  ] TestDockerUtil.test_add_rw_mounts
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to