Skip to content

Commit

Permalink
Debug GW failure
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Nov 21, 2024
1 parent 10c1cb6 commit a0e45d7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ jobs:
- name: Post mortem
if: failure()
uses: submariner-io/shipyard/gh-actions/post-mortem@devel

- name: Gateway
shell: bash
run: |
scripts/dump_gw.sh
13 changes: 13 additions & 0 deletions scripts/dump_gw.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

pod=$(kubectl --context=cluster1 get pods --selector="app=submariner-gateway" -n "submariner-operator" -o jsonpath='{.items[*].metadata.name}')
echo "GW Pod: "$pod
echo "::group::GW Pod info"
kubectl --context=cluster1 -n submariner-operator describe pods $pod
echo "::endgroup::"
echo "::group::GW Pod init log"
kubectl --context=cluster1 -n submariner-operator logs -c submariner-gateway-init $pod
echo "::endgroup::"
echo "::group::Prev GW Pod init log"
kubectl --context=cluster1 -n submariner-operator logs -p -c submariner-gateway-init $pod
echo "::endgroup::"

0 comments on commit a0e45d7

Please sign in to comment.