Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
Signed-off-by: stevenhorsman <[email protected]>
  • Loading branch information
stevenhorsman committed Sep 25, 2023
1 parent 3addc06 commit 0a967f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration/kubernetes/confidential/agent_image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ setup() {
pod_config="$(new_pod_config "${image_authenticated}")"
echo "Pod config: ${pod_config}"

# Print the logs
echo "-- Kata logs:"
sudo journalctl -xe -t kata --since "$test_start_date" -n 100000

echo "-- containerd logs:"
sudo journalctl -xe -t containerd --since "$test_start_date" -n 100000

echo "-- kubelet logs:"
sudo journalctl -xe -t kubelet --since "$test_start_date" -n 100000

assert_pod_fail "${pod_config}"
assert_logs_contain "containerd" 'failed to resolve reference \"quay.io/kata-containers/confidential-containers-auth:test\": pulling from host quay.io failed with status code \[manifests test\]: 401 UNAUTHORIZED'
}
Expand Down

0 comments on commit 0a967f9

Please sign in to comment.