Skip to content

Commit 7c16524

Browse files
committed
network: Gather OVN-Kubernetes UDN CRs
The ClusterUserDefinedNetwork (CUDN) is cluster-scoped. The UserDefinedNetwork (UDN) is namespace-scoped. Both CRDs are installed by cluster-network-operator [1]. Creating CUDN CR result with a NetworkAttachmentDefinition (NAD) CR being created according to the CUDN CR 'spec.network', in each selected namespaces according to the CUDN CR 'spec.namespaceSelector'. Creating UDN CR result in NAD CR being created at the same namespaces as the UDN CR resides according to its spec. Collect CUDN and UDN CRs. Having CUDN and UDN CRs collected enable troubleshooting OVN-Kubernetes user-defined networks in case of miss-configurations or env issues. The [1] https://github.com/openshift/cluster-network-operator Signed-off-by: Or Mergi <[email protected]>
1 parent 33763a3 commit 7c16524

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

collection-scripts/gather_network_logs_basics

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ gather_scale_data
141141

142142
if [[ "${NETWORK_TYPE}" == "ovnkubernetes" ]]; then
143143
oc adm inspect ${log_collection_args} --dest-dir must-gather egressips.k8s.ovn.org
144+
oc adm inspect ${log_collection_args} --dest-dir must-gather clusteruserdefinednetworks.k8s.ovn.org
145+
oc adm inspect ${log_collection_args} --dest-dir must-gather userdefinednetworks.k8s.ovn.org --all-namespaces
144146
oc adm inspect ${log_collection_args} --dest-dir must-gather adminnetworkpolicies.policy.networking.k8s.io
145147
oc adm inspect ${log_collection_args} --dest-dir must-gather baselineadminnetworkpolicies.policy.networking.k8s.io
146148
gather_ovn_kubernetes_data

0 commit comments

Comments
 (0)