snapd (deb) fails to install snapd (snap) inside LXD on a buildd based image

Bug #1865503 reported by Sergio Schvezov on 2020-03-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zygmunt Krynicki

Bug Description

This is part of the bootstrapping an image used for buildd's, which are going to be used across architectures for LXD for snapcraft. What follows is the rough steps to reproduce Snapcraft would do to ready the system.

Steps to reproduce:
- lxc remote add buildd --protocol simplestreams
- lxc launch buildd:20.04 snapcraft-core20-test
- alias srun="lxc exec snapcraft-core20-test"
- srun bash
- cat > /etc/systemd/network/ << EOF


- exit
- lxc restart snapcraft-core20-test
- srun apt-get update
- srun apt install snapd
- srun snap install snapd

Observed failure:
error: cannot perform the following tasks:
- Setup snap "snapd" (6434) security profiles (cannot reload udev rules: exit status 1
udev output:
Failed to send reload request: No such file or directory

Output of journalctl -u systemd-udevd:
-- Logs begin at Mon 2020-03-02 13:24:51 UTC, end at Mon 2020-03-02 13:43:56 UTC. --
Mar 02 13:28:15 ubuntu systemd-udevd[53]: Failed to chown '/dev/net/tun' 0 0:
 Operation not permitted
Mar 02 13:28:15 ubuntu systemd-udevd[53]: Failed to apply permissions on stat
ic device nodes: Operation not permitted
Mar 02 13:28:15 ubuntu systemd-udevd[63]: ethtool: autonegotiation is unset or enabled, the speed and
 duplex are not writable.

tags: added: core20
Zygmunt Krynicki (zyga) wrote :

This affects core20

Changed in snapd:
importance: Undecided → High
status: New → Confirmed
Zygmunt Krynicki (zyga) wrote :

I have a feeling this comes from udev package, from /lib/udev/rules.d/50-default-rules:80

Zygmunt Krynicki (zyga) wrote :

I'll write a regression test for this.

Zygmunt Krynicki (zyga) wrote :

I believe this is a bug in snapd. I have a local fix I need to spend some more time on.

Changed in snapd:
status: Confirmed → In Progress
assignee: nobody → Zygmunt Krynicki (zyga)
Zygmunt Krynicki (zyga) wrote :
no longer affects: udev (Ubuntu)
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers