-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Run Nvidia workflow on UC22 #217
Conversation
d853657
to
2ac873f
Compare
2eb834a
to
fe07e06
Compare
[skip ci] Signed-off-by: Lincoln Wallace <[email protected]>
Signed-off-by: Lincoln Wallace <[email protected]>
Signed-off-by: Lincoln Wallace <[email protected]>
Signed-off-by: Lincoln Wallace <[email protected]>
Signed-off-by: Lincoln Wallace <[email protected]>
fe07e06
to
3c04e0e
Compare
I've done some manual testing and there are a few other issues causing failure on Ubuntu Core 22, such as:
@locnnil I will commit fixes directly to your branch. |
a23ebf0
to
f9cdb77
Compare
* Wait for snap changes * Wait for docker daemon after reboot * Run docker commands with sudo * Docker run in non-interactive mode
f9cdb77
to
5271976
Compare
I still get this error randomely, on every 2-3 runs:
Trying directly on the failing device gives the same result: $ snap changes
ID Status Spawn Ready Summary
1 Done today at 15:51 UTC today at 15:51 UTC Initialize system state
2 Done today at 15:51 UTC today at 15:51 UTC Initialize device
3 Done today at 15:51 UTC today at 15:54 UTC Auto-refresh snaps "core22", "pc-kernel"
4 Done today at 15:54 UTC today at 15:54 UTC Hold auto-refreshes for all snaps
5 Error today at 15:54 UTC today at 15:55 UTC Install "docker" snap from "latest/edge" channel
$ snap change 5
Status Spawn Ready Summary
Done today at 15:54 UTC today at 15:55 UTC Ensure prerequisites for "docker" are available
Undone today at 15:54 UTC today at 15:55 UTC Download snap "docker" (3051) from channel "latest/edge"
Done today at 15:54 UTC today at 15:55 UTC Fetch and check assertions for snap "docker" (3051)
Undone today at 15:54 UTC today at 15:55 UTC Mount snap "docker" (3051)
Undone today at 15:54 UTC today at 15:55 UTC Copy snap "docker" data
Undone today at 15:54 UTC today at 15:55 UTC Setup snap "docker" (3051) security profiles
Undone today at 15:54 UTC today at 15:55 UTC Make snap "docker" (3051) available to the system
Undone today at 15:54 UTC today at 15:55 UTC Automatically connect eligible plugs and slots of snap "docker"
Undone today at 15:54 UTC today at 15:55 UTC Set automatic aliases for snap "docker"
Undone today at 15:54 UTC today at 15:55 UTC Setup snap "docker" aliases
Error today at 15:54 UTC today at 15:55 UTC Run install hook of "docker" snap if present
Hold today at 15:54 UTC today at 15:55 UTC Start snap "docker" (3051) services
Hold today at 15:54 UTC today at 15:55 UTC Run configure hook of "docker" snap if present
Hold today at 15:54 UTC today at 15:55 UTC Run health check of "docker" snap
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:network to snapd:network
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:support to snapd:docker-support
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:firewall-control to snapd:firewall-control
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:network-bind to snapd:network-bind
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:opengl to snapd:opengl
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:network-control to snapd:network-control
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:privileged to snapd:docker-support
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:docker-cli to docker:docker-daemon
Undone today at 15:55 UTC today at 15:55 UTC Connect docker:home to snapd:home
Undone today at 15:55 UTC today at 15:55 UTC Setup snap "docker" (3051) security profiles for auto-connections
......................................................................
Run install hook of "docker" snap if present
2025-01-24T15:55:10Z ERROR run hook "install": cannot perform operation: mount -t tmpfs /tmp/snap.rootfs_eLyHAI: Permission denied
$ sudo snap install docker --channel=latest/edge
error: cannot perform the following tasks:
- Run install hook of "docker" snap if present (run hook "install": cannot perform operation: mount -t tmpfs /tmp/snap.rootfs_llcWsv: Permission denied)
$ cat /etc/os-release
NAME="Ubuntu Core"
VERSION="22"
ID=ubuntu-core
PRETTY_NAME="Ubuntu Core 22"
VERSION_ID="22"
HOME_URL="https://snapcraft.io/"
BUG_REPORT_URL="https://bugs.launchpad.net/snappy/"
$ snap info docker
...
snap-id: sLCsFAO8PKM5Z0fAKNszUOX0YASjQfeZ
channels:
latest/stable: 27.2.0 2024-11-22 (2963) 146MB -
latest/candidate: ↑
latest/beta: 27.4.1 2025-01-06 (2994) 149MB -
latest/edge: 27.5.0 2025-01-23 (3051) 149MB -
core18/stable: 20.10.17 2023-03-13 (2746) 146MB -
core18/candidate: ↑
core18/beta: ↑
core18/edge: ↑
$ sudo snap install docker --channel=latest/beta
error: cannot perform the following tasks:
- Run install hook of "docker" snap if present (run hook "install": cannot perform operation: mount -t tmpfs /tmp/snap.rootfs_zFkq1W: Permission denied) |
The workflow fails because the distro is empty: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@locnnil please review my changes and merge if you agree. Thanks
Note that PR description is out of date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you very much @farshidtz.
Currently, the OS used on the Nvidia tests is hardcoded:
docker-snap/.github/workflows/testflinger/nvidia-job.yaml
Line 7 in 7d5e826
However, we already have mechanisms in place to support testing on UC22 as well:
docker-snap/.github/workflows/testflinger/scripts/setup.sh
Lines 49 to 63 in 7d5e826
This PR updates the workflow to include tests for UC22 alongside the existing tests for Noble.
[skip ci]