systemd-hostnamed.service in artful specifies PrivateNetwork=yes,
however this fails to setup under upriv container, and thus systemd-
hostnamed fails to even start now:

root@test20170919:~# systemctl status systemd-hostnamed
● systemd-hostnamed.service - Hostname Service
   Loaded: loaded (/lib/systemd/system/systemd-hostnamed.service; static; 
vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-10-14 23:41:54 UTC; 1min 
34s ago
     Docs: man:systemd-hostnamed.service(8)
           man:hostname(5)
           man:machine-info(5)
           https://www.freedesktop.org/wiki/Software/systemd/hostnamed
  Process: 1245 ExecStart=/lib/systemd/systemd-hostnamed (code=exited, 
status=225/NETWORK)
 Main PID: 1245 (code=exited, status=225/NETWORK)
      CPU: 909us

Oct 14 23:41:54 test20170919 systemd[1]: systemd-hostnamed.service: Failed to 
set invocation ID on control group /system.slice/systemd-hostnamed.service, 
ignoring: Operation not permitted
Oct 14 23:41:54 test20170919 systemd[1]: Starting Hostname Service...
Oct 14 23:41:54 test20170919 systemd[1]: systemd-hostnamed.service: Main 
process exited, code=exited, status=225/NETWORK
Oct 14 23:41:54 test20170919 systemd[1]: Failed to start Hostname Service.
Oct 14 23:41:54 test20170919 systemd[1]: systemd-hostnamed.service: Unit 
entered failed state.
Oct 14 23:41:54 test20170919 systemd[1]: systemd-hostnamed.service: Failed with 
result 'exit-code'.

Not sure how to get this fixed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1575779

Title:
  hostnamectl fails under lxd unpriv container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1575779/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to