Page MenuHomePhabricator

Prevent creation of VMs on the old ipv4 network
Open, MediumPublic

Description

We want to encourage new VMs to be created on the dual-stack network. The dual-stack network is already the default, but it would be nice to remove the old options from the UI.

Currently the UI provides two ipv4-only options:

VXLAN/IPv4-only
VLAN/legacy

@taavi, is there a reason to leave in support for the new (but still v4-only) VXLAN/IPv4-only network? I imagine Arturo created it for completeness.

Event Timeline

Neutron (wisely) forbids changing a network to unshared when it is already used by multiple tenants. Disabling the network seems to not really change anything other than showing it as 'down' in the UI even though it still works.

So this is probably going to be a custom job. If we want to disallow it from the cli and tofu as well as Horizon, the change will require several pieces.

If Magnum doesn't support dual-stack clusters then I think I consider that a bug that should be fixed separately.

https://bugs.launchpad.net/magnum/+bug/2115298

Magnum templates need access to an IPv4 subnet. I'm currently using the "VXLAN/IPv4-only" network and its "vxlan-ipv4-only" subnet in the zuul project. Things might work as expected with the "VXLAN/IPv6-dualstack" network's "vxlan-dualstack-ipv4" subnet, but I have not actually tested that myself. I did prove that using the "vxlan-dualstack-ipv6" subnet fails (instances can't find the http://169.254.169.254/openstack/latest/user_data service).

If Magnum doesn't support dual-stack clusters then I think I consider that a bug that should be fixed separately.

https://bugs.launchpad.net/magnum/+bug/2115298

Magnum templates need access to an IPv4 subnet. I'm currently using the "VXLAN/IPv4-only" network and its "vxlan-ipv4-only" subnet in the zuul project. Things might work as expected with the "VXLAN/IPv6-dualstack" network's "vxlan-dualstack-ipv4" subnet, but I have not actually tested that myself. I did prove that using the "vxlan-dualstack-ipv6" subnet fails (instances can't find the http://169.254.169.254/openstack/latest/user_data service).

Paws is currently running on the vxlan-dualstack-ipv6 on the ipv4 subnet without issues (that I have noticed) :) :

https://github.com/toolforge/paws/blob/main/tofu/vars.tf#L76

...
variable "fixed_network" {
  type = map(any)
  default = {
    "codfw1dev" = "VXLAN/IPv6-dualstack"
    "eqiad1"    = "VXLAN/IPv6-dualstack"
  }
}
variable "fixed_subnet" {
  type = map(any)
  default = {
    "codfw1dev" = "vxlan-dualstack-ipv4"
    "eqiad1"    = "vxlan-dualstack-ipv4"
  }
}
...
Andrew triaged this task as Medium priority.Jul 22 2025, 8:34 PM