Bug 1252780

Summary: virsh net-start default fails in centos 6 for libvirt 1.2.18
Product: [Community] Virtualization Tools Reporter: Mark Clarkson <mark.clarkson>
Component: libvirtAssignee: Laine Stump <laine>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: dyuan, laine, mark.clarkson, mprivozn, rbalakri, shyu
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-28 20:48: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:
Attachments:
Description Flags
Debug log for net-start none

Description Mark Clarkson 2015-08-12 08:56:56 UTC
Description of problem:

'virsh net-start default' fails in centos 6.6 and 6.7 for libvirt 1.2.18

libvirt 1.2.2 works without error.

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

libvirt 1.2.18

How reproducible:

Every time

Steps to Reproduce:
1. virsh net-start default

Actual results:

error: Failed to start network default
error: error creating bridge interface virbr0: Operation not supported

Expected results:

Network default started

Additional info:

libvirt 1.2.2 and 1.2.18 were built from the source tarball with:

./configure
make rpm

Then installed in a vagrant machine 'geerlingguy/centos6' using virtualbox.

Comment 1 Michal Privoznik 2015-08-25 02:56:03 UTC
Can you please provide debug logs?

http://wiki.libvirt.org/page/DebugLogs

Comment 2 Mark Clarkson 2015-08-25 11:15:53 UTC
Created attachment 1066822 [details]
Debug log for net-start

Debug output after 'virsh net-start default'

Comment 3 Laine Stump 2015-08-26 05:31:14 UTC
I posted patches upstream to fix this:

https://www.redhat.com/archives/libvir-list/2015-August/msg00884.html

Comment 4 Mark Clarkson 2015-08-26 08:45:43 UTC
This is great, thanks!

I can confirm that the patches work on centos 6.7.

I built an rpm with the patch on COPR, available here:
https://copr.fedoraproject.org/coprs/mclarkson/libvirt-1.2.18/

Comment 5 Laine Stump 2015-08-28 20:48:04 UTC
Pushed upstream. Will be in libvirt-1.2.19:

commit 66dcb4093750aabd637607a1202cb9b9c15f1298
Author: Laine Stump <laine>
Date:   Tue Aug 25 20:48:19 2015 -0400

    util: fallback to ioctl(SIOCBRADDBR) if netlink RTM_NEWLINK fails
    
commit 97d26e470d5be2f1178cedfea212c5983afd7b30
Author: Laine Stump <laine>
Date:   Tue Aug 25 23:19:03 2015 -0400

    util: fallback to ioctl(SIOCBRDELBR) if netlink RTM_DELLINK fails