Bug 1779644 - Delete snaphot fails when vm is running with ' Live merge failed'
Summary: Delete snaphot fails when vm is running with ' Live merge failed'
Keywords:
Status: CLOSED DUPLICATE of bug 1785939
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.4.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: bugs@ovirt.org
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-04 12:35 UTC by Ilan Zuckerman
Modified: 2020-03-19 13:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-19 13:10:41 UTC
oVirt Team: Virt
Embargoed:


Attachments (Terms of Use)

Description Ilan Zuckerman 2019-12-04 12:35:16 UTC
Description of problem:
When vm is running, deleting snapshot of it fails with 'Live merge failed' error on vdsm host.

2019-12-04 12:08:29,692+0000 ERROR (jsonrpc/0) [virt.vm] (vmId='ea2f390f-f7f2-463b-a511-3115b17205a9') Live merge failed (job: ef5af19e-195d-44d0-959a-84fa46bc5739) (vm:5583)
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/vdsm/virt/vm.py", line 5581, in merge
    bandwidth, flags)
  File "/usr/lib/python3.6/site-packages/vdsm/virt/virdomain.py", line 101, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/common/libvirtconnection.py", line 131, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/common/function.py", line 94, in wrapper
    return func(inst, *args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/libvirt.py", line 728, in blockCommit
    if ret == -1: raise libvirtError ('virDomainBlockCommit() failed', dom=self)
libvirt.libvirtError: internal error: qemu block name 'json:{"backing": {"driver": "qcow2", "file": {"driver": "host_device", "filename": "/rhev/data-center/mnt/blockSD/66c682f4-d084-4144-afdf-c15f25c6e3ce/images/5dd7d38b-4187-4635-93b6-c5577c761964/ca837c6a-0633-4276-bec0-a0dd0b67d971"}}, "driver": "qcow2", "file": {"driver": "host_device", "filename": "/rhev/data-center/mnt/blockSD/66c682f4-d084-4144-afdf-c15f25c6e3ce/images/5dd7d38b-4187-4635-93b6-c5577c761964/792e486b-1d16-4185-955c-a0d67cab4d4b"}}' doesn't match expected '/rhev/data-center/mnt/blockSD/66c682f4-d084-4144-afdf-c15f25c6e3ce/images/5dd7d38b-4187-4635-93b6-c5577c761964/792e486b-1d16-4185-955c-a0d67cab4d4b'


Engine error:
http://pastebin.test.redhat.com/819049

Version-Release number of selected component (if applicable):
rhv-release-4.4.0-4
vdsm-4.40.0-141.gitb9d2120.el8ev.x86_64
Engine rhel7, host rhel8

How reproducible:
100%

Steps to Reproduce:
1. Power on the vm, create snapsot of it, remove the snapshot


Actual results:
Removal of snapshot fails

Expected results:
Shouldnt fail

Additional info:
log collector files for engine + relevant host are attached in private message below.

Comment 2 Vojtech Juranek 2019-12-05 10:53:58 UTC
it seems to me rather like a libvirt issue, I can reproduce even from cmdline:

virsh # domblklist 2222
Please enter your authentication name: root
Please enter your password: 
 Target   Source
---------------------------------------------------------------------------------------------------------------------------------------------------------------
 sdc      -
 sda      /rhev/data-center/mnt/blockSD/66c682f4-d084-4144-afdf-c15f25c6e3ce/images/7b66be27-327e-439f-9a09-49ad60bc1c4e/99871d01-ed1d-47e1-8aee-dc58fac90c2c

virsh # blockcommit 2222 sda --active --verbose --pivot
error: internal error: qemu block name 'json:{"backing": {"driver": "qcow2", "file": {"driver": "host_device", "filename": "/rhev/data-center/mnt/blockSD/66c682f4-d084-4144-afdf-c15f25c6e3ce/images/7b66be27-327e-439f-9a09-49ad60bc1c4e/c44f81a2-950e-4e3c-bfb2-b5d77f538357"}}, "driver": "qcow2", "file": {"driver": "host_device", "filename": "/rhev/data-center/mnt/blockSD/66c682f4-d084-4144-afdf-c15f25c6e3ce/images/7b66be27-327e-439f-9a09-49ad60bc1c4e/99871d01-ed1d-47e1-8aee-dc58fac90c2c"}}' doesn't match expected '/rhev/data-center/mnt/blockSD/66c682f4-d084-4144-afdf-c15f25c6e3ce/images/7b66be27-327e-439f-9a09-49ad60bc1c4e/99871d01-ed1d-47e1-8aee-dc58fac90c2c'

Comment 3 Liran Rotenberg 2020-03-19 13:10:41 UTC

*** This bug has been marked as a duplicate of bug 1785939 ***


Note You need to log in before you can comment on or make changes to this bug.