Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot change MTU or NIC for a Network/vlan #7039

Closed
ep1p opened this issue Sep 14, 2023 · 11 comments
Closed

Cannot change MTU or NIC for a Network/vlan #7039

ep1p opened this issue Sep 14, 2023 · 11 comments

Comments

@ep1p
Copy link

ep1p commented Sep 14, 2023

Is your feature request related to a problem? Please describe.
There are three features to do with Networks for a host that are missing in Xen Orchestra that are present in XCP-ng Center which are stopping us retiring it.

  • You cannot edit the MTU for a network or VLAN.
  • You cannot change the Network (NIC) that a VLAN is using on a host (for example if you need to move VLANs on to a different NIC)
  • You cannot add IP settings on a Network (In this instance, I want to bring up a 10G link to a switch we use for migration VLANs between hosts but there is no way to add an IP address on this interface - you can edit an existing one, but not add one)

All of these things have been possible in XCP-ng Center (and XenCenter) for years but they aren't present in XO.

Describe the solution you'd like
I would like to retire XCP-ng Center but XO needs to cover all these features first :-)

Describe alternatives you've considered
I assume these changes are possible via CLI but XCP-ng Center provides a GUI to do this that doesn't involve people needing to SSH to the server.

@olivierlambert
Copy link
Member

Hello @ep1p

Can you list the equivalent xe commands or at worst XenCenter screenshot for each feature, so we can be sure we are doing the right thing?

@ep1p
Copy link
Author

ep1p commented Sep 14, 2023

  • You cannot edit the MTU for a network or VLAN.

xe network-param-set uuid= MTU=9000

This may require toolstack-restart potentially according to citrix forums.

  • You cannot change the Network (NIC) that a VLAN is using on a host (for example if you need to move VLANs on to a different NIC)

Not sure the exact commands, but it looks like this deletes the PIF, and then creates a new PIF, and changes the PIF UUID assigned to the network object of the VLAN to the new one. You can't change the PIF assigned to the VLAN if the VLAN is active on any running VM's.

  • You cannot add IP settings on a Network (In this instance, I want to bring up a 10G link to a switch we use for migration VLANs between hosts but there is no way to add an IP address on this interface - you can edit an existing one, but not add one)

I thinks this is about equivalent to what xencenter does..

xe pif-reconfigure-ip uuid=network-uuid mode=Static IP=10.0.0.3 netmask=255.255.255.240
xe pif-param-set uuid=network-uuid other-config:management_purpose="Migration VLAN"

Thanks,

John

@olivierlambert
Copy link
Member

You can add IP settings on a network in XO. In the host/network views, in the "Mode" row, click on "None" and select Static or DHCP. So it will be only the first 2 points, right?

@ep1p
Copy link
Author

ep1p commented Sep 14, 2023

You can add IP settings on a network in XO. In the host/network views, in the "Mode" row, click on "None" and select Static or DHCP. So it will be only the first 2 points, right?

Ok yes, thanks for pointing that out! Maybe some UI improvements to make that more obvious as I hadn't figured out that you could do that :-)

@olivierlambert
Copy link
Member

Yes we know and those UI improvements will be done in XO 6.

@andrew64k
Copy link

Restarting the toolstack is enough after a MTU change (tested on XCP 8.3).

@marcungeschikts marcungeschikts modified the milestones: v6, Q4 2023 Sep 15, 2023
@julien-f
Copy link
Member

We should make the MTU editable in the view Host/Network.

@julien-f
Copy link
Member

We need to check how it's done in XenCenter.

@olivierlambert olivierlambert changed the title Cannot change MTU or NIC for a Network/vlan or add an IP address to a Network Cannot change MTU or NIC for a Network/vlan Sep 19, 2023
@olivierlambert
Copy link
Member

olivierlambert commented Sep 19, 2023

@julien-f so in fact that should be done in the Pool/network tab, MTU is set on a network object, not a PIF. XAPI should handle the MTU change on the PIF object automatically.

@julien-f
Copy link
Member

And network.MTU is read-write, easier then 👍

@olivierlambert
Copy link
Member

It's done since 2 releases ago, closing then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment