[Bug 1518440] [NEW] tgt fails to install in LXD

Launchpad Bug Tracker 1518440 at bugs.launchpad.net
Fri Dec 4 16:12:03 UTC 2015


You have been subscribed to a public bug by Robie Basak (racb):

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 at 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)

** Affects: maas
     Importance: Medium
         Status: Triaged

** Affects: tgt-project
     Importance: Undecided
         Status: New

** Affects: lxd (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: tgt (Ubuntu)
     Importance: High
         Status: Triaged

-- 
tgt fails to install in LXD
https://bugs.launchpad.net/bugs/1518440
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report.



More information about the Ubuntu-server-bugs mailing list