Jump to: navigation, search

Difference between revisions of "Metaplugin"

 
(4 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
== Setup ==
 
== Setup ==
  
* setup linuxbridge with devstack and make sure it is working
+
* setup linuxbridge and make sure it is working
* setup openvswithc with devstack and make sure it is working
+
* setup openvswith and make sure it is working
  
 
== Setup nova-meta-driver ==
 
== Setup nova-meta-driver ==
  
DEST=/opt/stack (which devstack is installed)
+
    git clone https://github.com/nttmcl/nova-meta-driver.git
cd $DEST
+
    cd nova-meta-driver
git clone git@github.com:nttmcl/nova-meta-driver.git
+
    sudo python setup develop
cd $DEST/nova-meta-driver
 
sudo python setup develop
 
  
 
== Add followings to the /etc/quantum/dhcp_agent.ini ==
 
== Add followings to the /etc/quantum/dhcp_agent.ini ==
  
meta_flavor_driver_mappings = "openvswitch:quantum.agent.linux.interface.OVSInterfaceDriver,linuxbridge:quantum.agent.linux.interface.BridgeInterfaceDriver"
+
    meta_flavor_driver_mappings = "openvswitch:quantum.agent.linux.interface.OVSInterfaceDriver,linuxbridge:quantum.agent.linux.interface.BridgeInterfaceDriver"
interface_driver = quantum.agent.linux.interface.MetaInterfaceDriver
+
    interface_driver = quantum.agent.linux.interface.MetaInterfaceDriver
  
 
== Add l3_agent.ini ==
 
== Add l3_agent.ini ==
 +
 +
    meta_flavor_driver_mappings = "openvswitch:quantum.agent.linux.interface.OVSInterfaceDriver,linuxbridge:quantum.agent.linux.interface.BridgeInterfaceDriver"
 +
    interface_driver = quantum.agent.linux.interface.MetaInterfaceDriver
  
meta_flavor_driver_mappings = "openvswitch:quantum.agent.linux.interface.OVSInterfaceDriver,linuxbridge:quantum.agent.linux.interface.BridgeInterfaceDriver"
+
== Add /etc/quantum/quantum.conf ==
interface_driver = quantum.agent.linux.interface.MetaInterfaceDriver
 
  
== Add /etc/quantum/quantum.conf ==
+
    core_plugin = quantum.plugins.metaplugin.meta_quantum_plugin.MetaPluginV2
  
core_plugin = quantum.plugins.metaplugin.meta_quantum_plugin.MetaPluginV2
+
== Add /etc/default/quantum-server ==
 +
QUANTUM_PLUGIN_CONFIG="/etc/quantum/plugins/metaplugin/metaplugin.ini"
  
 
== Add followings to the nova.conf ==
 
== Add followings to the nova.conf ==
  
meta_flavor_driver_mappings=openvswitch:nova.virt.libvirt.vif.LibvirtOpenVswitchDriver,linuxbridge:nova.virt.libvirt.vif.QuantumLinuxBridgeVIFDriver
+
    meta_flavor_driver_mappings=openvswitch:nova.virt.libvirt.vif.LibvirtOpenVswitchDriver,linuxbridge:nova.virt.libvirt.vif.QuantumLinuxBridgeVIFDriver
libvirt_vif_driver=metaplugin.vif.MetaBridgeDriver
+
    libvirt_vif_driver=metaplugin.vif.MetaBridgeDriver

Latest revision as of 19:54, 16 May 2013

Note for setup metaplugin with OpenStack networking

  • Current status of Metaplugin is experimental, so it may not be working
  • Metaplugin is not tested in CI, so may be broken

Setup

  • setup linuxbridge and make sure it is working
  • setup openvswith and make sure it is working

Setup nova-meta-driver

   git clone https://github.com/nttmcl/nova-meta-driver.git
   cd nova-meta-driver  
   sudo python setup develop

Add followings to the /etc/quantum/dhcp_agent.ini

   meta_flavor_driver_mappings = "openvswitch:quantum.agent.linux.interface.OVSInterfaceDriver,linuxbridge:quantum.agent.linux.interface.BridgeInterfaceDriver"
   interface_driver = quantum.agent.linux.interface.MetaInterfaceDriver

Add l3_agent.ini

   meta_flavor_driver_mappings = "openvswitch:quantum.agent.linux.interface.OVSInterfaceDriver,linuxbridge:quantum.agent.linux.interface.BridgeInterfaceDriver"
   interface_driver = quantum.agent.linux.interface.MetaInterfaceDriver

Add /etc/quantum/quantum.conf

   core_plugin = quantum.plugins.metaplugin.meta_quantum_plugin.MetaPluginV2

Add /etc/default/quantum-server

QUANTUM_PLUGIN_CONFIG="/etc/quantum/plugins/metaplugin/metaplugin.ini"

Add followings to the nova.conf

   meta_flavor_driver_mappings=openvswitch:nova.virt.libvirt.vif.LibvirtOpenVswitchDriver,linuxbridge:nova.virt.libvirt.vif.QuantumLinuxBridgeVIFDriver
   libvirt_vif_driver=metaplugin.vif.MetaBridgeDriver