Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,44 @@ jobs:
timeout-minutes: 3
if: ${{ success() || (failure() && steps.spread.outcome == 'failure') }}
run: sudo jhack tail --printer raw --replay --no-watch | tee ~/logs/jhack-tail.txt
- name: Dump pods and their logs
id: dump
if: ${{ failure() && steps.spread.outcome == 'failure' }}
shell: bash
run: |
echo "PATH = ${PATH}"
microk8s -h
# shellcheck disable=SC2162
# shellcheck disable=SC2086
microk8s.kubectl get pods \
-A \
-o=jsonpath='{range.items[*]}{.metadata.namespace} {.metadata.name}{"\n"}' \
--sort-by=.metadata.namespace \
| grep -v "^\s*$" \
| while read namespace pod; do \
microk8s.kubectl -n $namespace describe pod $pod; \
microk8s.kubectl -n $namespace logs $pod \
--all-containers=true \
--tail=100; \
done
- name: Tmate
if: ${{ failure() && steps.spread.outcome == 'failure' && steps.dump.outcome == 'failure'}}
uses: canonical/action-tmate@main
- name: Dump deployments
run: |
sudo microk8s.kubectl describe deployments -A | tee ~/logs/kubectl-deployments.txt
exit 0
shell: bash
- name: Dump replicasets
run: |
sudo microk8s.kubectl describe replicasets -A | tee ~/logs/kubectl-replicasets.txt

exit 0
shell: bash
- name: Dump node information
run: |
sudo microk8s.kubectl get nodes -v=10 | tee ~/logs/kubectl-nodes.txt
exit 0
- name: Upload logs
timeout-minutes: 5
if: ${{ success() || (failure() && steps.spread.outcome == 'failure') }}
Expand Down
2 changes: 1 addition & 1 deletion concierge-microk8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# This file is used automatically by spread.
juju:
model-defaults:
logging-config: <root>=INFO; unit=DEBUG
logging-config: <root>=DEBUG; unit=DEBUG
providers:
microk8s:
enable: true
Expand Down
8 changes: 2 additions & 6 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,8 @@ backends:
username: ubuntu

suites:
tests/spread/mongodb/lxd/:
summary: Spread tests for MongoDB VM
tests/spread/mongodb/microk8s/:
summary: Spread tests for MongoDB Kubernetes
tests/spread/mongos/lxd/:
summary: Spread tests for Mongos VM
tests/spread/mongos/microk8s/:
summary: Spread tests for Mongos Kubernetes

path: /root/spread_project

Expand All @@ -146,6 +140,8 @@ prepare: |

snap install microk8s --channel "$CONCIERGE_MICROK8S_CHANNEL" --classic

usermod -a -G microk8s ubuntu

# Wait for microk8s to populate iptables
# https://chat.canonical.com/canonical/pl/jo5cg6wqjjrudqd5ybj6hhttee
until [[ -n $(iptables --list | grep -i "microk8s") ]]
Expand Down
10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_backups_tls.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_charm.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_ha.py/task.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/spread/mongodb/lxd/test_ldap.py/task.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions tests/spread/mongodb/lxd/test_major_upgrades.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_metrics.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_mongos.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_network_cut.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_relations.py/task.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/spread/mongodb/lxd/test_revision_checker.py/task.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/spread/mongodb/lxd/test_rollback.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_scale_up_down.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_sharded_backups_tls.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_sharding.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_sharding_backups.py/task.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/spread/mongodb/lxd/test_sharding_ldap.py/task.yaml

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_sharding_race_condition.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_sharding_relations.py/task.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/spread/mongodb/lxd/test_sharding_rollback.py/task.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions tests/spread/mongodb/lxd/test_sharding_upgrades.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_single_tls.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_single_tls_sharding.py/task.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions tests/spread/mongodb/lxd/test_tls.py/task.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/spread/mongodb/lxd/test_upgrade.py/task.yaml

This file was deleted.

Loading
Loading