[Bug 1518440] Re: tgt fails to install in LXD

Launchpad Bug Tracker 1518440 at bugs.launchpad.net
Mon Dec 21 21:17:55 UTC 2015


This bug was fixed in the package tgt - 1:1.0.62-1ubuntu1

---------------
tgt (1:1.0.62-1ubuntu1) xenial; urgency=low

  * Merge from Debian unstable (LP: #1524982, LP: #1518440).  Remaining
    changes:
    - Drop glusterfs support, since it is not in main.
  * debian/upstart:
    - Dropped, we no longer use upstart (except on Touch, where tgt
      isn't used).  Isn't worth a delta.
  * debian/watch:
    - Drop merge conflict markers accidentally left in.
  * debian/tests/*:
    - Drop delta with Debian here, they imported our tests and improved
      them a while back.
  * debian/tgt.service:
    - Drop delta here, Debian made the same change.
  * debian/bash-completion:
    - Dropped, Debian has the same thing, just as tgt.bash-completion.

 -- Michael Terry <mterry at ubuntu.com>  Mon, 21 Dec 2015 14:20:23 -0500

** Changed in: tgt (Ubuntu)
       Status: Triaged => Fix Released

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

Title:
  tgt fails to install in LXD

Status in MAAS:
  Triaged
Status in tgt:
  New
Status in tgt package in Ubuntu:
  Fix Released

Bug 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.
  /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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1518440/+subscriptions



More information about the Ubuntu-sponsors mailing list