Skip to content

ci: unload host mosquitto AppArmor profile on Ubuntu 26.04 runners - #112

Merged
reubenmiller merged 2 commits into
mainfrom
fix-ubuntu-26.04-apparmor
Nov 19, 2026
Merged

reubenmiller merged 2 commits into
mainfrom
fix-ubuntu-26.04-apparmor

Conversation

@reubenmiller

Copy link
Copy Markdown
Contributor

The ubuntu-latest runners now use Ubuntu 26.04, which loads an AppArmor profile for /usr/sbin/mosquitto. It also applies to mosquitto inside the test containers and blocks it from reading /etc/tedge/mosquitto-conf/ (Unable to open include_dir '/etc/tedge/mosquitto-conf'), so the device never connects and every test fails (example run).

This adds a step that unloads the profile on the runner before the tests, the same fix as thin-edge/tedge-parameter-plugin#12.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
22 0 1 22 100 10m33.405062999s

Passed Tests

Name ⏱️ Duration Suite
Supports Cumulocity Basic Auth Credentials 24.105 s C8Y-Basic-Auth
Ignore Containers Marked With A Specific Label 27.361 s Container
Grace period to allow container to startup 5.024 s Operations
Service is up 0.131 s Operations
Get Logfile Request 2.475 s Operations
Get Configuration File 4.923 s Operations
Set Configuration File 2.570 s Operations
Execute Shell Command 2.482 s Operations
Install application using docker compose 7.027 s Operations
Get Container Logs 2.471 s Operations
Get Container Logs without explicit container name 2.451 s Operations
Get Container Logs For Non-existent container 2.478 s Operations
Update From Legacy Versions 139.080 s Self-Update-Compat
Trigger self update via local command 25.565 s Self-Update
Self update should only update if there is a new image 22.272 s Self-Update
Self update using software update operation 105.036 s Self-Update
Self update using an image installed from a file 114.945 s Self-Update
Rollback when trying to install a non-tedge based image 20.891 s Self-Update
Self update using software update operation using Container type 116.698 s Self-Update
Cloud Connection is Online 2.486 s Telemetry
Service status 0.239 s Telemetry
Sends measurements 2.672 s Telemetry

The podman v4 image uses netavark with the legacy iptables backend, which
needs the ip_tables modules. Ubuntu 26.04 runners don't load them, and the
test container can't load them itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@reubenmiller
reubenmiller added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 5d9209f Nov 19, 2026
18 checks passed

This branch was previously deployed

1 inactive deployment
Test Auto — ec9ff948 Deployed Nov 18, 2026 by reubenmiller via Test podman v4 (tedge-main@latest) #594
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant