Skip to content

Commit

Permalink
chore: support saving cluster logs on destroy
Browse files Browse the repository at this point in the history
Support saving cluster logs on destroy

Fixes: #9808

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Nov 29, 2024
1 parent c254f26 commit 347b758
Show file tree
Hide file tree
Showing 35 changed files with 395 additions and 354 deletions.
120 changes: 55 additions & 65 deletions .github/workflows/ci.yaml

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions .github/workflows/integration-cilium-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:53:18Z by kres 232fe63.

name: integration-cilium-cron
concurrency:
Expand Down Expand Up @@ -80,6 +80,7 @@ jobs:
make talosctl-cni-bundle
- name: e2e-cilium
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-cilium
IMAGE_REGISTRY: registry.dev.siderolabs.io
QEMU_WORKERS: "2"
SHORT_INTEGRATION_TEST: "yes"
Expand All @@ -92,6 +93,7 @@ jobs:
- name: e2e-cilium-strict
env:
CILIUM_INSTALL_TYPE: strict
GITHUB_STEP_NAME: ${{ github.job}}-e2e-cilium-strict
IMAGE_REGISTRY: registry.dev.siderolabs.io
QEMU_WORKERS: "2"
SHORT_INTEGRATION_TEST: "yes"
Expand All @@ -104,6 +106,7 @@ jobs:
- name: e2e-cilium-strict-kubespan
env:
CILIUM_INSTALL_TYPE: strict
GITHUB_STEP_NAME: ${{ github.job}}-e2e-cilium-strict-kubespan
IMAGE_REGISTRY: registry.dev.siderolabs.io
QEMU_WORKERS: "2"
SHORT_INTEGRATION_TEST: "yes"
Expand All @@ -120,8 +123,6 @@ jobs:
with:
name: talos-logs-integration-cilium
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
7 changes: 3 additions & 4 deletions .github/workflows/integration-conformance-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:48:17Z by kres 232fe63.

name: integration-conformance-cron
concurrency:
Expand Down Expand Up @@ -80,6 +80,7 @@ jobs:
make talosctl-cni-bundle
- name: conformance-qemu
env:
GITHUB_STEP_NAME: ${{ github.job}}-conformance-qemu
IMAGE_REGISTRY: registry.dev.siderolabs.io
QEMU_CPUS: "4"
QEMU_WORKERS: "2"
Expand All @@ -92,8 +93,6 @@ jobs:
with:
name: talos-logs-integration-qemu
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
7 changes: 3 additions & 4 deletions .github/workflows/integration-extensions-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:53:18Z by kres 232fe63.

name: integration-extensions-cron
concurrency:
Expand Down Expand Up @@ -109,6 +109,7 @@ jobs:
- name: e2e-extensions
env:
EXTRA_TEST_ARGS: -talos.extensions.qemu
GITHUB_STEP_NAME: ${{ github.job}}-e2e-extensions
IMAGE_REGISTRY: registry.dev.siderolabs.io
QEMU_EXTRA_DISKS: "3"
QEMU_MEMORY_WORKERS: "4096"
Expand All @@ -122,8 +123,6 @@ jobs:
with:
name: talos-logs-integration-extensions
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
13 changes: 9 additions & 4 deletions .github/workflows/integration-image-factory-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:53:18Z by kres 232fe63.

name: integration-image-factory-cron
concurrency:
Expand Down Expand Up @@ -107,6 +107,7 @@ jobs:
FACTORY_UPGRADE_SCHEMATIC: cf9b7aab9ed7c365d5384509b4d31c02fdaa06d2b3ac6cc0bc806f28130eff1f
FACTORY_UPGRADE_VERSION: v1.7.6
FACTORY_VERSION: v1.7.5
GITHUB_STEP_NAME: ${{ github.job}}-factory-1.7-iso
KUBERNETES_VERSION: 1.30.1
run: |
sudo -E make e2e-image-factory
Expand All @@ -118,6 +119,7 @@ jobs:
FACTORY_UPGRADE_SCHEMATIC: cf9b7aab9ed7c365d5384509b4d31c02fdaa06d2b3ac6cc0bc806f28130eff1f
FACTORY_UPGRADE_VERSION: v1.7.6
FACTORY_VERSION: v1.7.5
GITHUB_STEP_NAME: ${{ github.job}}-factory-1.7-image
KUBERNETES_VERSION: 1.30.1
run: |
sudo -E make e2e-image-factory
Expand All @@ -126,6 +128,7 @@ jobs:
FACTORY_BOOT_METHOD: pxe
FACTORY_SCHEMATIC: 376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba
FACTORY_VERSION: v1.7.6
GITHUB_STEP_NAME: ${{ github.job}}-factory-1.7-pxe
KUBERNETES_VERSION: 1.30.1
run: |
sudo -E make e2e-image-factory
Expand All @@ -137,6 +140,7 @@ jobs:
FACTORY_UPGRADE_SCHEMATIC: 376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba
FACTORY_UPGRADE_VERSION: v1.7.6
FACTORY_VERSION: v1.7.5
GITHUB_STEP_NAME: ${{ github.job}}-factory-1.7-secureboot
KUBERNETES_VERSION: 1.30.1
run: |
sudo -E make e2e-image-factory
Expand All @@ -148,6 +152,7 @@ jobs:
FACTORY_UPGRADE_SCHEMATIC: 376567988ad370138ad8b2698212367b8edcb69b5fd68c80be1f2ec7d603b4ba
FACTORY_UPGRADE_VERSION: v1.6.1
FACTORY_VERSION: v1.6.0
GITHUB_STEP_NAME: ${{ github.job}}-factory-1.6-secureboot
KUBERNETES_VERSION: 1.29.0
run: |
sudo -E make e2e-image-factory
Expand All @@ -159,6 +164,7 @@ jobs:
FACTORY_UPGRADE_SCHEMATIC: cf9b7aab9ed7c365d5384509b4d31c02fdaa06d2b3ac6cc0bc806f28130eff1f
FACTORY_UPGRADE_VERSION: v1.6.1
FACTORY_VERSION: v1.6.0
GITHUB_STEP_NAME: ${{ github.job}}-factory-1.6-iso
KUBERNETES_VERSION: 1.29.0
run: |
sudo -E make e2e-image-factory
Expand All @@ -170,6 +176,7 @@ jobs:
FACTORY_UPGRADE_SCHEMATIC: cf9b7aab9ed7c365d5384509b4d31c02fdaa06d2b3ac6cc0bc806f28130eff1f
FACTORY_UPGRADE_VERSION: v1.5.5
FACTORY_VERSION: v1.5.5
GITHUB_STEP_NAME: ${{ github.job}}-factory-1.5-iso
KUBERNETES_VERSION: 1.28.5
run: |
sudo -E make e2e-image-factory
Expand All @@ -179,8 +186,6 @@ jobs:
with:
name: talos-logs-integration-image-factory
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
9 changes: 5 additions & 4 deletions .github/workflows/integration-misc-0-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:53:18Z by kres 232fe63.

name: integration-misc-0-cron
concurrency:
Expand Down Expand Up @@ -80,6 +80,7 @@ jobs:
make talosctl-cni-bundle
- name: e2e-firewall
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-firewall
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
WITH_FIREWALL: block
Expand All @@ -88,12 +89,14 @@ jobs:
- name: e2e-canal-reset
env:
CUSTOM_CNI_URL: https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/canal.yaml
GITHUB_STEP_NAME: ${{ github.job}}-e2e-canal-reset
IMAGE_REGISTRY: registry.dev.siderolabs.io
INTEGRATION_TEST_RUN: TestIntegration/api.ResetSuite/TestResetWithSpec
run: |
sudo -E make e2e-qemu
- name: e2e-controlplane-port
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-controlplane-port
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
WITH_CONTROL_PLANE_PORT: "443"
Expand All @@ -105,8 +108,6 @@ jobs:
with:
name: talos-logs-integration-misc-0
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
9 changes: 5 additions & 4 deletions .github/workflows/integration-misc-1-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:53:18Z by kres 232fe63.

name: integration-misc-1-cron
concurrency:
Expand Down Expand Up @@ -80,13 +80,15 @@ jobs:
make talosctl-cni-bundle
- name: e2e-no-cluster-discovery
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-no-cluster-discovery
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
WITH_CLUSTER_DISCOVERY: "false"
run: |
sudo -E make e2e-qemu
- name: e2e-kubespan
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-kubespan
IMAGE_REGISTRY: registry.dev.siderolabs.io\
SHORT_INTEGRATION_TEST: "yes"
WITH_CLUSTER_DISCOVERY: "true"
Expand All @@ -96,6 +98,7 @@ jobs:
- name: e2e-default-hostname
env:
DISABLE_DHCP_HOSTNAME: "true"
GITHUB_STEP_NAME: ${{ github.job}}-e2e-default-hostname
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
VIA_MAINTENANCE_MODE: "true"
Expand All @@ -107,8 +110,6 @@ jobs:
with:
name: talos-logs-integration-misc-1
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
8 changes: 4 additions & 4 deletions .github/workflows/integration-misc-2-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:53:18Z by kres 232fe63.

name: integration-misc-2-cron
concurrency:
Expand Down Expand Up @@ -93,6 +93,7 @@ jobs:
make images-essential
- name: e2e-bios-cgroupsv1
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-bios-cgroupsv1
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
WITH_CONFIG_PATCH: '@hack/test/patches/cgroupsv1.yaml'
Expand All @@ -101,6 +102,7 @@ jobs:
sudo -E make e2e-qemu
- name: e2e-disk-image
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-disk-image
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
USE_DISK_IMAGE: "true"
Expand All @@ -114,8 +116,6 @@ jobs:
with:
name: talos-logs-integration-misc-2
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
8 changes: 4 additions & 4 deletions .github/workflows/integration-misc-3-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:53:18Z by kres 232fe63.

name: integration-misc-3-cron
concurrency:
Expand Down Expand Up @@ -80,13 +80,15 @@ jobs:
make talosctl-cni-bundle
- name: e2e-network-chaos
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-network-chaos
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
WITH_NETWORK_CHAOS: "yes"
run: |
sudo -E make e2e-qemu
- name: e2e-metal-iso
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-metal-iso
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
WITH_CONFIG_INJECTION_METHOD: metal-iso
Expand All @@ -98,8 +100,6 @@ jobs:
with:
name: talos-logs-integration-misc-3
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
11 changes: 7 additions & 4 deletions .github/workflows/integration-misc-4-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T13:53:18Z by kres 232fe63.

name: integration-misc-4-cron
concurrency:
Expand Down Expand Up @@ -80,6 +80,7 @@ jobs:
make talosctl-cni-bundle
- name: e2e-siderolink
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-siderolink
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
VIA_MAINTENANCE_MODE: "true"
Expand All @@ -88,6 +89,7 @@ jobs:
sudo -E make e2e-qemu
- name: e2e-siderolink-tunnel
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-siderolink-tunnel
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
VIA_MAINTENANCE_MODE: "true"
Expand All @@ -96,6 +98,7 @@ jobs:
sudo -E make e2e-qemu
- name: e2e-siderolink-tls
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-siderolink-tls
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
VIA_MAINTENANCE_MODE: "true"
Expand All @@ -104,13 +107,15 @@ jobs:
sudo -E make e2e-qemu
- name: e2e-apparmor
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-apparmor
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
WITH_APPARMOR_LSM_ENABLED: "yes"
run: |
sudo -E make e2e-qemu
- name: e2e-k8s-user-namespace
env:
GITHUB_STEP_NAME: ${{ github.job}}-e2e-k8s-user-namespace
IMAGE_REGISTRY: registry.dev.siderolabs.io
SHORT_INTEGRATION_TEST: "yes"
WITH_CONFIG_PATCH: '@hack/test/patches/usernamespace.yaml'
Expand All @@ -122,8 +127,6 @@ jobs:
with:
name: talos-logs-integration-misc-4
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
6 changes: 2 additions & 4 deletions .github/workflows/integration-provision-0-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-08T11:46:41Z by kres 1fc767a.
# Generated on 2024-11-28T12:57:52Z by kres 232fe63.

name: integration-provision-0-cron
concurrency:
Expand Down Expand Up @@ -93,8 +93,6 @@ jobs:
with:
name: talos-logs-integration-provision-0
path: |-
~/.talos/clusters/**/*.log
~/.talos/clusters/**/support.zip
/tmp/logs-*.tar.gz
/tmp/support-*.zip
!~/.talos/clusters/**/swtpm.log
retention-days: "5"
Loading

0 comments on commit 347b758

Please sign in to comment.