Step: openstack-gather

Gather platform-specific diagnostic information about the cluster.

Container image used for this step: openstack-installer

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

Environment

In addition to the default environment, the step exposes the following:

Variable Name Type Variable Content
OS_CLOUD Parameter[?] name of cloud to use from clouds.yaml (default: openstack)

Source Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

set -o nounset
set -o errexit
set -o pipefail

export OS_CLIENT_CONFIG_FILE="${SHARED_DIR}/clouds.yaml"
CLUSTER_NAME=$(<"${SHARED_DIR}/CLUSTER_NAME")

mkdir -p "${ARTIFACT_DIR}/nodes"

openstack server list | grep "$CLUSTER_NAME" > "${ARTIFACT_DIR}/openstack_nodes.log"

for server in $(openstack server list -c Name -f value | grep "$CLUSTER_NAME" | sort); do
	echo -e "\n$ openstack server show $server" >> "${ARTIFACT_DIR}/openstack_nodes.log"
	openstack server show $server               >> "${ARTIFACT_DIR}/openstack_nodes.log"

	openstack console log show $server          &> "${ARTIFACT_DIR}/nodes/console_${server}.log"
done

Properties

Property Value Description
Resource requests (cpu) 10m Used in .resources.requests of the pod running this step.
Resource requests (memory) 100Mi 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/openstack/gather/openstack-gather-ref.yaml

Owners:

Approvers:

Reviewers:

Source code for this page located on GitHub