Skip to content

[20.10 backport] Use docker media type for plugin layers#42256

Merged
thaJeztah merged 1 commit into
moby:20.10from
cpuguy83:20.10_plugin_layer_mediatype
Apr 7, 2021
Merged

[20.10 backport] Use docker media type for plugin layers#42256
thaJeztah merged 1 commit into
moby:20.10from
cpuguy83:20.10_plugin_layer_mediatype

Conversation

@cpuguy83

@cpuguy83 cpuguy83 commented Apr 6, 2021

Copy link
Copy Markdown
Member

Cherry-picks #42210 to 20.10
fixes #42191


This was changed as part of a refactor to use containerd dist code. The
problem is the OCI media types are not compatible with older versions of
Docker.

This was changed as part of a refactor to use containerd dist code. The
problem is the OCI media types are not compatible with older versions of
Docker.

Signed-off-by: Brian Goff <[email protected]>
(cherry picked from commit a876ede)
Signed-off-by: Brian Goff <[email protected]>
@cpuguy83
cpuguy83 requested review from thaJeztah and tonistiigi April 6, 2021 16:54
@thaJeztah thaJeztah changed the title [20.10] Use docker media type for plugin layers [20.10 backport] Use docker media type for plugin layers Apr 6, 2021
@thaJeztah thaJeztah added this to the 20.10.6 milestone Apr 6, 2021

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah

Copy link
Copy Markdown
Member

Looks like this test has become flaky recently;

--- FAIL: TestDaemonHostGatewayIP (5.50s)
    daemon_linux_test.go:161: [d58c26946a29a] failed to start daemon with arguments [--data-root /go/src/github.com/docker/docker/bundles/test-integration/TestDaemonHostGatewayIP/d58c26946a29a/root --exec-root /tmp/dxr/d58c26946a29a --pidfile /go/src/github.com/docker/docker/bundles/test-integration/TestDaemonHostGatewayIP/d58c26946a29a/docker.pid --userland-proxy=true --containerd-namespace d58c26946a29a --containerd-plugins-namespace d58c26946a29ap --containerd /var/run/docker/containerd/containerd.sock --host unix:///tmp/docker-integration/d58c26946a29a.sock --debug --storage-driver overlay2 --host-gateway-ip=6.7.8.9] : [d58c26946a29a] daemon exited during startup: exit status 1

@thaJeztah

Copy link
Copy Markdown
Member

Failure is unrelated and known to be flaky;

=== RUN   TestDockerSwarmSuite/TestSwarmClusterRotateUnlockKey
    --- FAIL: TestDockerSwarmSuite/TestSwarmClusterRotateUnlockKey (91.38s)
        docker_cli_swarm_test.go:1321: [d45fa6d3c88d9] joining swarm manager [d8326cb5603ed]@0.0.0.0:2477, swarm listen addr 0.0.0.0:2478
        docker_cli_swarm_test.go:1322: [d783f70cf1189] joining swarm manager [d8326cb5603ed]@0.0.0.0:2477, swarm listen addr 0.0.0.0:2479
        docker_cli_swarm_test.go:1386: [d45fa6d3c88d9] got 'swarm does not have a leader'. retrying (attempt 1/5)
        docker_cli_swarm_test.go:1386: [d45fa6d3c88d9] got 'swarm does not have a leader'. retrying (attempt 2/5)
        docker_cli_swarm_test.go:1386: [d45fa6d3c88d9] got 'swarm does not have a leader'. retrying (attempt 3/5)
        docker_cli_swarm_test.go:1386: [d45fa6d3c88d9] got 'swarm does not have a leader'. retrying (attempt 4/5)
        docker_cli_swarm_test.go:1386: [d45fa6d3c88d9] got 'swarm does not have a leader'. retrying (attempt 5/5)
        docker_cli_swarm_test.go:1393: assertion failed: error is not nil: exit status 1: [d45fa6d3c88d9] failed after 5 retries: exit status 1 (Error response from daemon: rpc error: code = Unknown desc = The swarm does not have a leader. It's possible that too few managers are online. Make sure more than half of the managers are online.
            )

@thaJeztah
thaJeztah merged commit 419b370 into moby:20.10 Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants