From f65c6692e0395da816be049ff1b1046067ddbce0 Mon Sep 17 00:00:00 2001 From: Brian Fjeldstad Date: Mon, 26 Oct 2026 14:59:56 +0000 Subject: [PATCH] telemetry: opt test and development images in by default Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d0e7cadc-8f44-443f-affe-6ce8e856a218 Copilot-Session: 43cb811b-f191-4d90-852f-e3373041ca11 --- tests/images/azl-installer/installer-iso.yaml | 4 ++++ .../azurelinux-direct-streaming-testimage/base/baseimg.yaml | 6 ++++++ tests/images/trident-container-installer/base/baseimg.yaml | 4 ++++ tests/images/trident-container-testimage/base/baseimg.yaml | 4 ++++ tests/images/trident-functest/base/baseimg.yaml | 6 ++++++ .../trident-installer/base/baseimg-direct-streaming.yaml | 4 ++++ tests/images/trident-installer/base/baseimg-split.yaml | 4 ++++ tests/images/trident-installer/base/baseimg.yaml | 4 ++++ tests/images/trident-mos/containerhost-iso.yaml | 4 ++++ tests/images/trident-mos/iso.yaml | 4 ++++ tests/images/trident-testimage/base/baseimg.yaml | 4 ++++ .../trident-verity-testimage/base/baseimg-container.yaml | 4 ++++ tests/images/trident-verity-testimage/base/baseimg.yaml | 4 ++++ tests/images/trident-verity-testimage/usr/container.yaml | 4 ++++ tests/images/trident-verity-testimage/usr/host.yaml | 4 ++++ .../images/trident-vm-testimage/base/baseimg-acl-agent.yaml | 5 +++++ .../base/baseimg-grub-verity-azure.yaml | 4 ++++ .../trident-vm-testimage/base/baseimg-grub-verity.yaml | 4 ++++ tests/images/trident-vm-testimage/base/baseimg-grub.yaml | 4 ++++ .../trident-vm-testimage/base/baseimg-root-verity.yaml | 4 ++++ .../trident-vm-testimage/base/baseimg-usr-verity.yaml | 4 ++++ .../trident-vm-testimage/base/updateimg-acl-agent.yaml | 5 +++++ .../base/updateimg-grub-verity-azure.yaml | 4 ++++ .../trident-vm-testimage/base/updateimg-grub-verity.yaml | 4 ++++ tests/images/trident-vm-testimage/base/updateimg-grub.yaml | 4 ++++ 25 files changed, 106 insertions(+) diff --git a/tests/images/azl-installer/installer-iso.yaml b/tests/images/azl-installer/installer-iso.yaml index a5f63a0a17..b0e58a5e47 100644 --- a/tests/images/azl-installer/installer-iso.yaml +++ b/tests/images/azl-installer/installer-iso.yaml @@ -72,6 +72,10 @@ os: - source: mos/scripts/installation.sh destination: /root/installer/installation.sh + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf iso: initramfsType: full-os diff --git a/tests/images/azurelinux-direct-streaming-testimage/base/baseimg.yaml b/tests/images/azurelinux-direct-streaming-testimage/base/baseimg.yaml index 88a8d7b972..eb083c83de 100644 --- a/tests/images/azurelinux-direct-streaming-testimage/base/baseimg.yaml +++ b/tests/images/azurelinux-direct-streaming-testimage/base/baseimg.yaml @@ -78,3 +78,9 @@ os: services: enable: - sshd + + additionalFiles: + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf diff --git a/tests/images/trident-container-installer/base/baseimg.yaml b/tests/images/trident-container-installer/base/baseimg.yaml index 1e1dfded5a..357baf11eb 100644 --- a/tests/images/trident-container-installer/base/baseimg.yaml +++ b/tests/images/trident-container-installer/base/baseimg.yaml @@ -57,6 +57,10 @@ os: - source: files/containerd-mmap-fix.cil destination: /usr/share/selinux/packages/containerd-mmap-fix.cil + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - trident-container diff --git a/tests/images/trident-container-testimage/base/baseimg.yaml b/tests/images/trident-container-testimage/base/baseimg.yaml index 53f3eff715..ec3266fd6a 100644 --- a/tests/images/trident-container-testimage/base/baseimg.yaml +++ b/tests/images/trident-container-testimage/base/baseimg.yaml @@ -76,6 +76,10 @@ os: - source: files/containerd-mmap-fix.cil destination: /usr/share/selinux/packages/containerd-mmap-fix.cil + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - trident-container diff --git a/tests/images/trident-functest/base/baseimg.yaml b/tests/images/trident-functest/base/baseimg.yaml index 874463b5eb..3285167712 100644 --- a/tests/images/trident-functest/base/baseimg.yaml +++ b/tests/images/trident-functest/base/baseimg.yaml @@ -85,3 +85,9 @@ os: services: enable: - sshd + + additionalFiles: + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf diff --git a/tests/images/trident-installer/base/baseimg-direct-streaming.yaml b/tests/images/trident-installer/base/baseimg-direct-streaming.yaml index 3ace14fbda..5f9cce769a 100644 --- a/tests/images/trident-installer/base/baseimg-direct-streaming.yaml +++ b/tests/images/trident-installer/base/baseimg-direct-streaming.yaml @@ -87,6 +87,10 @@ os: - source: ../../../../tools/cmd/rcp-agent/rcp-agent.service destination: /usr/lib/systemd/system/rcp-agent.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf selinux: mode: enforcing diff --git a/tests/images/trident-installer/base/baseimg-split.yaml b/tests/images/trident-installer/base/baseimg-split.yaml index 6c5867d8a7..415e6dccaa 100644 --- a/tests/images/trident-installer/base/baseimg-split.yaml +++ b/tests/images/trident-installer/base/baseimg-split.yaml @@ -71,6 +71,10 @@ os: - source: files/trident-split-install.service destination: /usr/lib/systemd/system/trident-install.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf scripts: postCustomization: - path: post-install.sh diff --git a/tests/images/trident-installer/base/baseimg.yaml b/tests/images/trident-installer/base/baseimg.yaml index 7f6bf691bb..446d65162c 100644 --- a/tests/images/trident-installer/base/baseimg.yaml +++ b/tests/images/trident-installer/base/baseimg.yaml @@ -76,6 +76,10 @@ os: - source: files/trident-install.service destination: /usr/lib/systemd/system/trident-install.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf selinux: mode: enforcing diff --git a/tests/images/trident-mos/containerhost-iso.yaml b/tests/images/trident-mos/containerhost-iso.yaml index 586bb5ac9b..15b21fa698 100644 --- a/tests/images/trident-mos/containerhost-iso.yaml +++ b/tests/images/trident-mos/containerhost-iso.yaml @@ -51,6 +51,10 @@ os: - source: files/download-trident-container.service destination: /usr/lib/systemd/system/download-trident-container.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - download-trident-container diff --git a/tests/images/trident-mos/iso.yaml b/tests/images/trident-mos/iso.yaml index 00b235a021..6e754a7993 100644 --- a/tests/images/trident-mos/iso.yaml +++ b/tests/images/trident-mos/iso.yaml @@ -94,6 +94,10 @@ os: - source: ../../../tools/cmd/rcp-agent/rcp-agent.service destination: /usr/lib/systemd/system/rcp-agent.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - rcp-agent diff --git a/tests/images/trident-testimage/base/baseimg.yaml b/tests/images/trident-testimage/base/baseimg.yaml index 80951ff4d6..416ca2c3c7 100644 --- a/tests/images/trident-testimage/base/baseimg.yaml +++ b/tests/images/trident-testimage/base/baseimg.yaml @@ -78,6 +78,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf scripts: postCustomization: - path: post-install.sh diff --git a/tests/images/trident-verity-testimage/base/baseimg-container.yaml b/tests/images/trident-verity-testimage/base/baseimg-container.yaml index 21dd824cb5..e7628db4fd 100644 --- a/tests/images/trident-verity-testimage/base/baseimg-container.yaml +++ b/tests/images/trident-verity-testimage/base/baseimg-container.yaml @@ -134,6 +134,10 @@ os: - source: files/trident-container.service destination: /usr/lib/systemd/system/trident-container.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-verity-testimage/base/baseimg.yaml b/tests/images/trident-verity-testimage/base/baseimg.yaml index 1477615dcd..81616eb742 100644 --- a/tests/images/trident-verity-testimage/base/baseimg.yaml +++ b/tests/images/trident-verity-testimage/base/baseimg.yaml @@ -132,6 +132,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-verity-testimage/usr/container.yaml b/tests/images/trident-verity-testimage/usr/container.yaml index 855cd0f10c..f6aec6134b 100644 --- a/tests/images/trident-verity-testimage/usr/container.yaml +++ b/tests/images/trident-verity-testimage/usr/container.yaml @@ -115,6 +115,10 @@ os: - source: files/trident-container.service destination: /usr/lib/systemd/system/trident-container.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf output: # Specifies config for output dir containining generated artifacts. This is # required for later running inject-files command, so that the final image diff --git a/tests/images/trident-verity-testimage/usr/host.yaml b/tests/images/trident-verity-testimage/usr/host.yaml index 476178d805..fe7ec196bb 100644 --- a/tests/images/trident-verity-testimage/usr/host.yaml +++ b/tests/images/trident-verity-testimage/usr/host.yaml @@ -121,6 +121,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf output: # Specifies config for output dir containining generated artifacts. This is # required for later running inject-files command, so that the final image diff --git a/tests/images/trident-vm-testimage/base/baseimg-acl-agent.yaml b/tests/images/trident-vm-testimage/base/baseimg-acl-agent.yaml index cc9ddb1d72..57d7ccee42 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-acl-agent.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-acl-agent.yaml @@ -187,6 +187,11 @@ os: - source: files/trident-acl-agent-override.conf destination: /etc/systemd/system/trident-acl-agent.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf + services: enable: - kdump diff --git a/tests/images/trident-vm-testimage/base/baseimg-grub-verity-azure.yaml b/tests/images/trident-vm-testimage/base/baseimg-grub-verity-azure.yaml index 7da14975f6..f732a5ba44 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-grub-verity-azure.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-grub-verity-azure.yaml @@ -145,6 +145,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-vm-testimage/base/baseimg-grub-verity.yaml b/tests/images/trident-vm-testimage/base/baseimg-grub-verity.yaml index 11715cfc91..3871264234 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-grub-verity.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-grub-verity.yaml @@ -143,6 +143,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-vm-testimage/base/baseimg-grub.yaml b/tests/images/trident-vm-testimage/base/baseimg-grub.yaml index 0286a9a8a5..96013eec04 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-grub.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-grub.yaml @@ -84,6 +84,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf users: - name: testuser sshPublicKeyPaths: diff --git a/tests/images/trident-vm-testimage/base/baseimg-root-verity.yaml b/tests/images/trident-vm-testimage/base/baseimg-root-verity.yaml index 0ec362b70f..ae508fd016 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-root-verity.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-root-verity.yaml @@ -146,6 +146,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf overlays: - mountPoint: /etc lowerDirs: [/etc] diff --git a/tests/images/trident-vm-testimage/base/baseimg-usr-verity.yaml b/tests/images/trident-vm-testimage/base/baseimg-usr-verity.yaml index ae5208a2bb..8c55219c32 100644 --- a/tests/images/trident-vm-testimage/base/baseimg-usr-verity.yaml +++ b/tests/images/trident-vm-testimage/base/baseimg-usr-verity.yaml @@ -145,6 +145,10 @@ os: - source: files/sudoers-wheel destination: /etc/sudoers.d/wheel + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - kdump diff --git a/tests/images/trident-vm-testimage/base/updateimg-acl-agent.yaml b/tests/images/trident-vm-testimage/base/updateimg-acl-agent.yaml index b6a8f725fb..c5f5286d68 100644 --- a/tests/images/trident-vm-testimage/base/updateimg-acl-agent.yaml +++ b/tests/images/trident-vm-testimage/base/updateimg-acl-agent.yaml @@ -191,6 +191,11 @@ os: - source: files/trident-acl-agent-cert-install.service destination: /etc/systemd/system/trident-acl-agent-cert-install.service + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf + services: enable: - kdump diff --git a/tests/images/trident-vm-testimage/base/updateimg-grub-verity-azure.yaml b/tests/images/trident-vm-testimage/base/updateimg-grub-verity-azure.yaml index 6bde755308..e7b233808d 100644 --- a/tests/images/trident-vm-testimage/base/updateimg-grub-verity-azure.yaml +++ b/tests/images/trident-vm-testimage/base/updateimg-grub-verity-azure.yaml @@ -136,6 +136,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-vm-testimage/base/updateimg-grub-verity.yaml b/tests/images/trident-vm-testimage/base/updateimg-grub-verity.yaml index db03d2c61f..a2f29e892d 100644 --- a/tests/images/trident-vm-testimage/base/updateimg-grub-verity.yaml +++ b/tests/images/trident-vm-testimage/base/updateimg-grub-verity.yaml @@ -129,6 +129,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf services: enable: - etc-mount diff --git a/tests/images/trident-vm-testimage/base/updateimg-grub.yaml b/tests/images/trident-vm-testimage/base/updateimg-grub.yaml index 02b2cd0723..fe74ac05e7 100644 --- a/tests/images/trident-vm-testimage/base/updateimg-grub.yaml +++ b/tests/images/trident-vm-testimage/base/updateimg-grub.yaml @@ -73,6 +73,10 @@ os: - source: files/use-grpc-client-commit.conf destination: /etc/systemd/system/trident.service.d/override.conf + # Enable telemetry (Application Insights tracing) by default for test/dev images + - content: | + Telemetry=OptIn + destination: /etc/trident/trident.conf scripts: postCustomization: - path: scripts/post-install.sh