{"action":"created","issue":{"url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/350","repository_url":"https://api.github.com/repos/kubevirt/containerized-data-importer","labels_url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/350/comments","events_url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/350/events","html_url":"https://github.com/kubevirt/containerized-data-importer/issues/350","id":351547575,"node_id":"MDU6SXNzdWUzNTE1NDc1NzU=","number":350,"title":"build-cdi-func-test-file-host.sh causes permission denied when being build","user":{"login":"lukas-bednar","id":1505684,"node_id":"MDQ6VXNlcjE1MDU2ODQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1505684?v=4","gravatar_id":"","url":"https://api.github.com/users/lukas-bednar","html_url":"https://github.com/lukas-bednar","followers_url":"https://api.github.com/users/lukas-bednar/followers","following_url":"https://api.github.com/users/lukas-bednar/following{/other_user}","gists_url":"https://api.github.com/users/lukas-bednar/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas-bednar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas-bednar/subscriptions","organizations_url":"https://api.github.com/users/lukas-bednar/orgs","repos_url":"https://api.github.com/users/lukas-bednar/repos","events_url":"https://api.github.com/users/lukas-bednar/events{/privacy}","received_events_url":"https://api.github.com/users/lukas-bednar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"copejon","id":6430994,"node_id":"MDQ6VXNlcjY0MzA5OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6430994?v=4","gravatar_id":"","url":"https://api.github.com/users/copejon","html_url":"https://github.com/copejon","followers_url":"https://api.github.com/users/copejon/followers","following_url":"https://api.github.com/users/copejon/following{/other_user}","gists_url":"https://api.github.com/users/copejon/gists{/gist_id}","starred_url":"https://api.github.com/users/copejon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copejon/subscriptions","organizations_url":"https://api.github.com/users/copejon/orgs","repos_url":"https://api.github.com/users/copejon/repos","events_url":"https://api.github.com/users/copejon/events{/privacy}","received_events_url":"https://api.github.com/users/copejon/received_events","type":"User","site_admin":false},"assignees":[{"login":"copejon","id":6430994,"node_id":"MDQ6VXNlcjY0MzA5OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6430994?v=4","gravatar_id":"","url":"https://api.github.com/users/copejon","html_url":"https://github.com/copejon","followers_url":"https://api.github.com/users/copejon/followers","following_url":"https://api.github.com/users/copejon/following{/other_user}","gists_url":"https://api.github.com/users/copejon/gists{/gist_id}","starred_url":"https://api.github.com/users/copejon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copejon/subscriptions","organizations_url":"https://api.github.com/users/copejon/orgs","repos_url":"https://api.github.com/users/copejon/repos","events_url":"https://api.github.com/users/copejon/events{/privacy}","received_events_url":"https://api.github.com/users/copejon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-17T10:47:58Z","updated_at":"2018-08-17T14:58:25Z","closed_at":null,"author_association":"MEMBER","body":"How to reproduce:\r\n* clone repo under regular user (non-root)\r\n*  make functests\r\n\r\n```\r\n[lbednar@lbednar tmp]$ git clone https://github.com/kubevirt/containerized-data-importer.git\r\nCloning into 'containerized-data-importer'...\r\nremote: Counting objects: 12160, done.\r\nremote: Compressing objects: 100% (7/7), done.\r\nremote: Total 12160 (delta 1), reused 1 (delta 0), pack-reused 12153\r\nReceiving objects: 100% (12160/12160), 46.24 MiB | 1.80 MiB/s, done.\r\nResolving deltas: 100% (4851/4851), done.\r\n[lbednar@lbednar tmp]$ cd containerized-data-importer/\r\n[lbednar@lbednar containerized-data-importer]$ make functest\r\n./hack/build/in-docker.sh \"DOCKER_REPO= DOCKER_TAG= VERBOSITY= PULL_POLICY= ./hack/build/build-manifests.sh\"\r\nSending build context to Docker daemon 4.608 kB\r\nStep 1/7 : FROM fedora:27\r\n ---> 9110ae7f579f\r\nStep 2/7 : RUN dnf install -y qemu xz gzip git && dnf clean all\r\n ---> Using cache\r\n ---> 008c451e628d\r\nStep 3/7 : ENV GIMME_GO_VERSION 1.10 GOPATH \"/go\" GOBIN \"/usr/bin\"\r\n ---> Using cache\r\n ---> 02b8eedd54bf\r\nStep 4/7 : RUN mkdir -p /gimme && curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | HOME=/gimme bash >> /etc/profile.d/gimme.sh\r\n ---> Using cache\r\n ---> bbc040a5b2cb\r\nStep 5/7 : RUN mkdir -p ${GOPATH} &&     source /etc/profile.d/gimme.sh &&     eval $(go env) &&     (go get -u github.com/onsi/ginkgo/ginkgo &&      cd $GOPATH/src/github.com/onsi/ginkgo/ginkgo &&      go install ./... ) &&     go get golang.org/x/tools/cmd/goimports &&     ( go get -d mvdan.cc/sh/cmd/shfmt || echo \"**** Expecting error \\\"cannot find package mvdan.cc/sh/v2/fileutil\\\"\" ) &&     ( cd $GOPATH/src/golang.org/x/tools/cmd/goimports &&     go install ./... ) &&     ( cd $GOPATH/src/mvdan.cc/sh/cmd/shfmt &&     git checkout v2.5.0 -b build-v2.5.0 &&     go install ./... ) &&     ( go get -d github.com/mattn/goveralls &&     cd $GOPATH/src/github.com/mattn/goveralls &&     go install ./... )\r\n ---> Running in df4a29665649\r\ngo version go1.10 linux/amd64\r\nSwitched to a new branch 'build-v2.5.0'\r\n ---> e4d7ae7b5bbd\r\nRemoving intermediate container df4a29665649\r\nStep 6/7 : ADD entrypoint.sh /entrypoint.sh\r\n ---> 891b8c3a85ff\r\nRemoving intermediate container 60abe2733ad5\r\nStep 7/7 : ENTRYPOINT /entrypoint.sh\r\n ---> Running in e2385b4abee8\r\n ---> 4c1f75b82d5f\r\nRemoving intermediate container e2385b4abee8\r\nSuccessfully built 4c1f75b82d5f\r\ngo version go1.10 linux/amd64\r\n./hack/build/in-docker.sh \"./hack/build/build-go.sh clean && ./hack/build/build-go.sh build tools/cdi-func-test-file-host-init && DOCKER_REPO= DOCKER_TAG= VERBOSITY= PULL_POLICY= ./hack/build/build-manifests.sh tools/cdi-func-test-file-host-init && ./hack/build/build-copy-artifacts.sh tools/cdi-func-test-file-host-init\"\r\nSending build context to Docker daemon 4.608 kB\r\nStep 1/7 : FROM fedora:27\r\n ---> 9110ae7f579f\r\nStep 2/7 : RUN dnf install -y qemu xz gzip git && dnf clean all\r\n ---> Using cache\r\n ---> 008c451e628d\r\nStep 3/7 : ENV GIMME_GO_VERSION 1.10 GOPATH \"/go\" GOBIN \"/usr/bin\"\r\n ---> Using cache\r\n ---> 02b8eedd54bf\r\nStep 4/7 : RUN mkdir -p /gimme && curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | HOME=/gimme bash >> /etc/profile.d/gimme.sh\r\n ---> Using cache\r\n ---> bbc040a5b2cb\r\nStep 5/7 : RUN mkdir -p ${GOPATH} &&     source /etc/profile.d/gimme.sh &&     eval $(go env) &&     (go get -u github.com/onsi/ginkgo/ginkgo &&      cd $GOPATH/src/github.com/onsi/ginkgo/ginkgo &&      go install ./... ) &&     go get golang.org/x/tools/cmd/goimports &&     ( go get -d mvdan.cc/sh/cmd/shfmt || echo \"**** Expecting error \\\"cannot find package mvdan.cc/sh/v2/fileutil\\\"\" ) &&     ( cd $GOPATH/src/golang.org/x/tools/cmd/goimports &&     go install ./... ) &&     ( cd $GOPATH/src/mvdan.cc/sh/cmd/shfmt &&     git checkout v2.5.0 -b build-v2.5.0 &&     go install ./... ) &&     ( go get -d github.com/mattn/goveralls &&     cd $GOPATH/src/github.com/mattn/goveralls &&     go install ./... )\r\n ---> Using cache\r\n ---> e4d7ae7b5bbd\r\nStep 6/7 : ADD entrypoint.sh /entrypoint.sh\r\n ---> Using cache\r\n ---> 891b8c3a85ff\r\nStep 7/7 : ENTRYPOINT /entrypoint.sh\r\n ---> Using cache\r\n ---> 4c1f75b82d5f\r\nSuccessfully built 4c1f75b82d5f\r\ngo version go1.10 linux/amd64\r\n/go/src/kubevirt.io/containerized-data-importer/_out/tools/cdi-func-test-file-host-init/\r\n./hack/build/build-cdi-func-test-file-host.sh\r\nmkdir: cannot create directory ‘/tmp/containerized-data-importer/_out/tools/cdi-func-test-file-host-http’: Permission denied\r\nmake: *** [Makefile:115: .functest-image-host] Error 1\r\n```\r\nThat target was introduced in #315"},"comment":{"url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/comments/413892949","html_url":"https://github.com/kubevirt/containerized-data-importer/issues/350#issuecomment-413892949","issue_url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/350","id":413892949,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzg5Mjk0OQ==","user":{"login":"copejon","id":6430994,"node_id":"MDQ6VXNlcjY0MzA5OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6430994?v=4","gravatar_id":"","url":"https://api.github.com/users/copejon","html_url":"https://github.com/copejon","followers_url":"https://api.github.com/users/copejon/followers","following_url":"https://api.github.com/users/copejon/following{/other_user}","gists_url":"https://api.github.com/users/copejon/gists{/gist_id}","starred_url":"https://api.github.com/users/copejon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copejon/subscriptions","organizations_url":"https://api.github.com/users/copejon/orgs","repos_url":"https://api.github.com/users/copejon/repos","events_url":"https://api.github.com/users/copejon/events{/privacy}","received_events_url":"https://api.github.com/users/copejon/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T14:58:25Z","updated_at":"2018-08-17T14:58:25Z","author_association":"MEMBER","body":"This is caused by docker not translating the host FS perms into the container and instead chown'ing the host FS to root:root.  The quick fix is to containerize the `cp` script.  Will have a PR up shortly"}}
{"actor":{"display_login":"copejon"}}