Created attachment 922502 [details]
Description of problem:
if one of host bond slave interfaces is manually shutdown using ifdown command and refresh host capabilities button is used afterwards, the slave which was shut down is removed from bond in Host -> Network interfaces sub-tab
Version-Release number of selected component (if applicable):
oVirt Engine Version: 3.5.0-0.0.master.20140722232056.git8e1babc.fc19
Steps to Reproduce:
1.create bonded interface at host (via Setup Networks)
2.ssh to host and use ifdown command to shut down one of the bond slave interfaces (e.g. ifdown p1p1)
3.hit "Refresh Capabilities" button in webadmin
slave interface which went down is removed from the bond
slave interface remains in bond and is marked as down
- interface is returned to the bond after ifup is used on it
- vdsClient before and after ifdown are attached
Created attachment 922503 [details]
screnshot: before ifdown
Created attachment 922504 [details]
screnshot: after ifdown
Created attachment 922505 [details]
vdsClient outputs before and after ifdown
if both interfaces are ifdowned, bond in GUI (netowrk subtab and setup networks dialog) just disappears completely
that is very confusing for user (it appears like bond is not configured at all)
I think that it appears like the bond is not configured at all because it isn't configured at all. If you ifdown both interfaces, then they're disconnected from the bond, and oVirt doesn't display bonds that aren't connected to any interface. If you want to simulate a case where there's some malfunction, use "ip link set <DEV_NAME> down".
Dan, correct me if I'm wrong.
Well, an interface can be down, but still connected to a bond device. However, the ifdown script explicitly takes it out of the bond.
I think that it would be cool if Engine could handle a bond with no slaves (it should be considered non-functional, of course).
In any case, this bug is not urgent: if someone logs into his hypervisor and messes his network, we show that the network is messed up. Any complimentary information is welcome, but not urgently needed.