mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhitao Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-5028) Copy provisioner cannot replace directory with symlink
Date Fri, 05 Aug 2016 20:18:20 GMT

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

Zhitao Li commented on MESOS-5028:
----------------------------------

The error looks like this:

/quote
E0805 20:03:32.337234 72361 slave.cpp:4029] Container 'a5633e96-e9b5-4d29-a55e-fd316c28943b'
for executor 'test2' of framework 662655e7-1b0a-4873-9307-f908fb96bc00-0000 failed to start:
Collect failed: Failed to copy layer: cp: cannot overwrite directory ‘/var/lib/mesos/provisioner/containers/a5633e96-e9b5-4d29-a55e-fd316c28943b/backends/copy/rootfses/b3286fd7-1c43-406e-85d7-170cb385a480/etc/cirros’
with non-directory
/quote

> Copy provisioner cannot replace directory with symlink
> ------------------------------------------------------
>
>                 Key: MESOS-5028
>                 URL: https://issues.apache.org/jira/browse/MESOS-5028
>             Project: Mesos
>          Issue Type: Bug
>          Components: containerization
>            Reporter: Zhitao Li
>            Assignee: Gilbert Song
>
> I'm trying to play with the new image provisioner on our custom docker images, but one
of layer failed to get copied, possibly due to a dangling symlink.
> Error log with Glog_v=1:
> {quote}
> I0324 05:42:48.926678 15067 copy.cpp:127] Copying layer path '/tmp/mesos/store/docker/layers/5df0888641196b88dcc1b97d04c74839f02a73b8a194a79e134426d6a8fcb0f1/rootfs'
to rootfs '/var/lib/mesos/provisioner/containers/5f05be6c-c970-4539-aa64-fd0eef2ec7ae/backends/copy/rootfses/507173f3-e316-48a3-a96e-5fdea9ffe9f6'
> E0324 05:42:49.028506 15062 slave.cpp:3773] Container '5f05be6c-c970-4539-aa64-fd0eef2ec7ae'
for executor 'test' of framework 75932a89-1514-4011-bafe-beb6a208bb2d-0004 failed to start:
Collect failed: Collect failed: Failed to copy layer: cp: cannot overwrite directory ‘/var/lib/mesos/provisioner/containers/5f05be6c-c970-4539-aa64-fd0eef2ec7ae/backends/copy/rootfses/507173f3-e316-48a3-a96e-5fdea9ffe9f6/etc/apt’
with non-directory
> {quote}
> Content of _/tmp/mesos/store/docker/layers/5df0888641196b88dcc1b97d04c74839f02a73b8a194a79e134426d6a8fcb0f1/rootfs/etc/apt_
points to a non-existing absolute path (cannot provide exact path but it's a result of us
trying to mount apt keys into docker container at build time).
> I believe what happened is that we executed a script at build time, which contains equivalent
of:
> {quote}
> rm -rf /etc/apt/* && ln -sf /build-mount-point/ /etc/apt
> {quote}



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

Mime
View raw message