Skip to content

CS tries to assign to VM IP already assigned to virtual Router #11607

@akrasnov-drv

Description

@akrasnov-drv

problem

I faced a weird issue when CloudStack assigns to VM IP used by vRouter.
I tried removing all VMs, removing vRouter, but it did not help.
My configuration - shared network with separate management and guest subnets
Guest network IPs:
Image

Still on new VM start I'm getting

Image

As you can see on attachments 10.10.126.13 is used by vRouter but still assigned to VM

Image

versions

CloudStack 4.21.0.0
KVM
Ubuntu 24
vRouter Software 4.21.0.0, template 4.20.1
I can provide mysql data on request

The steps to reproduce the bug

  1. Configured CS with shared network (dns, dhcp, metadata server) - v4.19
  2. Defined guest subnet (no vlan)
  3. upgraded to 4.20, then to 4.21 (I have not noticed if already had an isse on previous versions, but can't tell for sure it started just with 4.21)
    3.Faced the issue of VM not getting name and IP from vRouter, and finally found duplicate IP assignment.

What to do about it?

CS should not assign IPs in use. I hardly understand why it happens at all. As you can see CS is aware that the IP is allocated already.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions