Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1080947

Summary: packstack should support l2population mechanism driver as part of ml2 configuration
Product: Red Hat OpenStack Reporter: Nir Magnezi <nmagnezi>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED WORKSFORME QA Contact: Nir Magnezi <nmagnezi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: amuller, aortega, derekh, lpeer, nyechiel, oblaut, yeylon
Target Milestone: ---   
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-04 12:55:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nir Magnezi 2014-03-26 10:47:29 UTC
Description of problem:
=======================
Following to Bug #1017144, Packstack should also support the l2population mechanism driver mentioned in Bug #1056594.
At the moment, CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS only accepts[1] openvswitch and linuxbridge as mechanism drivers

[1] https://github.com/stackforge/packstack/blob/master/packstack/puppet/templates/neutron_ml2_plugin.pp#L3+L17

Version-Release number of selected component (if applicable):
=============================================================
the most up to date packstack NVR: openstack-packstack-2014.1.1-0.4.dev1018.el6.noarch

Comment 2 Martin Magr 2014-05-27 12:08:12 UTC
Looking at the code and git log CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS accepts following from the beginning of ML2 support:

[para@elysium packstack]$ git show 7be825d7b3fcd5be5 | grep -A 12 "neutron-ml2-mechanism-drivers"
+            {"CMD_OPTION"      : "neutron-ml2-mechanism-drivers",
+             "CONF_NAME"       : "CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS",
+             "USAGE"           : ("A comma separated ordered list of "
+                                  "networking mechanism driver entrypoints "
+                                  "to be loaded from the "
+                                  "neutron.ml2.mechanism_drivers namespace."),
+             "PROMPT"          : ("Enter a comma separated ordered list of "
+                                  "networking mechanism driver entrypoints"),
+             "OPTION_LIST"     : ["logger", "test", "linuxbridge",
+                                  "openvswitch", "hyperv", "ncs", "arista",
+                                  "cisco_nexus", "l2population"],
+             "VALIDATORS"      : [validators.validate_multi_options],
+             "DEFAULT_VALUE"   : "openvswitch",

Is there something else which needs to be configured to have l2population working?

Comment 3 Assaf Muller 2014-05-27 12:20:19 UTC
(In reply to Martin Magr from comment #2)
> Looking at the code and git log CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS accepts
> following from the beginning of ML2 support:
> 
> [para@elysium packstack]$ git show 7be825d7b3fcd5be5 | grep -A 12
> "neutron-ml2-mechanism-drivers"
> +            {"CMD_OPTION"      : "neutron-ml2-mechanism-drivers",
> +             "CONF_NAME"       : "CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS",
> +             "USAGE"           : ("A comma separated ordered list of "
> +                                  "networking mechanism driver entrypoints "
> +                                  "to be loaded from the "
> +                                  "neutron.ml2.mechanism_drivers
> namespace."),
> +             "PROMPT"          : ("Enter a comma separated ordered list of "
> +                                  "networking mechanism driver
> entrypoints"),
> +             "OPTION_LIST"     : ["logger", "test", "linuxbridge",
> +                                  "openvswitch", "hyperv", "ncs", "arista",
> +                                  "cisco_nexus", "l2population"],
> +             "VALIDATORS"      : [validators.validate_multi_options],
> +             "DEFAULT_VALUE"   : "openvswitch",
> 
> Is there something else which needs to be configured to have l2population
> working?

You need to append "l2population" to the comma seperated list of mechanism drivers, as well as enable the "l2_population" flag in the [agent] section of the plugin.ini file passed to every ovs/LB agent on every compute node and network node.

Comment 4 Martin Magr 2014-05-27 13:31:56 UTC
Of course value of CONFIG_NEUTRON_ML2_MECHANISM_DRIVERS is inserted to plugin.ini to parameter ml2/mechanism_drivers and (agent|vxlan)/l2_population is set to true if openvswitch/linuxbridge is cantained in mechanism drivers list together with l2population. So if this is it I'm gonna close this bug as WORKSFORME, unless there's other problem.

Comment 5 Ofer Blaut 2014-06-05 06:04:59 UTC
l2poplation was configured in answer file and into the plugins.ini file 
openstack-packstack-2014.1.1-0.20.dev1109.el7ost.noarch

Comment 6 Nir Magnezi 2014-06-09 11:58:18 UTC
Removing NEEDINFO since it has been tested by Ofer.