Skip to content

Commit

Permalink
Merge pull request #338 from openshift-cherrypick-robot/cherry-pick-3…
Browse files Browse the repository at this point in the history
…34-to-release-4.11

[release-4.11] OCPBUGS-4324: backport PodNetworkConnectivityCheck gather script #334
  • Loading branch information
openshift-merge-robot committed Dec 13, 2022
2 parents 32bca40 + c3cc056 commit 44f6ada
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions collection-scripts/gather
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,8 @@ oc adm inspect --dest-dir must-gather --rotated-pod-logs "${group_resources_text
# Gather SR-IOV resources
/usr/bin/gather_sriov

# Gather PodNetworkConnectivityCheck
/usr/bin/gather_podnetworkconnectivitycheck

# force disk flush to ensure that all data gathered is accessible in the copy container
sync
7 changes: 7 additions & 0 deletions collection-scripts/gather_podnetworkconnectivitycheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
BASE_COLLECTION_PATH="/must-gather"
POD_NETWORK_CHECK="${BASE_COLLECTION_PATH}/pod_network_connectivity_check/"

mkdir -p ${POD_NETWORK_CHECK}

oc get podnetworkconnectivitychecks -n openshift-network-diagnostics -o yaml > ${POD_NETWORK_CHECK}/podnetworkconnectivitychecks.yaml

0 comments on commit 44f6ada

Please sign in to comment.