Comment 0 for bug 1865503

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

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 https://cloud-images.ubuntu.com/buildd/daily --protocol simplestreams
- lxc launch buildd:20.04 snapcraft-core20-test
- alias srun="lxc exec snapcraft-core20-test"
- srun bash
- cat > /etc/systemd/network/10-eth0.network < EOF
[Match]
Name=eth0

[Network]
DHCP=ipv4
LinkLocalAddressing=ipv6

[DHCP]
RouteMetric=100
UseMTU=true
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.