Skip to content

Commit

Permalink
CI: Log ORC resources when e2e exits with failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbooth committed Jan 30, 2025
1 parent 4f23daa commit 0e3ef5a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ make load-credentials

# Apply the cirros server example and wait for the server to be available
kubectl apply -k apply/cirros --server-side

function logresources() {
# If we're exiting with an error
if [ $? != 0 ]; then
# Dump the complete state of all ORC objects
kubectl get openstack -o yaml -A
fi
}
trap logresources EXIT

kubectl wait --timeout=10m --for=condition=available server ${USER}-cirros-server

openstack server show "$(kubectl get server ${USER}-cirros-server -o jsonpath='{.status.id}')"

0 comments on commit 0e3ef5a

Please sign in to comment.