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

Re: [Xen-API] Wrong MTU via API Method get_MTU !

  • To: "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • From: Skale Franz <franz.skale@xxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 21 Sep 2016 08:09:33 +0000
  • Accept-language: de-AT, de-DE, en-US
  • Delivery-date: Wed, 21 Sep 2016 08:09:49 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: AdITzDYbyJqhMXWURmezwjPO9kzBqwAErmpG
  • Thread-topic: Wrong MTU via API Method get_MTU !

Hello again,
another info which leads me to a bug is, using PIF::get_all_records() and utilizing the host ref.
what comes out is that, when having a cluster, the MTU is displayed wrong, like:
VLAN: 1484 MTU: 9000 Hostref: xensued01
VLAN: 1484 MTU: 1500 Hostref: xennord01
The VM runs on xennord01 with enabled MTU 9000.
I connected the vm to another system and testing the MTU by setting the DNF bit using ping -M do using -s option 9000 which succeeds.
How can i obtain the right MTU for one partiucular PIF when using clustering like Xencenter does ?


Von: Xen-api [xen-api-bounces@xxxxxxxxxxxxx]" im Auftrag von "Skale Franz [franz.skale@xxxxxxxxxxxxxxxxxxx]
Gesendet: Mittwoch, 21. September 2016 08:06
An: xen-api@xxxxxxxxxxxxx
Betreff: [Xen-API] Wrong MTU via API Method get_MTU !

i hope that's the right place for my particular problem i have with the XEN APi.
I use two different approaches to get the MTU of a VLAN and get two different , but wrong values.
The XenCenter show the right values.

Approach 1:

1.) Xen::API::VM::get_all_records
2.) Xen::API::VM::get_VIFs
3.) Loop through all the vifs and use:
4.) Xen::API::VIF::get_MTU

I get Networks with MTU "0".


Network: VLAN-7a0aeadb-0cae-ae3c-9a4e-5e20acb2cd69-72
VLAN: 72
MTU: 0
MAC: xx:xx:xx:xx:xx:xx
PIF UUID: 06dcf73f-6ba7-3810-c7a7-da6bcd003c69

Approach 2:
1.) Xen::API::network::get_all
2.) Xen::API::network::get_VIFs
3.) Xen::API::VIF::get_MTU

VLAN: 72
MTU: 9000

But checking another VLAN which xencenter claims to be MTU 9000, i get MTU 1500 ! (using method 2).
VLAN: 1455
MTU: 1500
Using method 1 shows me:

Network: VLAN-7a0aeadb-0cae-ae3c-9a4e-5e20acb2cd69-1455
VLAN: 1455
MTU: 9000

What is the right method to get the REAL MTU value using the Xen API ?

it would be great if anyone can tell if i hit a bug or it's supposed to be so ?

Thanks in advance


Xen-api mailing list



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