Bug 1252780 - virsh net-start default fails in centos 6 for libvirt 1.2.18
Summary: virsh net-start default fails in centos 6 for libvirt 1.2.18
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Laine Stump
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-12 08:56 UTC by Mark Clarkson
Modified: 2015-08-28 20:48 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-28 20:48:04 UTC
Embargoed:


Attachments (Terms of Use)
Debug log for net-start (360.57 KB, text/plain)
2015-08-25 11:15 UTC, Mark Clarkson
no flags Details

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


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