Skip to contentSkip to conversation

libxenstat does parse networks with openvswitch only bridges

BUG Richard Kojedzinszky 1 participant 1 message May 4, 2022

lore
Share & tools
lore
#0 lore raw

Dear xen developers,

When xen is deployed in a way that no linux bridges exists on the host, then https://github.com/xen-project/xen/blob/stable-4.14/tools/xenstat/libxenstat/src/xenstat_linux.c#L313 will get devBridge as empty string, and then conditions on https://github.com/xen-project/xen/blob/stable-4.14/tools/xenstat/libxenstat/src/xenstat_linux.c#L326 will evaluate to true, effectively discarding any parsed results. As a workaround, just creating a fake unused bridge will resolve the issue, howewer libxsenstat itself should take care of such cases.

The same is true for later branches as well.

Regards,
Richard Kojedzinszky