[jboss-jira] [JBoss JIRA] (WFWIP-177) Uploading to container failed: Error response from daemon: Error processing tar file(exit status 1): invalid symlink

Martin Choma (Jira) issues at jboss.org
Tue Aug 20 02:22:00 EDT 2019


    [ https://issues.jboss.org/browse/WFWIP-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772761#comment-13772761 ] 

Martin Choma commented on WFWIP-177:
------------------------------------

It turned out it is caused by recent docker CVE fix. It is tracked by [1].

In OCP terms:
- I see test fails on v3.11.129  and v3.11.117 
- I see test pass on v3.11.82

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1738599
[2] https://github.com/openshift/source-to-image/issues/987

> Uploading to container failed: Error response from daemon: Error processing tar file(exit status 1): invalid symlink
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: WFWIP-177
>                 URL: https://issues.jboss.org/browse/WFWIP-177
>             Project: WildFly WIP
>          Issue Type: Bug
>          Components: OpenShift
>            Reporter: Martin Choma
>            Assignee: Ken Wills
>            Priority: Major
>
> Use case is providing settings.xml as secret. I wonder if this could be some ubi7 file permission issue. 
> {code}
> Receiving source from STDIN as archive ...
> Using docker-registry.engineering.redhat.com/kwills/eap73-openshift-rhel7:CLOUD-3331 as the s2i builder image
> error: Uploading to container failed: Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/etc/test-secret/..data" -> "..2019_08_19_13_20_57.538692366"
> ERROR: Error occurred during injecting "/var/run/secrets/openshift.io/build/test-secret" to "/etc/test-secret": Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/etc/test-secret/..data" -> "..2019_08_19_13_20_57.538692366"
> error: build error: non-zero (13) exit code from docker-registry.engineering.redhat.com/kwills/eap73-openshift-rhel7:CLOUD-3331
> {code}
> {code:yaml|title=BuildConfig}
> apiVersion: build.openshift.io/v1
> kind: BuildConfig
> metadata:
>   creationTimestamp: '2019-08-19T13:20:41Z'
>   name: sti-secret-settings
>   namespace: mchoma
>   resourceVersion: '1345248'
>   selfLink: >-
>     /apis/build.openshift.io/v1/namespaces/mchoma/buildconfigs/sti-secret-settings
>   uid: 249b6a94-c284-11e9-b93c-fa163e9a0fb6
> spec:
>   failedBuildsHistoryLimit: 5
>   nodeSelector: {}
>   output:
>     to:
>       kind: ImageStreamTag
>       name: 'sti-secret-settings:latest'
>   postCommit: {}
>   resources: {}
>   runPolicy: Serial
>   source:
>     binary: {}
>     secrets:
>       - destinationDir: /etc/test-secret
>         secret:
>           name: test-secret
>     type: Binary
>   strategy:
>     sourceStrategy:
>       env:
>         - name: MAVEN_ARGS
>           value: install -s /etc/test-secret/settings.xml
>       from:
>         kind: DockerImage
>         name: >-
>           docker-registry.engineering.redhat.com/kwills/eap73-openshift-rhel7:CLOUD-3331
>       incremental: false
>     type: Source
>   successfulBuildsHistoryLimit: 5
>   triggers:
>     - generic:
>         allowEnv: true
>         secret: secret101
>       type: Generic
> status:
>   lastVersion: 1
> {code}
> {code:yaml|title=Secret}
> apiVersion: v1
> data:
>   settings.xml: >-
>     PHNldHRpbmdzPgogPHByb2ZpbGVzPiAgPHByb2ZpbGU+ICAgICA8aWQ+dGVzdDwvaWQ+ICAgICA8cmVwb3NpdG9yaWVzPiAgICAgICA8cmVwb3NpdG9yeT4gICAgICAgICA8aWQ+RUFQLTc8L2lkPiAgICAgICAgIDxuYW1lPkVBUDcgcmVwbzwvbmFtZT4gICAgICAgICA8dXJsPmh0dHBzOi8vbWF2ZW4ucmVwb3NpdG9yeS5yZWRoYXQuY29tL2dhLzwvdXJsPiAgICAgICA8L3JlcG9zaXRvcnk+ICAgICA8L3JlcG9zaXRvcmllcz4gICA8L3Byb2ZpbGU+ICA8L3Byb2ZpbGVzPiAgPGFjdGl2ZVByb2ZpbGVzPiAgICA8YWN0aXZlUHJvZmlsZT50ZXN0PC9hY3RpdmVQcm9maWxlPiA8L2FjdGl2ZVByb2ZpbGVzPiA8L3NldHRpbmdzPg==
> kind: Secret
> metadata:
>   creationTimestamp: '2019-08-19T13:20:41Z'
>   name: test-secret
>   namespace: mchoma
>   resourceVersion: '1345244'
>   selfLink: /api/v1/namespaces/mchoma/secrets/test-secret
>   uid: 246843e8-c284-11e9-b93c-fa163e9a0fb6
> type: Opaque
> {code}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list