<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/31221/kubernetes-pull-build-test-e2e-gce/56936/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/31221/kubernetes-pull-build-test-e2e-gce/56936/</a></p>
<p dir="auto">Failed: [k8s.io] InitContainer should invoke init containers on a RestartAlways pod {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134
Sep  1 04:26:51.696: Couldn't delete ns: &quot;e2e-tests-init-container-9wyzy&quot;: the server could not find the requested resource
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134
Sep  1 04:26:51.696: Couldn't delete ns: "e2e-tests-init-container-9wyzy": the server could not find the requested resource
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338
</code></pre></div>
<p dir="auto">Happened on a presubmit run in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172644779" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31221" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/31221/hovercard" href="https://github.com/kubernetes/kubernetes/pull/31221">#31221</a>.</p>
<p dir="auto">The client library has <code class="notranslate">NewGenericServerResponse</code> for handling unexpected errors.  It's supposed to be invoked in <code class="notranslate">transformUnstructuredResponseError</code> which is called from <code class="notranslate">transformResponse</code>.  That error is supposed to be semantically equal to valid api.StatusErrors returned by the server so that <code class="notranslate">apierrors.IsNotFound(err)</code> would return true for any 404.</p>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174505990" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31873" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/31873/hovercard" href="https://github.com/kubernetes/kubernetes/issues/31873">#31873</a> the teardown code of e2e tests which delete the namespace get back an error (that from the apiserver reports a 404) but that error does not report true for <code class="notranslate">apierrors.IsNotFound(err)</code>.  As a result it flags the error.</p>
<p dir="auto">Either the error from the server is wrong (malformed, bad content type, bad proxy) or the client is improperly handling the response.  I can't find any proof that the client mishandles generic 404s from the server (via restclient <code class="notranslate">transformUnstructuredResponseError</code>).</p>
<p dir="auto">Setting to p1 while I triage to see what the impact of correcting the issue is.  Potentially 1.4 if this indeed is hiding / causing other errors.</p>