Bug 1459690

Summary: internal error: unable to execute QEMU command 'object-add': attempt to add duplicate property
Product: [Community] Virtualization Tools Reporter: daniel
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: libvirt-maint, rbalakri
Target Milestone: ---   
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-07 20:31:04 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 daniel 2017-06-07 20:24:59 UTC
Description of problem:
When adding an RBD disk to a KVM domain already using RBD disk, the libvirt daemon (?) does not number the drives properly and tries to attach a drive as a conflicting ID.

Version-Release number of selected component (if applicable):
2.0.0 on CentOS7

How reproducible:
virsh attach-device instance-0000080a test-device.xml --live

Steps to Reproduce:
1. Create a domain with network-backed disk (e.g. RBD)
2. Try to attach a second RBD volume: virsh attach-device instance-0000080a test-dev.xml --live

Actual results:
error: Failed to attach device from test-device.xml
error: internal error: unable to execute QEMU command 'object-add': attempt to add duplicate property 'scsi0-0-0-0-secret0' to object (type 'container')

Expected results:
It should work.

Additional info:
See https://bugs.launchpad.net/nova/+bug/1678694/comments/3

Comment 1 daniel 2017-06-07 20:31:04 UTC
Actually, not a bug in libvirt - XML definition of a disk is wrong. Sorry.