Bug 1463714
Summary: | virt-resize doesn't protect source disk from changes | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Richard W.M. Jones <rjones> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | lmiksik, mtessun, ptoscano, xchen |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.36.3-6.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 22:13:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Richard W.M. Jones
2017-06-21 14:37:47 UTC
Steps to reproduce: 1. Prepare a disk image which contains uncommitted filesystem changes: $ virt-builder fedora-25 $ guestfish -a fedora-25.img -i -- touch /test : -kill-subprocess : exit 2. Find the checksum of this image (the actual checksum you obtain will be different from the example given here): $ md5sum fedora-25.img 6afc92d269906d60226abe088dad537e fedora-25.img 3. Run virt-resize to resize the image: $ rm -f output $ truncate -s 10G output $ virt-resize fedora-25.img output $ rm output 4. Find the checksum of the *input* file again and compare it to previous: $ md5sum fedora-25.img eee42de9461bfd0853a8d986ba8280c9 fedora-25.img If the checksum changes between step 2 & step 4 then you have reproduced the bug. Bug reproduced on RHEL 7.4 using the steps in comment 2. I can reproduce this bug according to comment 2 with version: libguestfs-1.36.3-5.el7.x86_64 Verified with package: libguestfs-1.36.3-6.el7.x86_64 Steps: 1. Prepare a disk image which contains uncommitted filesystem changes: $ virt-builder fedora-25 $ guestfish -a fedora-25.img -i -- touch /test : -kill-subprocess : exit 2. Find the checksum of this image (the actual checksum you obtain will be different from the example given here): $ md5sum fedora-25.img b909b38af1cb8a98e88f685daad5ab98 fedora-25.img 3. Run virt-resize to resize the image: $ rm -f output $ truncate -s 10G output $ virt-resize fedora-25.img output $ rm output 4. Find the checksum of the *input* file again and compare it to previous: $ md5sum fedora-25.img b909b38af1cb8a98e88f685daad5ab98 fedora-25.img The checksum is the same between step 2&4, so verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2023 |