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

systemd 220+ doesn't work anymore under OpenVZ container

    Details

      Description

      I opened this bug upstream (https://github.com/systemd/systemd/issues/421), but poettering said it's not a systemd bug and to open this bug here.

      <<
      Sounds like a kernel/OpenVZ bug to me.

      The first name_to_handle_at() call is invoked with an fd of the root directory for the path "sys". The second name_to_handle_at() call is invoked on the same fd, but for the path "" and the AT_EMPTY_FLAG flag is set.

      According to the man page ENOENT means: "pathname is an empty string, but AT_EMPTY_PATH was not specified in flags." Which doesn't apply here, because we do set AT_EMPTY_FLAG.

      This works fine on other container managers (such as nspawn). I presume OpenVZ still needs some special kernel patches, no? Somehow they appear to break name_to_handle_at(). Please report this issue to OpenVZ hence.

      I don't think there's anything to fix in systemd here. Closing hence.
      >>

        Activity

        Hide
        vvs Vasily Averin added a comment -

        Attachment diff-ms-fstatat-with-empty-relative-pathnames has been added with description: AT_EMPTY_PATH support for fstatat() with empty relative pathnames

        Show
        vvs Vasily Averin added a comment - Attachment diff-ms-fstatat-with-empty-relative-pathnames has been added with description: AT_EMPTY_PATH support for fstatat() with empty relative pathnames
        Hide
        vvs Vasily Averin added a comment - - edited

        Updated 042stab108.6 kernel with 2 bugfixes from OpenVZ OVZ-6384
        http://fe.odin.com/381d12be5dcf0d03bb4f84477bcc04ed/

        Dear Timothy,
        please let me know about testing results

        Thank you,
        Vasily Averin

        Show
        vvs Vasily Averin added a comment - - edited Updated 042stab108.6 kernel with 2 bugfixes from OpenVZ OVZ-6384 http://fe.odin.com/381d12be5dcf0d03bb4f84477bcc04ed/ Dear Timothy, please let me know about testing results Thank you, Vasily Averin
        Hide
        timothy.redaelli@gmail.com Timothy Redaelli added a comment - - edited

        (In reply to Vasily Averin from comment #9)
        > Updated 042stab108.6 kernel with 2 bugfixes from OpenVZ OVZ-6384
        > http://fe.odin.com/381d12be5dcf0d03bb4f84477bcc04ed/
        >
        > Dear Timothy,
        > please let me know about testing results
        >
        > Thank you,
        > Vasily Averin

        It works like a charm, thanks!

        systemd 222 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
        Detected virtualization openvz.
        Detected architecture x86-64.

        Show
        timothy.redaelli@gmail.com Timothy Redaelli added a comment - - edited (In reply to Vasily Averin from comment #9) > Updated 042stab108.6 kernel with 2 bugfixes from OpenVZ OVZ-6384 > http://fe.odin.com/381d12be5dcf0d03bb4f84477bcc04ed/ > > Dear Timothy, > please let me know about testing results > > Thank you, > Vasily Averin It works like a charm, thanks! systemd 222 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN) Detected virtualization openvz. Detected architecture x86-64.
        Hide
        vvs Vasily Averin added a comment - - edited

        Both patches was added to 042stab111.1 kernel:
        diff-ms-name_to_handle_at-for-empty-pathname
        diff-ms-fstatat-with-empty-relative-pathnames

        Show
        vvs Vasily Averin added a comment - - edited Both patches was added to 042stab111.1 kernel: diff-ms-name_to_handle_at-for-empty-pathname diff-ms-fstatat-with-empty-relative-pathnames
        Hide
        vvs Vasily Averin added a comment -

        @README@:
        fixed systemd v220+ failure inside container (OVZ #2693)

        Show
        vvs Vasily Averin added a comment - @README@: fixed systemd v220+ failure inside container (OVZ #2693)

          People

          • Assignee:
            khorenko Konstantin Khorenko
            Reporter:
            timothy.redaelli@gmail.com Timothy Redaelli
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: