You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Ian Downes (JIRA)" <ji...@apache.org> on 2015/02/04 00:06:35 UTC

[jira] [Commented] (MESOS-2199) Failing test: SlaveTest.ROOT_RunTaskWithCommandInfoWithUser

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

Ian Downes commented on MESOS-2199:
-----------------------------------

This is reproducible on master for me on my development box (CentOS5). Let me know if there's other information that can assist.

{noformat}
[root@hostname build]# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)
[root@hostname build]# cat /etc/passwd | grep nobody
nobody:x:99:99:Nobody:/:/sbin/nologin
{noformat}

{noformat}
[root@hostname build]# stat /home/idownes/workspace/mesos/build/src/mesos-executor
  File: `/home/idownes/workspace/mesos/build/src/mesos-executor'
  Size: 7774            Blocks: 16         IO Block: 4096   regular file
Device: 801h/2049d      Inode: 27401055    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (13118/ idownes)   Gid: ( 1500/employee)
Access: 2015-02-03 22:49:43.050209010 +0000
Modify: 2015-02-03 22:49:43.054209063 +0000
Change: 2015-02-03 22:49:43.055209076 +0000
{noformat}

{noformat}
[root@hostname build]# ./bin/mesos-tests.sh --gtest_filter="SlaveTest.ROOT_RunTaskWithCommandInfoWithUser*"
Source directory: /home/idownes/workspace/mesos
Build directory: /home/idownes/workspace/mesos/build
...
...
...
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from SlaveTest
[ RUN      ] SlaveTest.ROOT_RunTaskWithCommandInfoWithUser
../../src/tests/slave_tests.cpp:694: Failure
Value of: statusRunning.get().state()
  Actual: TASK_FAILED
Expected: TASK_RUNNING
../../src/tests/slave_tests.cpp:696: Failure
Failed to wait 15secs for statusFinished
../../src/tests/slave_tests.cpp:687: Failure
Actual function call count doesn't match EXPECT_CALL(sched, statusUpdate(&driver, _))...
         Expected: to be called twice
           Actual: called once - unsatisfied and active
[  FAILED  ] SlaveTest.ROOT_RunTaskWithCommandInfoWithUser (15685 ms)
[----------] 1 test from SlaveTest (15685 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (15705 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] SlaveTest.ROOT_RunTaskWithCommandInfoWithUser

 1 FAILED TEST
  YOU HAVE 14 DISABLED TESTS
{noformat}

{noformat}
[root@hostname idownes]# cat /tmp/SlaveTest_ROOT_RunTaskWithCommandInfoWithUser_eYLN0M/slaves/20150203-225438-2081170186-51601-2656-S0/frameworks/20150203-225438-2081170186-51601-2656-0000/executors/1/runs/latest/stderr
sh: /home/idownes/workspace/mesos/build/src/mesos-executor: Permission denied
[root@hostname idownes]#
{noformat}

> Failing test: SlaveTest.ROOT_RunTaskWithCommandInfoWithUser
> -----------------------------------------------------------
>
>                 Key: MESOS-2199
>                 URL: https://issues.apache.org/jira/browse/MESOS-2199
>             Project: Mesos
>          Issue Type: Bug
>          Components: test
>            Reporter: Ian Downes
>            Assignee: Niklas Quarfot Nielsen
>
> Appears that running the executor as {{nobody}} is not supported.
> [~nnielsen] can you take a look?
> Executor log:
> {noformat}
> [root@hostname build]# cat /tmp/SlaveTest_ROOT_RunTaskWithCommandInfoWithUser_cxF1dY/slaves/20141219-005206-2081170186-60487-11862-S0/frameworks/20141219-005206-2081170186-60
> 487-11862-0000/executors/1/runs/latest/std*
> sh: /home/idownes/workspace/mesos/build/src/mesos-executor: Permission denied
> {noformat}
> Test output:
> {noformat}
> [==========] Running 1 test from 1 test case.
> [----------] Global test environment set-up.
> [----------] 1 test from SlaveTest
> [ RUN      ] SlaveTest.ROOT_RunTaskWithCommandInfoWithUser
> ../../src/tests/slave_tests.cpp:680: Failure
> Value of: statusRunning.get().state()
>   Actual: TASK_FAILED
> Expected: TASK_RUNNING
> ../../src/tests/slave_tests.cpp:682: Failure
> Failed to wait 10secs for statusFinished
> ../../src/tests/slave_tests.cpp:673: Failure
> Actual function call count doesn't match EXPECT_CALL(sched, statusUpdate(&driver, _))...
>          Expected: to be called twice
>            Actual: called once - unsatisfied and active
> [  FAILED  ] SlaveTest.ROOT_RunTaskWithCommandInfoWithUser (10641 ms)
> [----------] 1 test from SlaveTest (10641 ms total)
> [----------] Global test environment tear-down
> [==========] 1 test from 1 test case ran. (10658 ms total)
> {noformat}



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