Skip to content

Conversation

@Jakob-Naucke
Copy link
Contributor

Log pods and VM descriptions and console outputs.

If this is accepted, I can push it to our registry. Tested with OKD.

@openshift-ci
Copy link

openshift-ci bot commented Jan 12, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Jakob-Naucke

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -0,0 +1,29 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we collect also our crs? Like approved images, images and the trusted execution clusters

DEPLOYMENTS=("trusted-cluster-operator" "register-server" "trustee-deployment")
NAMESPACES=$(oc get namespaces -o jsonpath='{.items[*].metadata.name}')

for ns in ${NAMESPACES}; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also collect the kubevirt logs, it can give helpful information why a VM might fail to start in the tests.


oc get virtualmachines -n "${ns}" -o yaml &> "${COLLECTION_PATH}/virtualmachines-${ns}.yml"

VIRT_LAUNCHER_PODS=$(oc get pods -n "${ns}" -o name 2> /dev/null | grep "^pod/virt-launcher-")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you can get the pods by label, something like -l kubevirt.io=virt-launcher


VIRT_LAUNCHER_PODS=$(oc get pods -n "${ns}" -o name 2> /dev/null | grep "^pod/virt-launcher-")
for pod in ${VIRT_LAUNCHER_PODS}; do
oc logs "${pod}" -n "${ns}" -c guest-console-log &> "${COLLECTION_PATH}/logs/${pod}-${ns}-guest-console.log"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, collect all the containers, in virt-launcher pod. Also, the compute container can have really important information

fi
done

oc get virtualmachines -n "${ns}" -o yaml &> "${COLLECTION_PATH}/virtualmachines-${ns}.yml"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, get also the VMI objects, there are different information reported on VM and VMI objects

@Jakob-Naucke
Copy link
Contributor Author

Updated. My OKD cluster acted up though so I still need to re-test it on that (kind went fine).

Log pods and CRs

Signed-off-by: Jakob Naucke <jnaucke@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Jan 13, 2026

@Jakob-Naucke: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/operator-lifecycle-verify 54bc522 link true /test operator-lifecycle-verify
ci/prow/infra-provision-verify 54bc522 link true /test infra-provision-verify

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants