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

vzctl chkpnt creates a dump file if it fails

    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#

        Activity

        Hide
        kir Kir Kolyshkin added a comment -

        Thanks for reporting!

        Fixed in GIT:
        http://git.openvz.org/?p=vzctl;a=commit;h=a12bf01dd3056834155ece86327bfd295f154790

        Will be available in vzctl >= 3.0.24. Or test the patch from git if you can.

        Show
        kir Kir Kolyshkin added a comment - Thanks for reporting! Fixed in GIT: http://git.openvz.org/?p=vzctl;a=commit;h=a12bf01dd3056834155ece86327bfd295f154790 Will be available in vzctl >= 3.0.24. Or test the patch from git if you can.
        Hide
        sergeyb Sergey Bronnikov added a comment -

        Bug was fixed more than one year ago and there were no complains from reporter after fix. We believe bug fix helped and mark bug as closed.

        Show
        sergeyb Sergey Bronnikov added a comment - Bug was fixed more than one year ago and there were no complains from reporter after fix. We believe bug fix helped and mark bug as closed.

          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: