[RFE] Provide separation between VNIC and VIF in core Nova and Neutron
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned | ||
neutron |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
It might be easier to view the VM plugging process in OpenStack as composed of three partners, attributes of a Neutron port:
* The VIF edge (plugging in a TAP device into a bridge, configuring a NIC's VEB, some other form of virtual port manipulation…)
* The VNIC edge (hypervisor config, emulated hardware model, etc.)
* The transport mechanism (vhost-net, vhost-user, vfio for SR-IOV, etc.)
Currently, there are a few places in core OpenStack that conflate the three concepts. For example, nova/network/
Compounding this problem is the current plugging method with libvirt. The plugging logic for many mechanism drivers moved into libvirt, meaning that nova passes both VNIC and VIF information to libvirt in some cases and not in others. The OS-VIF library is a step away from that direction: https:/
This RFE requests a mechanism to allow for more granularity in the plugging logic semantics: a mechanism driver should not need to re-invent common plugging code on the VIF or VNIC side. For example, just as primitives for plugging a netdev into a bridge should be part of the OS-VIF library, so should the VNIC configuration by the hypervisor be as cleanly abstracted and separated as possible.
Initially, the hypervisor driver should receive both VNIC and VIF objects and have logic to decide to generate the required VM configuration. For example if an OVS VIF and vhost-net VNIC is passed to the libvirt driver, it generates xml to handle the bridge and VM plugging. In the case a driver requires another method of plugging, but can re-use the OVS VIF or the VNIC code it should be able to do so.
Netronome is willing to devote resources to this project in order to improve the OpenStack infrastructure and reduce code duplication.
affects: | devstack → nova |
description: | updated |
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in nova: | |
status: | New → Opinion |
importance: | Undecided → Wishlist |
This sounds good, but I don't think there is anything we can do on the neutron side to help with this. Or am I missing something?