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

Michael Park commented on MESOS-8253:
-------------------------------------

Turns out it's something within {{mesos-style.py}} that's leaving {{stdout}} and
 {{stderr}} in nonblocking mode. We've for now removed invoking 
{{mesos-style.py}},
 and will be performing it within the docker container instead.

With the following script in Jenkins:
{code:java}
MESOS_DIR=$(git rev-parse --show-toplevel)
python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); 
print(flags&os.O_NONBLOCK);'
pip install --user virtualenv
"${MESOS_DIR}"/support/mesos-style.py
python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); 
print(flags&os.O_NONBLOCK);'
{code}
we get:
{code:java}
08:04:34 + python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, 
fcntl.F_GETFL); print(flags&os.O_NONBLOCK);'
08:04:34 0
08:04:34 + pip install --user virtualenv
08:04:34 Requirement already satisfied: virtualenv in 
/home/jenkins/.local/lib/python2.7/site-packages
08:04:34 + 
/home/jenkins/jenkins-slave/workspace/Mesos-Buildbot-Test/43ae0d20/support/mesos-style.py
08:04:46 * Install prebuilt node (9.5.0) ..... done.
08:04:50 * Appending data to 
/home/jenkins/jenkins-slave/workspace/Mesos-Buildbot-Test/43ae0d20/support/.virtualenv/bin/activate
08:07:32 Total errors found: 0
08:07:34 Total errors found: 0
08:07:44 Total errors found: 0
08:07:44 Rebuilding virtualenv...
08:07:44 Checking 1275 C++ files
08:07:44 Checking 4 JavaScript files
08:07:44 Checking 40 Python files
08:07:44 + python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, 
fcntl.F_GETFL); print(flags&os.O_NONBLOCK);'
08:07:44 2048
{code}
without the `mesos-style.py`, i.e.:
{code:java}
MESOS_DIR=$(git rev-parse --show-toplevel)
python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); 
print(flags&os.O_NONBLOCK);'
pip install --user virtualenv
"${MESOS_DIR}"/support/mesos-style.py
python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); 
print(flags&os.O_NONBLOCK);'
{code}
we get:
{code:java}
02:09:11 + python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, 
fcntl.F_GETFL); print(flags&os.O_NONBLOCK);'
02:09:11 0
02:09:11 + pip install --user virtualenv
02:09:11 Requirement already satisfied: virtualenv in 
/home/jenkins/.local/lib/python2.7/site-packages
02:09:11 + python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, 
fcntl.F_GETFL); print(flags&os.O_NONBLOCK);'
02:09:11 0
{code}

> Mesos CI docker rmi conflict
> ----------------------------
>
>                 Key: MESOS-8253
>                 URL: https://issues.apache.org/jira/browse/MESOS-8253
>             Project: Mesos
>          Issue Type: Bug
>          Components: build, docker
>            Reporter: James Peach
>            Assignee: Michael Park
>            Priority: Major
>
> We are seeing a lot of docker build jobs failing when they try to clean up 
> there docker images:
> {noformat}
> + docker rmi mesos-1511286604-15916
> Error response from daemon: conflict: unable to remove repository reference 
> "mesos-1511286604-15916" (must force) - container 1aabf0225a43 is using its 
> referenced image 23292073f88f
> Build step 'Execute shell' marked build as failure
> {noformat}
> The full Jenkins log is 
> [here|https://builds.apache.org/job/Mesos-Buildbot/BUILDTOOL=autotools,COMPILER=clang,CONFIGURATION=--verbose%20--disable-libtool-wrappers%20--enable-libevent%20--enable-ssl,ENVIRONMENT=GLOG_v=1%20MESOS_VERBOSE=1,OS=ubuntu%3A14.04,label_exp=(ubuntu)&&(!ubuntu-us1)&&(!ubuntu-eu2)&&(!qnode3)&&(!H23)/4486/console]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to