[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] libxenstat does parse networks with openvswitch only bridges


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Richard Kojedzinszky <richard@xxxxxxxxx>
  • Date: Wed, 04 May 2022 12:08:04 +0200
  • Delivery-date: Wed, 04 May 2022 10:08:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.