Skip to content

Migrating router with public interface fails #2783

@marcowi

Description

@marcowi
ISSUE TYPE
  • Bug Report
COMPONENT NAME
VR,QEMU
CLOUDSTACK VERSION
4.11.1
CONFIGURATION

Both hosts have identical configuration:
cloudbr0 - private
cloudbr1 - storage
cloudbr2 - guest (VLAN 2101)
cloudbr3 - public (VLAN 99)

OS / ENVIRONMENT
SUMMARY

Migrating a virtual router from one host to another results in error "org.libvirt.LibvirtException: Cannot get interface MTU on 'brbond2-99': no such device".
Digging into it shows that the qemu hook (https://github.com/apache/cloudstack/blob/master/agent/bindir/libvirtqemuhook.in) iterating over the interfaces; including the public one which has the name brbond3-99. In this iteration it gets the guest interface name from the agent.properties and concatenates it with the vlan-id 99 so it results in brbond2-99.

STEPS TO REPRODUCE

Migrate a router with a public interface which has a vlan.

EXPECTED RESULTS

Since the public interface is needed on the other host as well one should handle the public interface the same but with the public.network.device value from agent.properties.

ACTUAL RESULTS

Public interfaces are treated as guest interfaces.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions