← Back to team overview

kernel-packages team mailing list archive

[Bug 1226855] Re: Cannot use open-iscsi inside LXC container

 

@Serge, Hi, had a customer ping me about this bug, any updates?  Here's
his explanation:

You may recall our conversation around iSCSI connectivity for binding
block volume with host in OpenStack. The host is Linux container and
block volume is on EMC VMAX. The I/O path is over iSCSI.  The
environment is Ubuntu 14.04 LTS x64. Our observation and KB found from
internet is also given.

- Regular attach volume works fine (iSCSI login occurs between compute node and array target). In this context, Compute node is a physical host
- When creating bootable volume, controller node needs to perform iSCSI login for instance to copy.  We are seeing issues with this. In this case, Compute node is an LXC container.  
- Same isciadm commands that fail within the container, run fine when running outside the container (on physical controller host)

Looks like,

    There’s a iSCSI kernel bug with mounting a target within a container
    The issue is with multiple namespaces it appears.

KBs found:
https://github.com/lxc/lxc/issues/177 
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1226855
https://groups.google.com/forum/#!topic/open-iscsi/GhKfxIix4ds
 
Do we know whether this is fixed?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1226855

Title:
  Cannot use open-iscsi inside LXC container

Status in linux package in Ubuntu:
  Confirmed
Status in lxc package in Ubuntu:
  Confirmed

Bug description:
  Trying to use open-iscsi from within an LXC container, but the iscsi
  netlink socket does not support multiple namespaces, causing: "iscsid:
  sendmsg: bug? ctrl_fd 6" error and failure.

  Command attempted: iscsiadm -m node -p $ip:$port -T $target --login

  Results in:

  Exit code: 18
  Stdout: 'Logging in to [iface: default, target: $target, portal: $ip,$port] (multiple)'
  Stderr: 'iscsiadm: got read error (0/0), daemon died?
  iscsiadm: Could not login to [iface: default, target: $target, portal: $ip,$port].
  iscsiadm: initiator reported error (18 - could not communicate to iscsid)
  iscsiadm: Could not log into all portals'

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: lxc 0.9.0-0ubuntu3.4
  ProcVersionSignature: Ubuntu 3.8.0-30.44-generic 3.8.13.6
  Uname: Linux 3.8.0-30-generic x86_64
  ApportVersion: 2.9.2-0ubuntu8.3
  Architecture: amd64
  Date: Tue Sep 17 14:38:08 2013
  InstallationDate: Installed on 2013-01-15 (245 days ago)
  InstallationMedia: Xubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
  MarkForUpload: True
  SourcePackage: lxc
  UpgradeStatus: Upgraded to raring on 2013-05-16 (124 days ago)

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


Follow ups