Bug 1080947 - packstack should support l2population mechanism driver as part of ml2 configuration
Summary: packstack should support l2population mechanism driver as part of ml2 configu...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 5.0 (RHEL 7)
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
: 5.0 (RHEL 7)
Assignee: Martin Magr
QA Contact: Nir Magnezi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-26 10:47 UTC by Nir Magnezi
Modified: 2019-09-10 14:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-04 12:55:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.