<p dir="auto">The e2e framework <code class="notranslate">deleteNs</code> needs to be smarter to better help triage issues in this space, as they all typically tend to be unique snowflakes particular to a problem with the node, pod, container runtime itself and rarely the controller that fundamentally drives deletes.</p>
<p dir="auto">Ideas:</p>
<ul dir="auto">
<li>deleteNS caches the set of Events in the namespace prior to invoking deletion, in cases of failure, logs all events that occurred in that namespace prior to the delete to know if there was an unexpected error event</li>
<li>log all pods in YAML or JSON in internal API version to see their state as observed from the API server to give clues as to why they are hung.  <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lavalamp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lavalamp">@lavalamp</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a> - is there a good one liner that I can reference that takes a pod and outputs to YAML?</li>
<li>log all information about nodes in YAML or JSON format that have pods actively scheduled against them that are not terminating (would help us know if there was a node problem encountered).</li>
</ul>
<p dir="auto">Input from others would be appreciated, but this seems like the general purpose issue that is often really hard to diagnose and debug during each release since we don't capture any information to help localize why the error happened.</p>
<p dir="auto">@kubernetes/sig-api-machinery @kubernetes/rh-cluster-infra</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Get all -l'app=cassandra' {{range.items}}{{range .metadata.labels}}{{.}}:{{end}}{{end}}
  Expected: cassandra:cassandra:cassandra:
  Got:      cassandra:cassandra:cassandra:cassandra:"><pre class="notranslate"><code class="notranslate">Get all -l'app=cassandra' {{range.items}}{{range .metadata.labels}}{{.}}:{{end}}{{end}}
  Expected: cassandra:cassandra:cassandra:
  Got:      cassandra:cassandra:cassandra:cassandra:
</code></pre></div>