Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestDaemonNoSpaceLeftOnDeviceError: Adjust to snapshotters #46593

Conversation

vvoland
Copy link
Contributor

@vvoland vvoland commented Oct 4, 2023

- What I did
Made TestDaemonNoSpaceLeftOnDeviceError pass with containerd integration enabled.

- How I did it

  • Pass empty containerd socket which forces the daemon to create a new supervised containerd. Otherwise a global containerd daemon will be used and the pulled image data will be stored in its data directory, instead of the the newly specified data-root that has a limited storage capacity.

  • Don't try to use vfs snapshotter, instead use native which is containerd's equivalent for vfs.

- How to verify it

$ make TEST_FILTER=TestDaemonNoSpaceLeftOnDeviceError TEST_IGNORE_CGROUP_CHECK=1 DOCKER_GRAPHDRIVER=overlayfs TEST_INTEGRATION_USE_SNAPSHOTTER=1 \
    test-integration
-=== FAIL: amd64.integration-cli TestDockerDaemonSuite/TestDaemonNoSpaceLeftOnDeviceError (4.11s)
-    docker_cli_daemon_test.go:1641: assertion failed: expression is false: strings.Contains(pullOut, "no space left on device")
-    check_test.go:589: [d39a69b3940cb] daemon is not started
-    --- FAIL: TestDockerDaemonSuite/TestDaemonNoSpaceLeftOnDeviceError (4.11s)
+=== RUN   TestDockerDaemonSuite/TestDaemonNoSpaceLeftOnDeviceError
+    check_test.go:589: [d17531973e45d] daemon is not started
+--- PASS: TestDockerDaemonSuite (7.14s)
+    --- PASS: TestDockerDaemonSuite/TestDaemonNoSpaceLeftOnDeviceError (7.14s)

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@vvoland vvoland added status/2-code-review area/testing kind/bugfix PR's that fix bugs containerd-integration Issues and PRs related to containerd integration labels Oct 4, 2023
@vvoland vvoland added this to the 25.0.0 milestone Oct 4, 2023
- Pass empty containerd socket which forces the daemon to create a new
  supervised containerd. Otherwise a global containerd daemon will be
  used and the pulled image data will be stored in its data directory,
  instead of the the newly specified `data-root` that has a limited
  storage capacity.

- Don't try to use `vfs` snapshotter, instead use `native` which is
  containerd's equivalent for `vfs`.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland force-pushed the integration-cli-TestDaemonNoSpaceLeftOnDeviceError-new-containerd branch from e84314e to 1f6bacc Compare October 4, 2023 13:59
@thaJeztah
Copy link
Member

CI failure looks unrelated, but wondering why it fails 🤔

=== FAIL: amd64.integration-cli TestDockerHubPullSuite/TestPullNonExistingImage (2.79s)
    docker_cli_pull_test.go:120: assertion failed: expression is false: strings.Contains(record.out, fmt.Sprintf("pull access denied for %s, repository does not exist or may require 'docker login'", record.e.repo)): expected image not found error messages
    --- FAIL: TestDockerHubPullSuite/TestPullNonExistingImage (2.79s)

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@vvoland
Copy link
Contributor Author

vvoland commented Oct 5, 2023

The failure is caused by Hub randomly returning 500 when requesting an auth token for a non-existing registry. Already reported it and should be fixed soon.

@vvoland vvoland merged commit ee77ba5 into moby:master Oct 5, 2023
@thaJeztah
Copy link
Member

saw the thread on our slack; thanks for raising it! <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing containerd-integration Issues and PRs related to containerd integration kind/bugfix PR's that fix bugs status/2-code-review
Projects
Development

Successfully merging this pull request may close these issues.

3 participants