-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Open
Labels
area/testingkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
Description
Description
Steps to reproduce the issue:
- Change the image specified by
swarm.ServiceSpec.TaskTemplate.ContainerSpecfrombusybox:latesttobusybox:glibclike this:
func simpleNwTestService(s *swarm.Service) {
ureplicas := uint64(1)
restartDelay := time.Duration(100 * time.Millisecond)
s.Spec = swarm.ServiceSpec{
TaskTemplate: swarm.TaskSpec{
ContainerSpec: &swarm.ContainerSpec{
Image: "busybox:glibc",
Command: []string{"/bin/top"},
},
RestartPolicy: &swarm.RestartPolicy{
Delay: &restartDelay,
},
},
Mode: swarm.ServiceMode{
Replicated: &swarm.ReplicatedService{
Replicas: &ureplicas,
},
},
}
s.Spec.Name = "glibc"
}
make test-integrationTestAPISwarmHealthcheckNonecase will fail:
06:49:19 ----------------------------------------------------------------------
06:49:19 FAIL: docker_api_swarm_test.go:935: DockerSwarmSuite.TestAPISwarmHealthcheckNone
06:49:19
06:49:19 [d0fe8fd82b3c4] waiting for daemon to start
06:49:19 [d0fe8fd82b3c4] daemon started
06:49:19
06:49:19 docker_api_swarm_test.go:952:
06:49:19 waitAndAssert(c, defaultReconciliationTimeout, d.CheckActiveContainerCount, checker.Equals, instances)
06:49:19 docker_utils_test.go:465:
06:49:19 c.Assert(v, checker, args...)
06:49:19 ... obtained int = 0
06:49:19 ... expected int = 1
06:49:19
06:49:19 [d0fe8fd82b3c4] exiting daemon
Describe the results you received:
simpleTestService is not created with busybox:glibc image, but it can succeed with busybox:latest image
Describe the results you expected:
Should succeed to create simpleTestService with any valid docker image.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:07:05 2017
OS/Arch: linux/arm64
Server:
Engine:
Version: dev
API version: 1.36 (minimum version 1.12)
Go version: go1.9.4
Git commit: 55d38a7
Built: Thu Feb 22 04:55:20 2018
OS/Arch: linux/arm64
Experimental: false
Output of docker info:
Containers: 50
Running: 2
Paused: 0
Stopped: 48
Images: 265
Server Version: dev
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 macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: active
NodeID: i27p4vzkxrtwg3xxvuwuf2wyf
Is Manager: true
ClusterID: w39ph19ouw44fvd60b6xou82s
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: 10.169.40.51
Manager Addresses:
10.169.40.51:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c
runc version: 6c55f98695e902427906eed2c799e566e3d3dfb5
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.20
Operating System: Ubuntu 16.04.2 LTS
OSType: linux
Architecture: aarch64
CPUs: 64
Total Memory: 125.6GiB
Name: localhost
ID: BIU2:WIL6:FB7G:HHRA:T3TP:UUWN:VUHA:HH4B:SFTR:BUN4:YQCC:OTP4
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, VirtualBox, physical, etc.):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/testingkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.