Bug 393051

Summary: Libvirt fails to bring up bridging with rawhide kernel
Product: [Fedora] Fedora Reporter: James Morris <jmorris>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8CC: berrange
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-20 16:08:06 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description James Morris 2007-11-20 15:53:43 EST
Description of problem:

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


How reproducible:


Steps to Reproduce:

# libvirtd --verbose
libvir: QEMU error : failed to bring the bridge 'virbr0' up : Invalid argument
Failed to autostart network 'default': failed to bring the bridge 'virbr0' up :
Invalid argument

Additional info:

It appears to be specific to recent upstream kernels.

The EINVAL is being returned via
117  ioctl(7, SIOCSIFADDR, 0x7fff4e862d60) = 0
5117  ioctl(7, SIOCSIFNETMASK, 0x7fff4e862d60) = 0
5117  ioctl(7, SIOCGIFFLAGS, {ifr_name="virbr0",
5117  ioctl(7, SIOCSIFFLAGS, 0x7fff4e862d70) = -1 EINVAL (Invalid argument)
5117  write(2, "libvir: QEMU error : failed to b"..., 79) = 79

Which corresponds to:
brSetInterfaceUp() in libvirt

dev_change_flags() in the kernel,

if ((old_flags ^ flags) & IFF_UP) {     /* Bit is different  ? */
                ret = ((old_flags & IFF_UP) ? dev_close : dev_open)(dev);

where it seems that dev_open() is failing.
Comment 1 Daniel Berrange 2007-11-20 16:08:06 EST

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