Jump to: navigation, search

Spec-QuantumMidoNetPlugin

Revision as of 11:09, 6 February 2013 by Ryu (talk)

Quantum MidoNet Plugin

'Scope:'

The goal of this blueprint is to implement Quantum plugin for MidoNet virtual networking platform.

Use Cases':'

To provide and enable MidoNet virtual networking technology as one of the options for those using Quantum as cloud networking orchestration.

Some of the benefits that come from using MidoNet in your IaaS cloud are:

  • the ability to scale IaaS networking into the thousands of compute hosts
  • the ability to offer L2 isolation which is not bounded by the VLAN limitation (4096 unique VLANs)
  • making your entire IaaS networking layer completely distributed and fault-tolerant

Implementation Overview:

MidoNetPluginV2 class extends db_base_plugin_v2.QuantumDbPluginV2 and l3_db.L3_NAT_db_mixin, and implements all the necessary methods to provide the Quantum L2 and L3 features:



class MidonetPluginV2(db_base_plugin_v2.QuantumDbPluginV2, l3_db.L3_NAT_db_mixin):


In the virtual topology that gets constructed in the integration with Quantum, there is one virtual router that must always exist, called provider virtual router. It is a virtual router belonging to the service provider, and it is capable of routing traffic among the tenant routers as well as routing traffic into and out of the provider network. The virtual ports on this router are mapped to the interfaces on the 'edge' servers that are connected to the service provider's uplink routers. Additionally, to enable metadata service, another virtual router called metadata virtual router must exist. On the network connected to the metadata router, there is a virtual port in which nova-api (metadata server) listens on, allowing the metadata traffic from the VMs to traverse through the virtual network to reach the metadata server. It is expected that these virtual routers has already been set up and configured for the MidoNet plugin to function properly.

When a tenant creates a router in Quantum, a tenant virtual router is created in MidoNet, and linked to the provider router. Just like l3_agent in Quantum, tenant virtual router acts as the gateway for the tenant networks, and it can also do NAT to implement the floating IP feature. Thus with MidoNet plugin, there is no need to run l3_agent.

When a tenant creates a network in Quantum, a tenant virtual bridge is created in MidoNet, and linked to the tenant router. Just like a Quantum network, a virtual bridge has ports. When a VM is attached to Quantum network's port, it is also attached to MidoNet's virtual bridge port.

MidoNet comes with its own DHCP implementation, so the Quantum's DHCP agent does not need to run. The subnets in Quantum are registered to MidoNet DHCP service when created.

MidoNet's Libvirt VIF driver is not one of Nova's available VIF drivers because it requires the VM's interface type to be 'generic ethernet' in Libvirt, but as of G-3, this interface type is not supported. You would have to get the VIF driver from GitHub: https://github.com/midokura/midonet-openstack. It's VIF driver's responsibility to bind the tap interface to the virtual port via MidoNet API to plug the VM into the MidoNet virtual network.

MidoNet plugin extends SecurityGroupDbMixin, and implements all the security groups features using MidoNet's packet filtering API. Quantum's security group agent does not need to run.

The plugin will support metadata server, but not with overlapping IP address support for G-3. In the MidoNet design, nova-api is plugged into the MidoNet virtual networking in such a way that only traffic destined to and originated from the metadata server goes into the MidoNet's VM network.

The virtual network topology would look as follows:

Configuration variables:

1. To specify MidoNet plugin in Quantum (quantum.conf):


core_plugin = quantum.plugins.midonet.plugin.MidonetPluginV2


2. MidoNet plugin specific configuration parameters (midonet_plugin.ini):



[midonet]
midonet_uri = <MidoNet API server URI>
username = <MidoNet admin username>
password = <MidoNet admin password>
provider_router_id = <Virtual provider router ID>
metadata_router_id = <Virtual metadata router ID>


Test Cases:

We will identify the parts in the plugin code that are prone to bugs and prepare unit tests for them.