Step: gather-network

The network step runs the must gather network tool to gather network artifacts.

Container image used for this step: cli

cli resolves to an image built or imported by the ci-operator configuration (documentation).

Environment

Step exposes no environmental variables except the defaults.

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/bin/bash
#set -x

if test ! -f "${KUBECONFIG}"
then
	echo "No kubeconfig, so no point in gathering extra artifacts."
	exit 0
fi

echo "Gathering network ovn artifacts ..."

mkdir -p ${ARTIFACT_DIR}/network-ovn

oc adm must-gather --dest-dir="${ARTIFACT_DIR}/network-ovn" -- /usr/bin/gather_network_logs
tar -czC "${ARTIFACT_DIR}/network-ovn" -f "${ARTIFACT_DIR}/network-ovn.tar.gz" .
rm -rf "${ARTIFACT_DIR}/network-ovn"

Properties

Property Value Description
Resource requests (cpu) 300m Used in .resources.requests of the pod running this step.
Resource requests (memory) 300Mi Used in .resources.requests of the pod running this step.
Optional on success[?] true Allows the step to be skipped if all steps in pre and test phases succeeded.

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/gather/network/gather-network-ref.yaml

Owners:

Approvers:

Source code for this page located on GitHub