Skip to content

Commit

Permalink
Add must gather call
Browse files Browse the repository at this point in the history
Signed-off-by: CS Zhang <zhangcho@us.ibm.com>
  • Loading branch information
cs-zhang committed Feb 23, 2024
1 parent a819aff commit 023b20f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,12 +638,15 @@ cat > "/tmp/powervs-config.json" << EOF
{"id":"${POWERVS_USER_ID}","apikey":"${IBMCLOUD_API_KEY}","region":"${POWERVS_REGION}","zone":"${POWERVS_ZONE}","serviceinstance":"${POWERVS_SERVICE_INSTANCE_ID}","resourcegroup":"${POWERVS_RESOURCE_GROUP}"}
EOF
cp "/tmp/powervs-config.json" "${SHARED_DIR}/"
cp "/etc/sno-power-credentials/ssh-privatekey" "${SHARED_DIR}/"
cp "/etc/sno-power-credentials/*" "${SHARED_DIR}/"
#Copy the auth artifacts to shared dir for the next steps
scp "${SSH_OPTIONS[@]}" root@${BASTION}:${BASTION_CI_SCRIPTS_DIR}/auth/* "${SHARED_DIR}/"
echo "Finished prepare_next_steps"

echo "Test cluster accessiblity"
CLUSTER_INFO="/tmp/cluster-${CLUSTER_TYPE}-${CLUSTER_NAME}.txt"
export KUBECONFIG="${SHARED_DIR}/kubeconfig"
oc get node -o wide
oc get clusterversion
oc get node -o wide >> ${CLUSTER_INFO}
oc get clusterversion >> ${CLUSTER_INFO}
oc get pod -A -o wide >> ${CLUSTER_INFO}
cp ${CLUSTER_INFO} "${ARTIFACT_DIR}/"
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
chain:
as: upi-powervs-sno-post
steps:
- chain: gather-powervs
- ref: upi-deprovision-powervs-sno
documentation: |-
upi-powervs-sno-post destroys sno cluster created via upi-powervs-sno-pre

0 comments on commit 023b20f

Please sign in to comment.