Commit 1dfd3f0
committed
kata-deploy: keep the default snapshotter in the erofs unpack config
d607cce ("EROFS verity: declare the block size, pin the differ, fail
closed (RM-47/48/50)") writes an unpack_config listing only the erofs
snapshotter. That key replaces containerd's built-in default rather than
extending it, and getSupportedPlatform() in core/transfer/local/pull.go
only accepts an entry whose snapshotter equals the one the pull asked for.
So every pull that does not ask for erofs matches nothing, the unpacker is
built with an empty platform list, and the pull fails with
unable to initialize unpacker: no unpack platforms defined
Since we also set use_local_image_pull = false, every CRI pull goes through
the transfer service, so this takes down image pulls node-wide - the erofs
k8s jobs fail it on each test.
Restate containerd's default entry next to the erofs binding. An erofs pull
still goes through the erofs differ, which is all RM-50 asked for, and
everything else pulls the way it did before kata-deploy touched the config.
Ordering is safe: a match requires the snapshotter to be equal, and a pull
that omits it explicitly prefers the default snapshotter entry.
Assisted-by: GitHub Copilot (Claude)
Signed-off-by: Saul Paredes <saulparedes@microsoft.com>1 parent 6004be4 commit 1dfd3f0
1 file changed
Lines changed: 50 additions & 5 deletions
Lines changed: 50 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
41 | 57 | | |
42 | 58 | | |
43 | 59 | | |
| |||
603 | 619 | | |
604 | 620 | | |
605 | 621 | | |
606 | | - | |
607 | 622 | | |
608 | 623 | | |
609 | 624 | | |
610 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
611 | 628 | | |
612 | 629 | | |
613 | 630 | | |
| |||
619 | 636 | | |
620 | 637 | | |
621 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
622 | 667 | | |
623 | 668 | | |
624 | 669 | | |
| |||
0 commit comments