Bug 525626

Summary: libvirtd can not attach interface after detach NIC hot-plug device
Product: [Fedora] Fedora Reporter: jbao <jbao>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: berrange, clalance, crobinso, dwmw2, gcosta, itamar, jaswinder, jforbes, markmc, quintela, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-25 07:50:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jbao 2009-09-25 06:36:24 UTC
Description of problem:
attach-interface rawhide network default fails.
Error:operation failed: failed to add NIC with 'pci_add pci_addr=auto nic macaddr=52:54:00:2a:bc:f4,vlan=0,name=nic.0'
The guest machine shutdown immediately.


Version-Release number of selected component (if applicable):
qemu-kvm-0.10.92-4.fc12.x86_64
libvirt-0.7.1-4.fc12.x86_64
virt-viewer-0.2.0-1.fc12.x86_64

kernel:2.6.31-33.fc12.x86_64


How reproducible:
always

Steps to Reproduce:
1.install Fedora 12 kvm guest
2.execute virsh edit <your_guest_name> , remove every <interface> blocks in
the file, save the file
3. create new xml file:
<interface type='network'>
     <mac address='52:54:00:40:45:83'/>
     <source network='default'/>
     <model type='virtio'/>
</interface>
4. start the guest and make sure that there is no interface in ifconfig than lo.
5.virsh attach-device <your_guest_name> <name_of_xml_file>
6.virsh detach-device <your_guest_name> <name_of_xml_file>
7.virsh attach-interface <your_guest_name> network default

Actual results:
Error:operation failed: failed to add NIC with 'pci_add pci_addr=auto nic macaddr=52:54:00:2a:bc:f4,vlan=0,name=nic.0'
The guest machine shutdown immediately.


Expected results:
The network works.

Additional info:

Comment 1 jbao 2009-09-25 07:46:47 UTC
It works now at the new version:

qemu-kvm-0.10.92-5.fc12.x86_64
libvirt-0.7.1-6.fc12.x86_64
virt-viewer-0.2.0-1.fc12.x86_64

Comment 2 jbao 2009-09-25 07:50:18 UTC
It works now at the new version:

qemu-kvm-0.10.92-5.fc12.x86_64
libvirt-0.7.1-6.fc12.x86_64
virt-viewer-0.2.0-1.fc12.x86_64