Skip to content

Improve VLAN detection for importing KVM instances #11183

@adietrich-ussignal

Description

@adietrich-ussignal

problem

When attempting to import KVM instances, the VLAN returns as '-1'.

versions

Ubuntu 22.04 LTS
KVM Hypervisor
ACS 4.19.1.3

The steps to reproduce the bug

  1. Navigate to Import/Export Instances
  2. Select 'KVM'
  3. Select an Instance from Unmangaed Instances
  4. Select "Import Instance"
  5. Observe NIC field with 'VLAN: -1'

What to do about it?

It would appear possible to lookup the referenced bridge and find the associated interface through these two commands, although alternative means may exist.

brctl show brbond0-254
bridge name	bridge id		STP enabled	interfaces
brbond0-254		8000.92106614741e	no		bond0.254
							vnet23
							vnet24
							vnet25

ip -d link show bond0.254 | grep 'vlan'
    vlan protocol 802.1Q id 254 <REORDER_HDR>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions