Bug 1122743
Summary: | Fails copying a simple interface configuration to a bridge | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam Williamson <awilliam> |
Component: | virt-manager | Assignee: | Cole Robinson <crobinso> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | abisogia, berrange, crobinso, gscrivan, sgraf, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-09-22 22:05:11 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
Adam Williamson
2014-07-24 00:44:47 UTC
I could reproduce it here. virt-manager generates this XML: <interface type="bridge" name="br1"> <bridge stp="on" delay="0.0"> <interface type="ethernet" name="eth0"> <protocol family="ipv4"> <ip address="192.168.125.134" prefix="24"/> <ip address="192.168.125.135" prefix="24"/> </protocol> <protocol family="ipv6"> <ip address="fe80::5054:ff:fe70:aec7" prefix="64"/> </protocol> <mac address="52:54:00:70:ae:c7"/> </interface> </bridge> <protocol family="ipv4"> <ip address="192.168.125.134" prefix="24"/> <ip address="192.168.125.135" prefix="24"/> </protocol> <protocol family="ipv6"> <ip address="fe80::5054:ff:fe70:aec7" prefix="64"/> </protocol> <start mode="none"/> </interface> The problem seems to be in the two "<ip>" elements under "<protocol>" where there should be only one. Giuseppe, thanks for confirming, can you poke at this when you get some time? (not urgent though) sure, I will. I've tried again few other times while debugging it but I wasn't able to hit it. I will try harder and try to understand what changed. I suppose it might somehow depend on the exact address you got from the router via DHCP? As I noted at the end, I was actually trying to reproduce a different bug, and I think that bug might be relevant. So, let me try to describe it. You start with an ethernet adapter (let's call it eth0) which is configured to use DHCP, it does *not* use static addressing. Let's say it's currently assigned IP address 192.168.1.135. You then set up a bridge in virt-manager and pick "Copy configuration from 'eth0'". What I saw the first time I tried it wasn't this crash, but a different bug. The bridge config was successfully created, but it didn't configure the bridge to use DHCP - it configured the bridge to use 192.168.1.135 statically. That's not what I'd expect when I say to 'copy' the configuration of the adapter. So assuming that bug actually happens every time, I figure at this point virt-manager is trying to configure the bridge to use the IP address currently assigned to the ethernet adapter (instead of configuring it to use DHCP, which is really what it should do), and somehow in some specific cases it for some reason gets fooled into believing there are *two* IP addresses (note in your XML there's both .134 and .135), then that causes the crash? I'll have a quick look at the code that copies the config and see if I see anything... Reproduced the "DHCP turns into static" bug and filed as https://bugzilla.redhat.com/show_bug.cgi?id=1124101 . *** Bug 1124101 has been marked as a duplicate of this bug. *** Fixed upstream now: commit bd0bcba0b5957cdc7547048675d51e27bbcf5f02 Author: Cole Robinson <crobinso> Date: Sun Sep 21 15:02:27 2014 -0400 createinterface: Fix 'copy child protocol' behavior (bug 1122743) We should only copy the inactive protocol XML, which lists things like dhcp, vs the running XML, which is the same format as static addressing. Fixed in virt-manager-1.1.0-2.git30db9ece2.fc22 |