Skip to content

Commit 2ada133

Browse files
committed
kata.genpolicy: use pause image from ghcr.io
* dev-docs/e2e: remove pause error from well-known-errors.md * nodeinstaller: use pause image from ghcr * e2e/proxy/proxy_test.go: change detection url to ghcr.io Signed-off-by: Spyros Seimenis <[email protected]>
1 parent cd8166f commit 2ada133

File tree

9 files changed

+30
-51
lines changed

9 files changed

+30
-51
lines changed

dev-docs/e2e/well-known-errors.md

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -111,47 +111,6 @@ time=2025-12-06T01:06:56.511Z level=DEBUG msg="pod status" namespace=testmemdump
111111
Test: TestMemDump/memory_dump_does_not_contain_canary_string
112112
```
113113

114-
## 005 - mcr.microsoft.com: connection reset by peer
115-
116-
Likely a transient network issue while pulling from the Microsoft Container Registry.
117-
118-
Not much we can do about it except retrying the image pull or using another pause image.
119-
120-
```
121-
time=2025-12-06T00:52:31.267Z level=DEBUG msg="Pulling manifest and config for mcr.microsoft.com/oss/kubernetes/pause:3.6" position=genpolicy::registry
122-
time=2025-12-06T00:52:32.530Z level=DEBUG msg=""
123-
time=2025-12-06T00:52:32.530Z level=ERROR msg="thread 'main' panicked at src/registry.rs:150:17:"
124-
time=2025-12-06T00:52:32.530Z level=ERROR msg="Failed to pull container image manifest and config - error: RequestError("
125-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" reqwest::Error {"
126-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" kind: Request,"
127-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" url: \"https://mcr.microsoft.com/v2/oss/kubernetes/pause/manifests/3.6\","
128-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" source: hyper_util::client::legacy::Error("
129-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" SendRequest,"
130-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" hyper::Error("
131-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" Io,"
132-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" Os {"
133-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" code: 104,"
134-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" kind: ConnectionReset,"
135-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" message: \"Connection reset by peer\","
136-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" },"
137-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" ),"
138-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" ),"
139-
time=2025-12-06T00:52:32.530Z level=ERROR msg=" },"
140-
time=2025-12-06T00:52:32.530Z level=ERROR msg=)
141-
time=2025-12-06T00:52:32.530Z level=ERROR msg="stack backtrace:"
142-
time=2025-12-06T00:52:32.536Z level=ERROR msg=" 0: __rustc::rust_begin_unwind"
143-
time=2025-12-06T00:52:32.536Z level=ERROR msg=" 1: core::panicking::panic_fmt"
144-
time=2025-12-06T00:52:32.536Z level=ERROR msg=" 2: genpolicy::pod::Container::init::{{closure}}"
145-
time=2025-12-06T00:52:32.536Z level=ERROR msg=" 3: <genpolicy::deployment::Deployment as genpolicy::yaml::K8sResource>::init::{{closure}}"
146-
time=2025-12-06T00:52:32.536Z level=ERROR msg=" 4: genpolicy::policy::AgentPolicy::from_files::{{closure}}"
147-
time=2025-12-06T00:52:32.536Z level=ERROR msg=" 5: genpolicy::main::{{closure}}"
148-
time=2025-12-06T00:52:32.536Z level=ERROR msg=" 6: genpolicy::main"
149-
time=2025-12-06T00:52:32.537Z level=ERROR msg="note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace."
150-
Error: generate policies: failed to generate policy for "openssl-frontend" in "/tmp/nix-shell.K1AGUb/TestDeterminsticPolicyGeneration3638285464/001/resources.yml": running genpolicy: exit status 101
151-
```
152-
153-
- https://github.com/edgelesssys/contrast/actions/runs/19978992654/job/57301706373
154-
155114
## 006 - genpolicy: failed to lookup address information
156115

157116
Likely a transient network issue.

e2e/proxy/proxy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ func TestHTTPProxy(t *testing.T) {
6868
coordinatorConnectionProxied.Store(true)
6969
}
7070
// While we could parse the expected registries from the ImageReplacementsFile, we know
71-
// that the pause container image will come from MCR, so we use that as an indicator for
71+
// that the pause container image will come from ghcr.io, so we use that as an indicator for
7272
// registry requests being proxied.
73-
if addr == "mcr.microsoft.com:443" {
73+
if addr == "ghcr.io:443" {
7474
registryConnectionProxied.Store(true)
7575
}
7676
ctx, cancel := context.WithTimeout(t.Context(), 2*time.Second)

nodeinstaller/internal/containerdconfig/testdata/containerd-config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version = 2
33
oom_score = 0
44
[plugins."io.containerd.grpc.v1.cri"]
5-
sandbox_image = "mcr.microsoft.com/oss/kubernetes/pause:3.6"
5+
sandbox_image = "ghcr.io/edgelesssys/kubernetes/pause:3.6"
66
[plugins."io.containerd.grpc.v1.cri".containerd]
77
disable_snapshot_annotations = false
88
default_runtime_name = "runc"

nodeinstaller/internal/containerdconfig/testdata/expected-bare-metal-qemu-snp-gpu.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ address = '0.0.0.0:10257'
88

99
[plugins]
1010
[plugins.'io.containerd.grpc.v1.cri']
11-
sandbox_image = 'mcr.microsoft.com/oss/kubernetes/pause:3.6'
11+
sandbox_image = 'ghcr.io/edgelesssys/kubernetes/pause:3.6'
1212

1313
[plugins.'io.containerd.grpc.v1.cri'.cni]
1414
bin_dir = '/opt/cni/bin'

nodeinstaller/internal/containerdconfig/testdata/expected-bare-metal-qemu-snp.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ address = '0.0.0.0:10257'
88

99
[plugins]
1010
[plugins.'io.containerd.grpc.v1.cri']
11-
sandbox_image = 'mcr.microsoft.com/oss/kubernetes/pause:3.6'
11+
sandbox_image = 'ghcr.io/edgelesssys/kubernetes/pause:3.6'
1212

1313
[plugins.'io.containerd.grpc.v1.cri'.cni]
1414
bin_dir = '/opt/cni/bin'

nodeinstaller/internal/containerdconfig/testdata/expected-bare-metal-qemu-tdx.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ address = '0.0.0.0:10257'
88

99
[plugins]
1010
[plugins.'io.containerd.grpc.v1.cri']
11-
sandbox_image = 'mcr.microsoft.com/oss/kubernetes/pause:3.6'
11+
sandbox_image = 'ghcr.io/edgelesssys/kubernetes/pause:3.6'
1212

1313
[plugins.'io.containerd.grpc.v1.cri'.cni]
1414
bin_dir = '/opt/cni/bin'

packages/by-name/kata/genpolicy/genpolicy_settings_dev.patch

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@ diff --git a/genpolicy-settings.json b/genpolicy-settings.json
22
index b5c1c1968..06c02f098 100644
33
--- a/genpolicy-settings.json
44
+++ b/genpolicy-settings.json
5-
@@ -346,7 +346,8 @@
5+
@@ -291,7 +291,7 @@
6+
"enable_configmap_secret_storages": false
7+
},
8+
"cluster_config": {
9+
- "pause_container_image": "mcr.microsoft.com/oss/kubernetes/pause:3.6",
10+
+ "pause_container_image": "ghcr.io/edgelesssys/kubernetes/pause:3.6",
11+
"guest_pull": true,
12+
"pause_container_id_policy": "v1"
13+
},
14+
@@ -313,7 +313,8 @@
615
"^AZURE_FEDERATED_TOKEN_FILE=/var/run/secrets/azure/tokens/azure-identity-token$",
716
"^AZURE_AUTHORITY_HOST=https://login\\.microsoftonline\\.com/$",
817
"^TERM=xterm$",
@@ -12,7 +21,7 @@ index b5c1c1968..06c02f098 100644
1221
]
1322
},
1423
"UpdateInterfaceRequest": {
15-
@@ -363,7 +364,9 @@
24+
@@ -330,7 +331,9 @@
1625
],
1726
"ExecProcessRequest": {
1827
"allowed_commands": [],
@@ -23,7 +32,7 @@ index b5c1c1968..06c02f098 100644
2332
},
2433
"UpdateRoutesRequest": {
2534
"forbidden_device_names": [
26-
@@ -375,8 +378,8 @@
35+
@@ -350,8 +353,8 @@
2736
]
2837
},
2938
"CloseStdinRequest": false,

packages/by-name/kata/genpolicy/genpolicy_settings_prod.patch

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@ diff --git a/genpolicy-settings.json b/genpolicy-settings.json
22
index bc1d3fc52..91126cf8c 100644
33
--- a/genpolicy-settings.json
44
+++ b/genpolicy-settings.json
5-
@@ -366,7 +366,7 @@
5+
@@ -291,7 +291,7 @@
6+
"enable_configmap_secret_storages": false
7+
},
8+
"cluster_config": {
9+
- "pause_container_image": "mcr.microsoft.com/oss/kubernetes/pause:3.6",
10+
+ "pause_container_image": "ghcr.io/edgelesssys/kubernetes/pause:3.6",
11+
"guest_pull": true,
12+
"pause_container_id_policy": "v1"
13+
},
14+
@@ -350,7 +350,7 @@
615
]
716
},
817
"CloseStdinRequest": false,
@@ -11,3 +20,4 @@ index bc1d3fc52..91126cf8c 100644
1120
"UpdateEphemeralMountsRequest": false,
1221
"WriteStreamRequest": false
1322
}
23+

packages/by-name/kata/genpolicy/package.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ rustPlatform.buildRustPackage rec {
6969
'';
7070
};
7171

72+
# These get applied on top of all the patches under the "runtime" folder
7273
settings = applyPatches {
7374
src = settings-base;
7475
patches = [ ./genpolicy_settings_prod.patch ];

0 commit comments

Comments
 (0)