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

vzctl chkpnt creates a dump file if it fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: OpenVZ-legacy
    • Component/s: Containers::Userspace
    • Security Level: Public
    • Environment:
      Operating System: Debian
      Platform: x86 (i386)

      Description

      If the command vzctl chkpnt fails for any reason, it still writes a dump file with some data. I believe this file should be cleaned up if the command fails.

      I've also submitted another bug, #1200, which can be used as a test case - calling chkpnt on a container without iptables will cause the command to fail, but the dump file will still be there:

      TestOpenVZ:/vz/dump# ls *236 -l
      ls: *236: No such file or directory
      TestOpenVZ:/vz/dump# vzctl chkpnt 236
      Setting up checkpoint...
              suspend...
              dump...
      Can not dump container: Invalid argument
      Error: iptables-save exited with 255
      Checkpointing failed
      TestOpenVZ:/vz/dump# ls *236 -l
      -rw------- 1 root root 13176 2009-03-02 12:17 Dump.236
      TestOpenVZ:/vz/dump#

        Attachments

          Activity

            People

            Assignee:
            igor Igor Sukhih
            Reporter:
            richard@richardlawley.com Richard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: