tgt

Activity log for bug #1518440

Date Who What changed Old value New value Message
2015-11-20 19:48:19 Lee Trager bug added bug
2015-11-20 19:49:18 Lee Trager description When trying to install tgt in an LXD container the post install script fails. I've tried setting the container profile as uncontained as per https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-apparmor to no avail. This is preventing MAAS from being able to be run in an LXD container. # apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up tgt (1:1.0.57-1ubuntu2) ... Job for tgt.service failed because the control process exited with error code. See "systemctl status tgt.service" and "journalctl -xe" for details. invoke-rc.d: initscript tgt, action "start" failed. dpkg: error processing package tgt (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: tgt E: Sub-process /usr/bin/dpkg returned an error code (1) # systemctl status tgt.service ● tgt.service - (i)SCSI target daemon Loaded: loaded (/lib/systemd/system/tgt.service; enabled; vendor preset: enabled) Active: failed (Result: start-limit) since Fri 2015-11-20 19:29:28 UTC; 14s ago Docs: man:tgtd(8) Process: 24536 ExecStop=/usr/sbin/tgtadm --op update --mode sys --name State -v offline (code=exited, status=107) Process: 24521 ExecStart=/usr/sbin/tgtd -f (code=exited, status=1/FAILURE) Main PID: 24521 (code=exited, status=1/FAILURE) Nov 20 19:29:28 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:29:28 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Start request repeated too quickly. Nov 20 19:29:28 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Failed with result 'start-limit'. # journalctl -f # while running apt-get install tgt Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24816:14005113 (system bus name :1.78 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:29 maas-dev systemd[1]: Reloading. Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24816:14005113 (system bus name :1.78, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24894:14005139 (system bus name :1.79 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:29 maas-dev systemd[1]: Reloading. Nov 20 19:39:30 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24894:14005139 (system bus name :1.79, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:30 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24957:14005162 (system bus name :1.80 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:30 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:30 maas-dev tgtd[24974]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:30 maas-dev tgtd[24974]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:33 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:33 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:34 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:34 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtadm[25946]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:35 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:35 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24957:14005162 (system bus name :1.80, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:35 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtd[25989]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:35 maas-dev tgtd[25989]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtadm[26004]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:35 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:35 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtd[26040]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:36 maas-dev tgtd[26040]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtadm[26055]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:36 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:36 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtd[26091]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:36 maas-dev tgtd[26091]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtadm[26106]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:36 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:36 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:37 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev tgtd[26142]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:37 maas-dev tgtd[26142]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:37 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev tgtadm[26157]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:37 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:37 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Start request repeated too quickly. Nov 20 19:39:37 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Failed with result 'start-limit'. # journalctl -f # on host system while apt-get install tgt is running Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:41 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:41 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) When trying to install tgt in an LXD container the post install script fails. I've tried setting the container profile as uncontained as per https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-apparmor to no avail. This is preventing MAAS from being able to be run in an LXD container. # apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up tgt (1:1.0.57-1ubuntu2) ... Job for tgt.service failed because the control process exited with error code. See "systemctl status tgt.service" and "journalctl -xe" for details. invoke-rc.d: initscript tgt, action "start" failed. dpkg: error processing package tgt (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  tgt E: Sub-process /usr/bin/dpkg returned an error code (1) # systemctl status tgt.service ● tgt.service - (i)SCSI target daemon    Loaded: loaded (/lib/systemd/system/tgt.service; enabled; vendor preset: enabled)    Active: failed (Result: start-limit) since Fri 2015-11-20 19:29:28 UTC; 14s ago      Docs: man:tgtd(8)   Process: 24536 ExecStop=/usr/sbin/tgtadm --op update --mode sys --name State -v offline (code=exited, status=107)   Process: 24521 ExecStart=/usr/sbin/tgtd -f (code=exited, status=1/FAILURE)  Main PID: 24521 (code=exited, status=1/FAILURE) Nov 20 19:29:28 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:29:28 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Start request repeated too quickly. Nov 20 19:29:28 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Failed with result 'start-limit'. # journalctl -f # while running apt-get install tgt Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24816:14005113 (system bus name :1.78 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:29 maas-dev systemd[1]: Reloading. Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24816:14005113 (system bus name :1.78, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24894:14005139 (system bus name :1.79 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:29 maas-dev systemd[1]: Reloading. Nov 20 19:39:30 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24894:14005139 (system bus name :1.79, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:30 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24957:14005162 (system bus name :1.80 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:30 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:30 maas-dev tgtd[24974]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:30 maas-dev tgtd[24974]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:33 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:33 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:34 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:34 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtadm[25946]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:35 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:35 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24957:14005162 (system bus name :1.80, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:35 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtd[25989]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:35 maas-dev tgtd[25989]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtadm[26004]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:35 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:35 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtd[26040]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:36 maas-dev tgtd[26040]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtadm[26055]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:36 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:36 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtd[26091]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:36 maas-dev tgtd[26091]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtadm[26106]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:36 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:36 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:37 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev tgtd[26142]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:37 maas-dev tgtd[26142]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:37 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev tgtadm[26157]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:37 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:37 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Start request repeated too quickly. Nov 20 19:39:37 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Failed with result 'start-limit'. # journalctl -f # on host system while apt-get install tgt is running Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:41 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:41 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service)
2015-11-20 19:56:54 Lee Trager description When trying to install tgt in an LXD container the post install script fails. I've tried setting the container profile as uncontained as per https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-apparmor to no avail. This is preventing MAAS from being able to be run in an LXD container. # apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up tgt (1:1.0.57-1ubuntu2) ... Job for tgt.service failed because the control process exited with error code. See "systemctl status tgt.service" and "journalctl -xe" for details. invoke-rc.d: initscript tgt, action "start" failed. dpkg: error processing package tgt (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  tgt E: Sub-process /usr/bin/dpkg returned an error code (1) # systemctl status tgt.service ● tgt.service - (i)SCSI target daemon    Loaded: loaded (/lib/systemd/system/tgt.service; enabled; vendor preset: enabled)    Active: failed (Result: start-limit) since Fri 2015-11-20 19:29:28 UTC; 14s ago      Docs: man:tgtd(8)   Process: 24536 ExecStop=/usr/sbin/tgtadm --op update --mode sys --name State -v offline (code=exited, status=107)   Process: 24521 ExecStart=/usr/sbin/tgtd -f (code=exited, status=1/FAILURE)  Main PID: 24521 (code=exited, status=1/FAILURE) Nov 20 19:29:28 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:29:28 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Start request repeated too quickly. Nov 20 19:29:28 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:29:28 maas-dev systemd[1]: tgt.service: Failed with result 'start-limit'. # journalctl -f # while running apt-get install tgt Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24816:14005113 (system bus name :1.78 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:29 maas-dev systemd[1]: Reloading. Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24816:14005113 (system bus name :1.78, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:29 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24894:14005139 (system bus name :1.79 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:29 maas-dev systemd[1]: Reloading. Nov 20 19:39:30 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24894:14005139 (system bus name :1.79, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:30 maas-dev polkitd(authority=local)[1828]: Registered Authentication Agent for unix-process:24957:14005162 (system bus name :1.80 [/usr/bin/pkttyagent --notify-fd 4 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Nov 20 19:39:30 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:30 maas-dev tgtd[24974]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:30 maas-dev tgtd[24974]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:33 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:33 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:34 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:34 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtadm[25946]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:35 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:35 maas-dev polkitd(authority=local)[1828]: Unregistered Authentication Agent for unix-process:24957:14005162 (system bus name :1.80, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:35 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtd[25989]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:35 maas-dev tgtd[25989]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:35 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:35 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:35 maas-dev tgtadm[26004]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:35 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:35 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:35 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtd[26040]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:36 maas-dev tgtd[26040]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtadm[26055]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:36 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:36 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtd[26091]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:36 maas-dev tgtd[26091]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:36 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:36 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:36 maas-dev tgtadm[26106]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:36 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:36 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:36 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:36 maas-dev systemd[1]: Starting (i)SCSI target daemon... Nov 20 19:39:37 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev tgtd[26142]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:39:37 maas-dev tgtd[26142]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:39:37 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:39:37 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:39:37 maas-dev tgtadm[26157]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:39:37 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:39:37 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Start request repeated too quickly. Nov 20 19:39:37 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:39:37 maas-dev systemd[1]: tgt.service: Failed with result 'start-limit'. # journalctl -f # on host system while apt-get install tgt is running Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:41 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:41 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:41 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:42 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:42 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:45:43 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:45:43 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) When trying to install tgt in an LXD container the post install script fails. I've tried setting the container profile as uncontained as per https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-apparmor to no avail. This is preventing MAAS from being able to be run in an LXD container. /system.slice/tgt.service) root@maas-dev:~# apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up tgt (1:1.0.57-1ubuntu2) ... Job for tgt.service failed because the control process exited with error code. See "systemctl status tgt.service" and "journalctl -xe" for details. invoke-rc.d: initscript tgt, action "start" failed. dpkg: error processing package tgt (--configure): subprocess installed post-installation script returned error exit status 1 E: Sub-process /usr/bin/dpkg returned an error code (1) # systemctl status tgt.service ● tgt.service - (i)SCSI target daemon Loaded: loaded (/lib/systemd/system/tgt.service; enabled; vendor preset: enabled) Active: failed (Result: start-limit) since Fri 2015-11-20 19:51:45 UTC; 2min 25s ago Docs: man:tgtd(8) Process: 31872 ExecStop=/usr/sbin/tgtadm --op update --mode sys --name State -v offline (code=exited, status=107) Process: 31857 ExecStart=/usr/sbin/tgtd -f (code=exited, status=1/FAILURE) Main PID: 31857 (code=exited, status=1/FAILURE) Nov 20 19:51:45 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:51:45 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:51:45 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:51:45 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:51:45 maas-dev systemd[1]: Stopped (i)SCSI target daemon. Nov 20 19:51:45 maas-dev systemd[1]: tgt.service: Start request repeated too quickly. Nov 20 19:51:45 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. Nov 20 19:51:45 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:51:45 maas-dev systemd[1]: tgt.service: Failed with result 'start-limit'. # journalctl -xe -- -- Unit tgt.service has failed. -- -- The result is failed. Nov 20 19:54:32 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:54:32 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:54:32 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:54:32 maas-dev systemd[1]: Stopped (i)SCSI target daemon. -- Subject: Unit tgt.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit tgt.service has finished shutting down. Nov 20 19:54:33 maas-dev systemd[1]: Starting (i)SCSI target daemon... -- Subject: Unit tgt.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit tgt.service has begun starting up. Nov 20 19:54:33 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:54:33 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:54:33 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:54:33 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:54:33 maas-dev tgtd[779]: tgtd: iser_ib_init(3436) Failed to initialize RDMA; load kernel modules? Nov 20 19:54:33 maas-dev tgtd[779]: can't adjust oom-killer's pardon /proc/self/oom_score_adj, Permission denied Nov 20 19:54:33 maas-dev systemd[1]: tgt.service: Main process exited, code=exited, status=1/FAILURE Nov 20 19:54:33 maas-dev systemd[1]: dev-.lxd\x2dmounts.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/dev-.lxd\x2dmounts.mount: No such file or directory Nov 20 19:54:33 maas-dev systemd[1]: Failed to realize cgroups for queued unit dev-.lxd\x2dmounts.mount, ignoring: No such file or directory Nov 20 19:54:33 maas-dev systemd[1]: proc-sysrq\x2dtrigger.mount: Failed to create cgroup /lxc/maas-dev-11/system.slice/proc-sysrq\x2dtrigger.mount: No such file or directory Nov 20 19:54:33 maas-dev systemd[1]: Failed to realize cgroups for queued unit proc-sysrq\x2dtrigger.mount, ignoring: No such file or directory Nov 20 19:54:33 maas-dev tgtadm[794]: tgtadm: failed to send request hdr to tgt daemon, Transport endpoint is not connected Nov 20 19:54:33 maas-dev systemd[1]: tgt.service: Control process exited, code=exited status=107 Nov 20 19:54:33 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. -- Subject: Unit tgt.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit tgt.service has failed. -- -- The result is failed. Nov 20 19:54:33 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:54:33 maas-dev systemd[1]: tgt.service: Failed with result 'exit-code'. Nov 20 19:54:33 maas-dev systemd[1]: tgt.service: Service hold-off time over, scheduling restart. Nov 20 19:54:33 maas-dev systemd[1]: Stopped (i)SCSI target daemon. -- Subject: Unit tgt.service has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit tgt.service has finished shutting down. Nov 20 19:54:33 maas-dev systemd[1]: tgt.service: Start request repeated too quickly. Nov 20 19:54:33 maas-dev systemd[1]: Failed to start (i)SCSI target daemon. -- Subject: Unit tgt.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit tgt.service has failed. -- -- The result is failed. Nov 20 19:54:33 maas-dev systemd[1]: tgt.service: Unit entered failed state. Nov 20 19:54:33 maas-dev systemd[1]: tgt.service: Failed with result 'start-limit'. # journalctl -f # on host while apt-get install tgt is running in container Nov 20 11:56:18 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:56:18 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:18 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:56:18 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:18 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:56:18 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:19 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:56:19 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:19 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:56:19 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:19 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:56:19 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:19 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:56:19 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:19 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:56:19 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:19 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:56:19 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:20 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:56:20 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:20 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:56:20 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:20 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:56:20 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:20 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice/tgt.service (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service/control) Nov 20 11:56:20 ltrager-laptop lxcfs[1019]: rmdir: verifying access to name=systemd:lxc/maas-dev-11/system.slice (req path /cgroup/name=systemd/lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:20 ltrager-laptop cgmanager[1018]: cgmanager: Invalid path /run/cgmanager/fs/devices///lxc/maas-dev-11/system.slice/tgt.service (No such file or directory) Nov 20 11:56:20 ltrager-laptop cgmanager[1018]: cgmanager:list_keys_main: Could not determine the requested cgroup (devices:lxc/maas-dev-11/system.slice/tgt.service) Nov 20 11:56:20 ltrager-laptop lxcfs[1019]: ** (process:1019): WARNING **: cgmanager method call org.linuxcontainers.cgmanager0_0.ListKeys failed: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: invalid request. Use G_DBUS_DEBUG=message for more info. Nov 20 11:56:20 ltrager-laptop lxcfs[1019]: rmdir: verifying access to devices:lxc/maas-dev-11/system.slice (req path /cgroup/devices/lxc/maas-dev-11/system.slice/tgt.service)
2015-11-20 19:58:49 Lee Trager bug task added tgt-project
2015-11-20 19:59:38 Lee Trager bug task added maas
2015-11-20 19:59:48 Lee Trager maas: importance Undecided Medium
2015-11-20 19:59:51 Lee Trager maas: status New Triaged
2015-11-27 08:47:46 Launchpad Janitor tgt (Ubuntu): status New Confirmed
2015-12-04 15:50:13 Stéphane Graber bug task added lxd (Ubuntu)
2015-12-04 16:11:51 Robie Basak tgt (Ubuntu): status Confirmed Triaged
2015-12-04 16:11:54 Robie Basak tgt (Ubuntu): importance Undecided High
2015-12-04 16:12:03 Robie Basak bug added subscriber Ubuntu Server Team
2015-12-04 16:26:13 Stéphane Graber bug task deleted lxd (Ubuntu)
2015-12-07 17:11:52 Robie Basak tgt (Ubuntu): assignee Kick In (kick-d)
2015-12-09 14:14:52 Jon Grimm tgt (Ubuntu): assignee Kick In (kick-d) Ryan Harper (raharper)
2015-12-09 17:44:46 Ryan Harper attachment added tgt_fix_lp1518440.diff https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1518440/+attachment/4532054/+files/tgt_fix_lp1518440.diff
2015-12-09 20:24:40 Ubuntu Foundations Team Bug Bot tags patch
2015-12-09 20:24:48 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Sponsors Team
2015-12-21 20:23:33 Michael Terry bug added subscriber Michael Terry
2015-12-21 21:17:55 Launchpad Janitor tgt (Ubuntu): status Triaged Fix Released
2016-01-07 16:51:41 Ryan Harper attachment added Re-apply eaccess fix to tgt-1.0.62 https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1518440/+attachment/4545750/+files/tgt_fix_lp1518440_v2.debdiff
2016-01-07 17:07:00 Michael Terry tgt (Ubuntu): status Fix Released Triaged
2016-01-19 11:48:56 Mathieu Trudel-Lapierre removed subscriber Ubuntu Sponsors Team
2016-01-19 11:49:01 Mathieu Trudel-Lapierre tgt (Ubuntu): status Triaged In Progress
2016-01-19 11:49:03 Mathieu Trudel-Lapierre tgt (Ubuntu): assignee Ryan Harper (raharper) Mathieu Trudel-Lapierre (mathieu-tl)
2016-02-01 08:26:15 Ryan Harper attachment added tgt_fix_lp1518440_v3.debdiff https://bugs.launchpad.net/ubuntu/+source/tgt/+bug/1518440/+attachment/4560974/+files/tgt_fix_lp1518440_v3.debdiff
2016-02-01 11:07:56 Ryan Harper bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813368
2016-02-01 11:07:56 Ryan Harper bug task added tgt (Debian)
2016-02-03 17:18:37 Bug Watch Updater tgt (Debian): status Unknown New
2016-02-10 10:21:14 Bug Watch Updater tgt (Debian): status New Fix Released
2016-02-15 16:19:00 Sean Feole bug added subscriber Sean Feole
2016-02-22 15:35:18 Ryan Harper nominated for series Ubuntu Trusty
2016-02-22 15:57:38 Ryan Harper tgt (Ubuntu): status In Progress Fix Released
2016-02-22 15:57:38 Ryan Harper tgt (Ubuntu): assignee Mathieu Trudel-Lapierre (mathieu-tl)
2016-05-11 17:31:59 Michael Terry bug task added tgt (Ubuntu Trusty)
2016-05-11 17:43:17 Michael Terry bug added subscriber Ubuntu Stable Release Updates Team
2016-05-12 07:44:22 Mathew Hodson tgt (Ubuntu Trusty): importance Undecided High
2016-05-12 07:45:38 Mathew Hodson tgt (Ubuntu Trusty): status New In Progress
2016-05-12 17:25:56 Brian Murray tgt (Ubuntu Trusty): status In Progress Fix Committed
2016-05-12 17:25:59 Brian Murray bug added subscriber SRU Verification
2016-05-12 17:26:09 Brian Murray tags patch patch verification-needed
2016-05-31 16:58:11 Simon Déziel tags patch verification-needed patch verification-done
2016-05-31 17:02:42 Simon Déziel bug added subscriber Simon Déziel
2016-06-01 11:48:43 Launchpad Janitor tgt (Ubuntu Trusty): status Fix Committed Fix Released
2016-06-01 11:48:47 Chris J Arges removed subscriber Ubuntu Stable Release Updates Team
2018-03-27 18:32:57 Andres Rodriguez maas: status Triaged Invalid