Uploaded image for project: 'OpenVZ'
  1. OpenVZ
  2. OVZ-4124

[UPSTREAM] Sharing Unix Domain Sockets between VEs is impossible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: OpenVZ-legacy
    • Component/s: Containers::Kernel
    • Security Level: Public
    • Environment:
      Operating System: All
      Platform: All

      Description

      Creating a listening unix domain socket in a VE, hardlinking or bind-mounting it to another VE and connecting to it from within the other VE is impossible in the current devel version, tested with linux-image-2.6.24-openvz-24-004.1d1-686_004.1d1_i386.deb from download.openvz.org, and with linux-image-2.6.26-1-openvz-686_2.6.26-3_i386.deb from ftp.debian.org (Debian Sid).

      The "Shared webhosting" article in the OpenVZ Wiki suggests to hardlink a MySQL socket from a MySQL VE other VEs which then can connect to MySQL using the shared socket. This is impossible in the current devel OpenVZ.

      The problem is probably caused by the network namespaces change. Unix domain sockets are now part of the network namespace, so communication using unix domain sockets is only possible when both communicating processes are part of the same network namespace. While one may argue this is consistent, it is (at least for me) very surprising, and it is not backward compatible. There is no obvious way to work around this limitation (besides switching to network communication).

      See also the related mail on users@openvz.org at http://openvz.org/pipermail/users/2008-August/002178.html

        Attachments

          Activity

            People

            Assignee:
            khorenko Konstantin Khorenko
            Reporter:
            contact+openvz@sdas.de Stefan Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: