Feature #4205

Name host-side guest interfaces uniquely

Added by Roy Keene over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:11/26/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Drivers - Network
Target version:Release 5.0
Resolution: Pull request:

Description

Currently host-side guest interfaces are named by libvirt which picks a name such as "vnet0", "vnet1", etc.

The problem is that libvirt may re-use these names if they become unused. In combination with security groups this can create an issue if a security group refers to "vnet0" for a VM that gets terminated but not cleaned up (for whatever reason).

A sane approach to fixing this is to name the interfaces uniquely on a host -- libvirt seems to have no mechanism for not re-using "vnet" names, but we can specify it in the XML file for the domain.

Attached is a patch to do this. It names the host-side guest interfaces "one-<domain_id>-<nic_id>".

Note that it removes support for processing the TARGET attribute for the system, I'm not sure if this attribute is used anywhere but it's a bad idea in my case to support allowing the users to name their interfaces anything.

opennebula-4.12.1-uniquenic.diff Magnifier (2.84 KB) Roy Keene, 11/26/2015 07:03 AM

Associated revisions

Revision a716343a
Added by Jaime Melis over 5 years ago

Feature #4205: Name host-side guest interfaces uniquely

This commit is based on the patch submitted by Roy Keene.

History

#1 Updated by Ruben S. Montero over 5 years ago

  • Status changed from Pending to New
  • Target version set to Release 5.0

THANKS!

#2 Updated by Jaime Melis over 5 years ago

  • Status changed from New to Closed

Also available in: Atom PDF