one icon indicating copy to clipboard operation
one copied to clipboard

IPv6 address can't be specified when attaching a NIC to a VM

Open brodriguez-opennebula opened this issue 1 year ago • 0 comments

Description

Attaching an IPv6 alias on a VM specifying an address does not work. This does not happen when the IPv6 is not specified

To Reproduce

  • Define an IPv6 range for a Virtual network
AR=[
  IP6="2a04:daaa:0:1::2",
  PREFIX_LENGTH="64",
  SIZE="256",
  SLAAC="off",
  TYPE="IP6_STATIC",
]
  • Try to attach it (as an alias) to a VM
$ onevm nic-attach -n 33 -a NIC0 -i 2a04:da00:0:1::fff1 118
[one.vm.attachnic] Cannot get IP/MAC lease from virtual network 33.
  • The template generated by the command would be the following
NIC_ALIAS = [ PARENT = NIC0, NETWORK_ID = 33, IP   = 2a04:da00:0:1::fff1]

Expected behavior The specified NIC would get an alias with the specified IPv6 address

Details

  • Affected Component: Core
  • Hypervisor: KVM
  • Version: 6.8

Additional context

  • As commented before, the following command works correctly and attaches an IPv6 alias on the interface
$ onevm nic-attach -n 33 -a NIC0 118
  • IPv6 address ranges can be larger than the amount of MACs that can be assigned to its VMs. That can lead to a source of problems

Progress Status

  • [ ] Code committed
  • [ ] Testing - QA
  • [ ] Documentation (Release notes - resolved issues, compatibility, known issues)

brodriguez-opennebula avatar Jun 27 '24 09:06 brodriguez-opennebula