Skip to content

pkg/archive.TestTarUntarWithXattr fails on recent kernel #38289

@AkihiroSuda

Description

@AkihiroSuda

Description

pkg/archive.TestTarUntarWithXattr fails on recent kernel

Steps to reproduce the issue:

$ TESTDIRS='github.com/docker/docker/pkg/archive' make test-unit
...
--- FAIL: TestTarUntarWithXattr (0.00s)
    archive_unix_test.go:236: assertion failed: error is not nil: invalid argument

err = system.Lsetxattr(filepath.Join(origin, "2"), "security.capability", []byte{0x00}, 0)
assert.NilError(t, err)

Tested on 852542b, with Ubuntu 18.04.1 kernel 4.15.0-39-generic

Describe the results you received:

The test failed

Describe the results you expected:

The test should success

Additional information you deem important (e.g. issue happens only occasionally):

CI does not seem hitting the issue (probably using older kernel shipped with Ubuntu 16.04)

Output of docker version:

Client:
 Version:           master-dockerproject-2018-11-28
 API version:       1.40
 Go version:        go1.11.1
 Git commit:        69bd2728
 Built:             Wed Nov 28 23:39:38 2018
 OS/Arch:           linux/amd64
 Experimental:      true

Server:
 Engine:
  Version:          master-dockerproject-2018-11-28
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.11.2
  Git commit:       852542b
  Built:            Wed Nov 28 23:48:23 2018
  OS/Arch:          linux/amd64
  Experimental:     true

Output of docker info:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 37
Server Version: master-dockerproject-2018-11-28
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: kata runc runnc runsc runsc-kvm
Default Runtime: runc
Init Binary: docker-init
containerd version: de1f167ab96338a9f5c2b17347abf84bdf1dd411
runc version: b1068fb9258d2cc5aa59505fbb703d914120013d
init version: fec3683
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.15.0-39-generic
Operating System: Ubuntu 18.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.829GiB
Name: suda-ws01
ID: MTEP:U62V:AHM4:G7PE:XLR6:W4WR:WL4B:G5MY:VM5S:2MAV:GP25:ETL6
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 22
 Goroutines: 43
 System Time: 2018-11-29T13:59:54.443932021+09:00
 EventsListeners: 0
Username: akihirosuda
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Additional environment details (AWS, VirtualBox, physical, etc.):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions