bionic LXD image reports systemd-hostnamed.service failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
New
|
Undecided
|
Unassigned |
Bug Description
I am launching a bionic minimal** image in LXD and the systemd-
** This occurs with bionic cloud images (non-minimal variety) too
Tested with daily bionic minimal LXD images (serial 20180328.1) from https:/
$ lxc remote add minimal-
$ lxc launch minimal-
$ lxc exec b -- systemctl list-units --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● cloud-init.service loaded failed failed Initial cloud-init job (metadata service crawler)
● systemd-
(The cloud-init.service failure is reported separately in bug #1759571)
$ lxc exec b journalctl | grep hostnamed
Mar 28 13:42:33 b systemd[1]: systemd-
Mar 28 13:42:33 b systemd[1]: Failed to set devices.allow on /system.
Mar 28 13:42:33 b systemd[1]: Failed to set devices.allow on /system.
Mar 28 13:42:33 b systemd[1]: Failed to set devices.allow on /system.
Mar 28 13:42:33 b systemd[1]: Failed to set devices.allow on /system.
Mar 28 13:42:33 b systemd[1]: Failed to set devices.allow on /system.
Mar 28 13:42:33 b systemd[1]: Failed to set devices.allow on /system.
Mar 28 13:42:33 b systemd[1]: Failed to set devices.allow on /system.
Mar 28 13:42:33 b systemd[1]: Failed to set devices.allow on /system.
Mar 28 13:42:33 b systemd[143]: systemd-
Mar 28 13:42:33 b systemd[143]: systemd-
Mar 28 13:42:33 b systemd[1]: systemd-
Mar 28 13:42:33 b systemd[1]: systemd-
summary: |
- bionic minimal images report systemd-hostnamed.service failure + bionic LXD image reports systemd-hostnamed.service failure |
description: | updated |
i tried two variants:
1) lxc launch images:ubuntu/18.04 u1
2) lxc launch ubuntu:18.04 u2
1) takes ages before runlevel becomes "N 5" and contains mentioned bug.
2) is fast but contains cloud-init package.
lxd containers are create on a 10.* net.
1) syslog: freedesktop. hostname1' unit='dbus- org.freedesktop .hostname1. service' requested by ':1.1' (uid=100 pid=58 comm="/ lib/systemd/ systemd- networkd " label="unconfined") hostnamed. service: Failed to reset devices.list: Operation not permitted slice/systemd- hostnamed. service: Operation not permitted slice/systemd- hostnamed. service: Operation not permitted] hostnamed. service: Failed to set up network namespacing: Permission denied hostnamed. service: Failed at step NETWORK spawning /lib/systemd/ systemd- hostnamed: Permission denied hostnamed. service: Main process exited, code=exited, status=225/NETWORK hostnamed. service: Failed with result 'exit-code'. networkd[ 58]: Could not set hostname: Method call timed out
root@u1:~# grep hostname /var/log/syslog
May 4 17:16:57 u1 dbus-daemon[78]: [system] Activating via systemd: service name='org.
May 4 17:16:57 u1 systemd[1]: systemd-
May 4 17:16:57 u1 systemd[1]: Failed to set devices.allow on /system.
May 4 17:16:57 u1 systemd[1]: message repeated 7 times: [ Failed to set devices.allow on /system.
May 4 17:16:57 u1 systemd[90]: systemd-
May 4 17:16:57 u1 systemd[90]: systemd-
May 4 17:16:57 u1 systemd[1]: systemd-
May 4 17:16:57 u1 systemd[1]: systemd-
May 4 17:17:22 u1 systemd-