Bug 1464838

Summary: qemu records an undocumented field "=keyvalue-pairs" in overlay image of a RBD volume after snapshot
Product: Red Hat Enterprise Linux 7 Reporter: Han Han <hhan>
Component: qemu-kvm-rhevAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: coli, dyuan, pkrempa, rbalakri, virt-maint, xuzhang, yanqzhan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-26 06:48:21 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 Han Han 2017-06-26 02:56:40 UTC
Description of problem:
As subject

Version-Release number of selected component (if applicable):
libvirt-3.2.0-15.el7a.x86_64
qemu-kvm-rhev-2.9.0-14.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
According to the last sentence in https://bugzilla.redhat.com/show_bug.cgi?id=1461638#c16, I file this bug.
1. Run a VM with rbd backend
2. Create external snapshot for the rbd disk
3. Do blockcommit. You will find <host/> missing in VM's xml.

Actual results:
As step3

Expected results:
<host/> is not missing

Additional info:

Comment 2 Han Han 2017-06-26 03:02:49 UTC
Hi Peter,
Since time is tight to fix it in 7.4, we should add this as known issue of release note and offer https://bugzilla.redhat.com/show_bug.cgi?id=1461638#c17 as workaround. What do you think?

Comment 3 Peter Krempa 2017-06-26 06:33:16 UTC
It might be a good idea to do this. This is a bug in qemu though so I'll move it.

Comment 4 Peter Krempa 2017-06-26 06:36:11 UTC
The string recorded in the overlay image by qemu after a snapshot is:

json:{"driver": "raw", "file": {"pool": "rbd", "image": "V", "driver": "rbd", "=keyvalue-pairs": "[\"auth_supported\", \"none\", \"mon_host\", \"10.73.75.52\"]"}}

As seen, this does not contain the 'server' section, but contains an undocumented "=keyvalue-pairs".

Comment 5 Han Han 2017-06-26 06:48:21 UTC
Since the bug moved to qemu, duplicated with BZ1464837

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