In Launchpad, we were facing this issue for a long time inside the builders' LXD containers. Since it was blocking critical infrastructure, we used a custom workaround.
Thus, to recreate this issue, we: Deleted the workaround from random builders in our staging environment. Restarted the build service of those builders for the changes to be picked up. The issue would show itself during each build that required a snap install. Thus, to recreate it, we only need to run a build, such as a "snap recipe" build: Create a repository with a working snapcraft.yaml. Put the repository inside Launchpad. Create a recipe for the repository inside Launchpad. Request a build with that recipe. With this, once one of the builders without the workaround picks up this build, we got: | - Setup snap "snapd" (24718) security profiles (cannot reload udev rules: exit status 1 | udev output: | Failed to send reload request: No such file or directory | ) inside the buildlogs with a failure attached. This triggered during the first snap installation within the script. To Solve the Bug: Afterwards, within the builder installation script, we installed an updated snapd version from 2.67.1+24.04 to 2.68.5+ubuntu24.04.1 using the Noble deb provided to us. We had to use a Noble deb in this case because all of our build infrastructure was based on LTS Ubuntu versions and would need to be tested on the same debs to have certainty in the solution of this bug. After the new script was put into one of the builders, we re-triggered the same recipe as before. It got picked up by the updated builder, and passed the snap installation without triggering the issue as follows: | INFO Waiting for automatic snapd restart... | snapcraft 8.9.4 from Canonical** installed And continued onto the rest of the build. We would make the same test in multiple different build types and recipes. All of them returning positive results. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1712808 Title: udev interface fails in privileged containers To manage notifications about this bug go to: https://bugs.launchpad.net/launchpad/+bug/1712808/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
