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

Can't create ubuntu Ubuntu/Debian containers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Fix Version/s: Vz7.0-Update10
    • Component/s: Containers::Userspace
    • Security Level: Public
    • Environment:
      # uname -r
      3.10.0-862.20.2.vz7.73.25
      # cat /etc/redhat-release
      Virtuozzo Linux release 7.5
      # vzctl --version
      vzctl v.7.0.193-1.vz7

      Description

      Hello, i face the situation described here,

      https://forum.openvz.org/index.php?t=msg&th=13590&start=0&S=8740288d423839a29175b8fb191049d4

      Where i cant create ( cache ) ubuntu / debian containers , but im capable to create fedora / centos containers.

      Doing all suggested on the forum, even use the stable rpm instead the factory ones so i opted to open this thread for if im hitting a bug.

      Adding a txt from the vzpkg create cache ubuntu-16.04 command.

      Thanks in advance.

        Attachments

        1. rpm_qa.txt
          28 kB
        2. rpm_Va.txt
          187 kB
        3. vzpkg_create_cache.txt
          154 kB
        4. vzpkg_createa_cache_498941.txt
          123 kB
        5. vzpkg_createa_cache_498943.txt
          1 kB

          Activity

          Hide
          dsilakov Denis Silakov added a comment -

          stat("/etc/localtime",

          {st_mode=S_IFREG|0644, st_size=1069, ...}) = 0
          stat("/vz/pkgenv/dpkgx64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
          mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_GROWSDOWN, 0, 0) = 0x7fe35ae0e000
          rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
          rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_NOCLDSTOP, 0x7fe35a3a2280}, NULL, 8) = 0
          rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
          rt_sigaction(SIGQUIT, {SIG_IGN, [QUIT], SA_RESTORER|SA_RESTART, 0x7fe35a3a2280}, {SIG_DFL, [], 0}, 8) = 0
          rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
          rt_sigaction(SIGINT, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0x7fe35a3a2280}, {SIG_DFL, [], 0}, 8) = 0
          clone(child_stack=0x7fe35ae0fff0, flags=CLONE_NEWUTS|SIGCHLD) = 47565
          wait4(47565, Error: [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0, NULL) = 47565
          — SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=47565, si_uid=0, si_status=SIGSEGV, si_utime=0, si_stime=0} —
          stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1069, ...}

          ) = 0
          write(2, "Error: ", 7Error: ) = 7
          write(2, "Got signal 11", 13Got signal 11) = 13
          write(2, "\n", 1
          ) = 1
          open("/var/log/vztt.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 8
          lseek(8, 0, SEEK_END) = 1260
          fstat(8,

          {st_mode=S_IFREG|0644, st_size=1260, ...}

          ) = 0
          mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe35ade8000
          write(8, "2019-01-28T16:38:14-0300 : Error: Got signal 11\n", 48) = 48

          vzpkgenvdebx64 apt/dpkg got SIGSEGV. Unfortunatelly, can't reproduce it locally.

          Show
          dsilakov Denis Silakov added a comment - stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1069, ...}) = 0 stat("/vz/pkgenv/dpkgx64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_GROWSDOWN, 0, 0) = 0x7fe35ae0e000 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER|SA_NOCLDSTOP, 0x7fe35a3a2280}, NULL, 8) = 0 rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_IGN, [QUIT], SA_RESTORER|SA_RESTART, 0x7fe35a3a2280}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0x7fe35a3a2280}, {SIG_DFL, [], 0}, 8) = 0 clone(child_stack=0x7fe35ae0fff0, flags=CLONE_NEWUTS|SIGCHLD) = 47565 wait4(47565, Error: [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}] , 0, NULL) = 47565 — SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=47565, si_uid=0, si_status=SIGSEGV, si_utime=0, si_stime=0} — stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1069, ...} ) = 0 write(2, "Error: ", 7Error: ) = 7 write(2, "Got signal 11", 13Got signal 11) = 13 write(2, "\n", 1 ) = 1 open("/var/log/vztt.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 8 lseek(8, 0, SEEK_END) = 1260 fstat(8, {st_mode=S_IFREG|0644, st_size=1260, ...} ) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fe35ade8000 write(8, "2019-01-28T16:38:14-0300 : Error: Got signal 11\n", 48) = 48 vzpkgenvdebx64 apt/dpkg got SIGSEGV. Unfortunatelly, can't reproduce it locally.
          Hide
          wolf Konstantin Volckov added a comment -

          Guillermo, could you please provide the:

          1. strace -ff vzpkg create cache output
          2. /var/log/vztt.log
          3. rpm -qa output
          4. rpm -Va output

          for further investigation?

          Show
          wolf Konstantin Volckov added a comment - Guillermo, could you please provide the: 1. strace -ff vzpkg create cache output 2. /var/log/vztt.log 3. rpm -qa output 4. rpm -Va output for further investigation?
          Hide
          gu1lle Guillermo added a comment -

          Hello, thanks for your answers;

          I've attached the info required.

          Plus, before being in this stage; once i tried to create ct or cache for ubuntu / debian i've received the error like /vz/pkgenv/dpkgx64/ not found , so I manually created .

          Show
          gu1lle Guillermo added a comment - Hello, thanks for your answers; I've attached the info required. Plus, before being in this stage; once i tried to create ct or cache for ubuntu / debian i've received the error like /vz/pkgenv/dpkgx64/ not found , so I manually created .
          Hide
          wolf Konstantin Volckov added a comment -

          Hello!

          According to 'rpm -Va', there are many missed files on /vz partition. Looks like you re-format it or re-mount, right?

          The core of the issue is:


          missing /vz/pkgenv/dpkgx64/usr/bin/apt
          missing /vz/pkgenv/dpkgx64/usr/bin/dpkg

          So, looks like yum reinstall vzpkgenvdebx64 should help you.

          Hovever, i'll fix the vztt - it should report right error for such case.

          Show
          wolf Konstantin Volckov added a comment - Hello! According to 'rpm -Va', there are many missed files on /vz partition. Looks like you re-format it or re-mount, right? The core of the issue is: — missing /vz/pkgenv/dpkgx64/usr/bin/apt missing /vz/pkgenv/dpkgx64/usr/bin/dpkg — So, looks like yum reinstall vzpkgenvdebx64 should help you. Hovever, i'll fix the vztt - it should report right error for such case.

            People

            • Assignee:
              wolf Konstantin Volckov
              Reporter:
              gu1lle Guillermo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: