Skip to content

Conversation

@jsturtevant
Copy link
Contributor

The walker plugin isn't used on Windows so it shouldn't be loaded. It results in:

ctr: rpc error: code = Unknown desc = failed to extract layer sha256:14cf21987a8be92c5cd8ca93777bdf9535cd176cc50ff972ab8f93e884fe7e30: failed to mount C:\Users\jstur\AppData\Local\Temp\containerd-mount4084806450: no Files folder in layer 2081

Fixes #8563

After #9432 the local transfer service fails to pull Windows containers because it incorrectly selects the wrong differ. See #8563 for details on the failures with the transfer service.

The issue arises because the platform.Parse/Format doesn't pass the all the required info and would be fixed by #9609 allowing it to select the correct differ. In this case we still can't use the walker so we should remove it from Windows default configuration.

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
@jsturtevant
Copy link
Contributor Author

@kiashok fyi

@dmcgowan
Copy link
Member

We can take this in, I still have a few questions about the impact. Does the native snapshotter still work on Windows for testing and will this differ still work with that snapshotter? Does this fail on specific mount types which we could just filter out in the walking differ? The differs should be able to return NotImplemented when it is given parameters it cannot use. We also need to be smarter in the transfer service about the default unpack configurations, it was recently updated to not set a static default but only apply a default when nothing is configured.

@kiashok
Copy link
Contributor

kiashok commented Jan 24, 2024

cc @ambarve

@jsturtevant
Copy link
Contributor Author

Does the native snapshotter still work on Windows for testing and will this differ still work with that snapshotter?

The native snapshotter is not enabled for Windows so I believe this doesn't affect the tests in anyway.

_ "github.com/containerd/containerd/v2/plugins/snapshots/native/plugin"

@dmcgowan dmcgowan added this pull request to the merge queue Jan 25, 2024
Merged via the queue into containerd:main with commit 611da71 Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using Transfer service on Windows fails due to wrong differ selected at plugin start up

6 participants