Skip to content

qemu savevm overwrites snapshots when tags used 0 and 1 consecutively #23

@nasastry

Description

@nasastry

cde:info Mirrored with LTC bug https://bugzilla.linux.ibm.com/show_bug.cgi?id=160120 </cde:info>

---Problem Description---
While creating snapshots when tag name '0' used in the very first and followed by tag name '1' then snapshot created with tag name '0' getting erased.

---Steps to Reproduce---

  1. Start the guest and connect to the qemu monitor
qemu-system-ppc64 --nographic -vga none -machine pseries,accel=kvm,kvm-type=HV -m 2G,slots=32,maxmem=16G -device virtio-blk-pci,drive=rootdisk -drive file=/home/nasastry/hostos-3.0-ppc64le.qcow2,if=none,cache=none,id=rootdisk,format=qcow2 -net nic,model=virtio -monitor telnet:127.0.0.1:1234,server,nowait

connect to monitor by

# telnet localhost 1234

  1. At the monitor issue the following commands
(qemu) info snapshots
There is no snapshot available.
(qemu) info status
VM status: running
(qemu) savevm 0
(qemu) info snapshots
List of snapshots present on all disks:
ID        TAG                 VM SIZE                DATE       VM CLOCK
--        0                      338M 2017-10-16 13:44:35   00:02:07.491
(qemu) info status
VM status: running
(qemu) savevm 1
(qemu) info snapshots
List of snapshots present on all disks:
ID        TAG                 VM SIZE                DATE       VM CLOCK
--        1                      340M 2017-10-16 13:45:12   00:02:18.835
(qemu) info status
VM status: running

snapshot created with tag '0' was replaced by tag '1'.
The same overwriting doesn't happen when used '0', '2' consecutively.

# rpm -qf /usr/bin/qemu-system-ppc64
qemu-system-ppc-2.10.0-2.rel.gitc334a4e.el7.centos.ppc64le

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions