Skip to content

Commit

Permalink
Gets logs from the ran model
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmerold committed Nov 20, 2024
1 parent 1b086cb commit fc6170b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,29 @@ jobs:
run: tox -vve integration

- name: Gather logs
if: always()
if: failure()
run: |
juju-crashdump -m sdcore
juju-crashdump -m ran
for pod in $(sudo microk8s.kubectl -n sdcore get pods -o json | jq .items[].metadata.name | tr -d '"'); do
sudo microk8s.kubectl -n sdcore logs $pod --all-containers > pod-$pod.log
sudo microk8s.kubectl -n sdcore logs $pod --all-containers > sdcore-$pod.log
done
for pod in $(sudo microk8s.kubectl -n ran get pods -o json | jq .items[].metadata.name | tr -d '"'); do
sudo microk8s.kubectl -n ran logs $pod --all-containers > ran-$pod.log
done
- name: Archive juju crashdump
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: juju-crashdump
path: juju-crashdump-*.tar.xz

- name: Archive k8s logs
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: k8s-logs
path: pod-*.log
path: |
sdcore-*.log
ran-*.log

0 comments on commit fc6170b

Please sign in to comment.