Bonded interface viewing support in XO
-
@olivierlambert Yup, you're right! This command gives the bond type:
# xe bond-param-list uuid=5f470b0a-f59e-5c34-69a5-4676719da6d6 uuid ( RO) : 5f470b0a-f59e-5c34-69a5-4676719da6d6 master ( RO): 8d0b83b2-4336-c7a5-f84f-be0d6a49064f slaves ( RO): 3598380c-3da3-c096-7a84-2c4ac2b280ee; 7188d716-cf0a-4e34-5ab1-5ddae4e6fe28 mode ( RO): active-backup properties (MRO): primary-slave ( RO): 3598380c-3da3-c096-7a84-2c4ac2b280ee links-up ( RO): 2 auto-update-mac ( RO): true
-
Okay so could you recap what info you'd like, from which source (xe command) and where?
-
In the interfaces list, each interface that is bonded should have this info:
-
The bond device name and network
This is already present today in XO, so no changes here. -
The type of bond
Derived from xe bond-list and then xe bond-param-list uuid=XXXX -
The underlying interfaces (ex: eth0, eth1) that are participating in the bond
Derived from xe bond-list and then the slave UUIDs references to the device names from xe pif-list
In terms of "where", it should be in either Pool > Network or Pool > Host > Network (or both, still not sure the difference between viewing networks in the pool or host)
And as @TheNorthernLight mentioned, it would be great to be able to modify bonds (ex: remove or add or change the underlying interfaces that are in the bond). I don't have XenCenter handy to test if that's a thing, it might be not be possible to modify existing bonds.
Thanks!
-
-
@fohdeesha what do you think? If it sounds reasonable, we should create a Github issue with this
-
@olivierlambert I think the request makes sense, it would be really helpful to see at a quick glance what type of bond it is and what are the bond members (especially for support)
-
@olivierlambert Not to dig up an old thread but was this ever added? I was looking around and wasn't able to find it anywhere.
-
You can check if there's an Github issue opened for that. If yes, you can track the status. If not, there's little chance it would be done
-
Sorry for poking the bear.
Just want to point out (in a positive way as much as possible), that I cannot find an issue related to this one on a Github and as we are trying to migrate our env onto XCP-ng I cannot find inside XOA webGUI the way to check which network interfaces (effectively PIFs eth0 or eth1 in our case) are inside a bond we've created.
There is a way to check that from "xe" command line (the commands are within this thread, few posts above, thank you @VoipDude).
Having this information provided in XOA webGUI would be something nice and useful (for example to confirm that eveyrthing is configured as it should be). Digging this up with "xe" commands took me some time and finding those right commands on the internet with explanation isn't the easiest thing.
As additional what I've spotted it is also hard to distinguish between "master bond" and "pool-wide networks" which are created based on "master bond". (I don't think it's possible from XOA webGUI to get that information).
To me it looks like the only way to distinguish it for now is this:
xe pif-list params=all
Above will give us list of all PIFs with all params. We need to look for an entry where "bond-master-of" is NOT empty AND at the same time if "device" is the one we are looking for AND that the "network-name-label" is the one we are looking for : - )
bond-master-of ( RO): **a0753427-b3f1-52bc-1c0e-2b6481e8701e**
Next step is:
xe bond-param-list uuid=**a0753427-b3f1-52bc-1c0e-2b6481e8701e**
Above will give us UUIDs of interfaces (inside the "master bond") but again we will have to use "xe pif-list" to find what "network-name-labels" hides under UUIDs to get info if those are PIFs eth0 and eth1.
-
Ping @lsouai-vates
-
@piotrlotr1
I'm changing my mind regarding point 2.From XOA webGUI there is a way to distinguish between "master bond" and "pool-wide networks" created based on "master bond".
On pool level, when checking "Network" tab the master bond is marked with "Bonded" icon next to it.
It is NOT so obvious from "host" level as there is no "Bonded" icon next to the "master bond".
-
I agree this is something that would be very useful to have in the WebUI when reviewing pool config to ensure everything is setup properly. It may be too late for XO5 but perhaps something to be added in XO6? I see there has been lots of work happening on the network tab in XO6 currently from looking at the github.
-
-
@VoipDude Moreover, in XO6 there will be additional information visible on click on a PIF in Pool > Network view.
I suggest you to take a look at the future Xen Orchestra release blogspot coming very soon (next week normally) to check if some of them would be interesting for what you are looking for.
-
While we run XOA in Production our DR site runs a from sources XO in case of emergencies, i updated it this morning and took a look at the latest changes and it looks much improved, you can now see a bonds parent device:
I think it would also be useful to show the type of bond (LACP, balance-slb, etc) but this i a great improvement.
-
@flakpyro yes, indeed
that exactly what I was talking about. The XO6 new interface will provide more information, but I am noting the missing type of bound to discuss it with XO team for next feature.