Commit Graph

93 Commits

Author SHA1 Message Date
Takashi Kajinami d8a2f212f7 Add [metadata_rate_limiting] options to example config files
The metadata_rate_limiting options were added during the previous
cycles[1] but these options were not added to the oslo.config entry
points thus are still missing from the example config files.

This change adds these options to the appropriate entry points so that
the options are picked up by oslo-config-generator.

These options were previously registered by metadata-agent which are
not using these options really. This change also removes that useless
registration.

[1] 5f4a41326d

Closes-Bug: #2044896
Change-Id: Ib4bea51e24063c275737cdd769ad07c621a845f6
2023-11-28 10:20:35 +09:00
Dmitrii Shcherbakov 89702218db Add extra router attributes for ECMP and BFD
* enable_default_route_ecmp
* enable_default_route_bfd

Partial-Bug: #2002687
Change-Id: I3fcd0458d20f20ce40378f90f073f37c41400865
2023-07-25 17:03:34 +02:00
LIU Yulong dde1d69c78 Add host metadata haproxy manager
Host haproxy configurations will be rendered by jinja2
template. And a process monitor will be used to manage
the host metadata haproxy, which takes care of the
lifecycle of the host metadata haproxy.

Partially-Implements: blueprint distributed-metadata-datapath
Change-Id: Ie7be84d503f5d60d3c50d3ac3aaaf55c13adf7af
2023-05-08 08:38:54 +08:00
Takashi Kajinami 67bd2badc9 Fix missing [designate] options
This change ensures the [designate] options, which is used by
the designate external DNS driver, are rendered into neutron.conf
generated by oslo-config-generator.

Change-Id: I56a1079fbfc044532aee64f4fbdec50d9524a580
2022-11-22 12:00:50 +09:00
Zuul 5f80b91f58 Merge "Fix some pylint indentation warnings" 2022-07-05 17:19:29 +00:00
Brian Haley 58b1df699d Fix some pylint indentation warnings
Running with a stricter .pylintrc generates a lot of
C0330 warnings (hanging/continued indentation). Fix
some of them, about 10%.

Feel free to reject if we think it will cause too much
trouble with cherry-picks, else I'll slowly work my way
through the rest of the tree.

Trivialfix

Change-Id: I3d484d11e273cb8ee617f9445a069887e7b2b89f
2022-07-01 17:52:59 -04:00
Miguel Lavalle 7f0413c84c Implement experimental features framework
During the Zed PTG it was decided to handle unsupported features in
Neutron as experimental. See section titled "When we say something is
not supported?", day 2 in [1]. The agreement was:

"We keep existing jobs for linuxbridge driver for example, but when the
tests start to fail we skip them and finally we stop the job also.
To make it clear for operators we add warning logs highlighting that the
given feature/driver is experimental, and introduce cfg option to enable
such features explicitly."

This commit implements this agreement, initially with Linuxbridge

Depends-On: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/845646

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-April/028164.html

Change-Id: Ib18efa3f472736b58c8967847b1061da0e3897d7
2022-06-30 17:59:49 -05:00
Brian Haley 8635b60f24 Change 'DHCP' option group name to 'dhcp'
Only 'DEFAULT' is an allowable all-caps option group name,
else a warning is generated:

WARNING:oslo_config.generator:normalizing group name 'DHCP' to 'dhcp'

Can see this in the 'tox -e docs' job.

Trivialfix

Change-Id: Ic2dbb1c91220f84cdcb73c9e3559728d54c21a25
2022-04-28 15:15:08 -04:00
LIU Yulong ffa8e085be Add missing DHCP opts for genconfig
Change-Id: I1d271069c4ca7a41f3320275094bd315c9c109f8
2022-01-14 16:35:43 +08:00
Takashi Kajinami d6b1dd4a93 Include oslo.cache options in neutron.conf
Neutorn uses oslo.cache library for caching. This change ensures that
options of the library are included in neutron.conf generated by
oslo-config-generator.
This change also removes cache_utils module from neutron.opts because
the module is not used in that file.

Closes-Bug: #1940790
Change-Id: I9ccd145d5ea1a1e0033eb43b609cc6428ea95f23
2021-08-23 11:54:12 +09:00
Takashi Kajinami be43141a5f Provide the rpc_response_max_timeout parameter to sriov-agent
The rpc_response_max_timeout parameter is used in comminucation over
messaging queue, thus should be available for sriov-agent which
communicate with neutron-server over messaging queue.

Change-Id: Ie6ae31e40488fd8f3d43e83b25e536a7dd9d938c
Closes-Bug: #1930996
2021-06-06 23:56:14 +09:00
David Vallee Delisle 89fd50d0f9 Adding placement auth options to oslo.config entry_points
To assist with automated configuration validation, we need entry points
for oslo.config.opts for placement auth options.

Change-Id: Ibaaa1600e6a14f3308024c4e22e3489ee21e7244
2021-05-10 09:00:57 -04:00
Takashi Kajinami 25d1f9b948 Clean up the deprecated options for Xen API support
This change cleans up the configuration options for Xen API support,
which was deprecated during the Wallaby cycle[1] and have been
ineffective.

[1] a6dbf97242

Change-Id: I89f304f767b2ec645ac7bb216890b6ac470fd875
2021-04-23 22:28:36 +09:00
Takashi Kajinami 7f5711f77b Provide the rpc_response_max_timeout parameter to metadata-agent
The rpc_response_max_timeout parameter is used in comminucation over
messaging queue, thus should be available for metadata-agent which
communicate with neutron-server over messaging queue.

Change-Id: I4826edf16bbdf338af6e050b15b4ecce9f8ca6ae
Closes-Bug: #1920842
2021-03-23 18:08:44 +09:00
Takashi Kajinami 459716e644 Ensure XenAPI options are loaded
Options for XenAPI support are supposed to have been deprecated, but
actually they were removed by the deprecation patch[1]. This change is
a partial revert of that patch[1], and ensures that these options are
loaded, so that warning messages about these deprecated options appear
in logs.

This change also removes these deprecated options from the example
rootwrap conf file.

[1] a6dbf97242

Change-Id: Id024dabf276e492268e723e526d7a787156eb9c1
2021-01-03 20:53:01 +09:00
Rodolfo Alonso Hernandez a6dbf97242 Deprecate XenAPI support
The configuration options are now marked as deprecated for
removal in X release.

Any related code is deleted. Neutron does not support XenAPI,
same as Nova [1][2].

[1]https://review.opendev.org/#/c/749304/
[2]https://review.opendev.org/#/c/749309/

Change-Id: Ifdb2200a5dac3508fdf8907bdd1f4547dff35341
Story: #2007686
Task: #41269
2020-12-09 20:15:39 +00:00
Tamerlan Abu edfe7daf04 No rpc_response_max_timeout in LB-agent
Adds support for rpc_response_max_timeout in LB-agent.
Change-Id: I1c5dcd1642019cb8c327722819f753b2b5b7137c
Closes-Bug: #1880934
2020-06-01 15:25:20 +00:00
Brian Haley d027a9bc77 Fix duplicate ID warning during doc build
Both the neutron.base.agent and neutron.l3.agent
option templates contain RPC_EXTRA_OPTS, leading to
a warning during doc builds:

doc/source/configuration/l3-agent.rst:3:
 WARNING: Duplicate ID: "DEFAULT.rpc_response_max_timeout".

It also leads to the rpc_response_max_timeout option
showing up twice in the resultant l3-agent.ini sample
file. For example, when running 'tox -e genconfig'.

Remove it from the list of l3-agent specific options as
it's unnecessary.

Trivial-fix

Change-Id: I70e626dbf9de4bd43952836f8c4d01a693ddac7f
2020-02-04 12:13:14 -05:00
Harald Jensås 16679e9700 Conntrack Helper - Plugin
Implements Conntrack Helper service plugin for conntrack
helper resources. Supports create, update and delete
conntrack helper for l3 routers.

A new configuration option:
  [l3-conntrack-helpers]/allowed_conntrack_helpers
introduced to allow the operator to configure CT
helpers, and the helper protocol constraints.

Related-Bug: #1823633
Depends-On: https://review.opendev.org/663446
Change-Id: I58193955261f50b18b1946261fe662da6b20f0f5
2019-08-29 10:41:04 +02:00
LIU Yulong 76c0280635 Remove the l2pop agent_boot_time config
It was marked as deprecated, so let's do a quick
removal.

Related-Bug: #1813714
Change-Id: Ibc039b34b826641811a7e08b0d1bff0fd21b9193
2019-07-10 19:34:25 +00:00
zhanghao2 cb775ee222 Add fwaas_v2 log optional configuration in l3_agent.ini
When configuring fwaas_v2 log, we can specify rate_limit, burst_limit
and local_output_log_base options in nework_log section.

Change-Id: Iba061c399599cf601c22054b3924b9a74f0f4fa0
2019-06-14 21:43:24 -04:00
Harald Jensås afff649a39 Notify ironic on port status changes
This patch adds an ironic notifier that sends notifications
to ironic endpoint /v1/events. The events are triggered by
port updates and deletions. Only ports with vnic_type
baremetal are honored.

Story: 1304673
Task: 22263
Closes-Bug: #1828367
Implements: blueprint event-notifier-ironic
Authored-By: Vasyl Saienko <vsaienko@mirantis.com>
Co-Authored-By: Harald Jensås <hjensas@redhat.com>
Co-Authored-By: Julia Kreger <juliaashleykreger@gmail.com>
Change-Id: I0bb3187a88a7f20adb8c60e24945db159afb83f1
2019-05-27 13:38:42 +02:00
Rodolfo Alonso Hernandez 84f8ae9d1f Add "rpc_response_max_timeout" config variable in OVS agent
The configuration variable "rpc_response_max_timeout" is not defined
in the OVS agent configuration. When the agent is stopped (SIGTERM),
the exception is raised. This error can be seen in the fullstack tests.

Change-Id: Ieedb6e87a4e98efef0f895566f7d4d88c3cd9336
Closes-Bug: #1815797
2019-02-21 15:11:42 +00:00
Lajos Katona d860109bf6 supported_vnic_type configurable for sriov
Now supported_vnic_types is hardcoded to the mechanism drivers, but that
can depend on several factors, like type of the NIC, admin decision,
etc.
With this patch we put the right to decide which vnic types are
supported for ovs agent into the hands of the admin, by allowing
blacklisting items from the mechanism driver specific list.
Background: http://eavesdrop.openstack.org/meetings/neutron_qos/2018/
neutron_qos.2018-07-31-15.00.log.html#l-58

Change-Id: Iad9e2e966df53b4164d2a56a93215c69825b5241
Partial-Bug: #1578989
See-Also: https://review.openstack.org/502306 (nova spec)
See-Also: https://review.openstack.org/508149 (neutron spec)
2018-11-05 11:40:13 +01:00
Lajos Katona a85c5ed3fb supported_vnic_type configurable for ovs
Now supported_vnic_types is hardcoded to the mechanism drivers, but that
can depend on several factors, like type of the NIC, admin decision,
etc.
With this patch we put the right to decide which vnic types are
supported for ovs agent into the hands of the admin, by allowing
blacklisting items from the mechanism driver specific list.
Background: http://eavesdrop.openstack.org/meetings/neutron_qos/2018/
neutron_qos.2018-07-31-15.00.log.html#l-58

Change-Id: I63e562e2eccc5b02c1c767d6a2c28cb803131e99
Partial-Bug: #1578989
See-Also: https://review.openstack.org/502306 (nova spec)
See-Also: https://review.openstack.org/508149 (neutron spec)
2018-10-15 20:35:49 +02:00
Zuul 81b813fd46 Merge "Remove deprecated cache_url" 2018-01-03 06:35:59 +00:00
Zuul a1aff7a4dc Merge "Renamed ovs_vsctl_timeout into ovsdb_timeout" 2017-11-13 09:25:20 +00:00
Ihar Hrachyshka a82d945f9f Renamed ovs_vsctl_timeout into ovsdb_timeout
It's not specific to cli implementation of ovsdb interface.

Also moved the option under [agent] section.

Change-Id: Ic5e38d0c36ae29a9fef23038a9262d14ef1ede90
2017-11-10 14:47:29 -08:00
Brian Haley 2e9364028b Remove deprecated cache_url
cache_url was marked deprecated in Newton for removal
in Ocata, we're past that now so remove it.

Change-Id: I3c403ed1b703a7e1efce0931e917f98c1dda91c6
2017-11-10 00:47:19 -05:00
Zuul 680fa41054 Merge "Refactoring db config options" 2017-11-01 23:58:06 +00:00
Nguyen Phuong An bb8954a228 [log]: implement logging agent extension
This patch introduces generic logging agent extension following
the spec [1].

[1] https://specs.openstack.org/openstack/neutron-specs/specs/pike/logging-API-for-security-group-rules.html

Co-Authored-By: Yushiro FURUKAWA <y.furukawa_2@jp.fujitsu.com>

Change-Id: I1a59367cf23060fb1a0cd9bab6772b22da15c9f0
Partially-implements: blueprint security-group-logging
Related-Bug: #1468366
2017-10-11 16:04:14 +07:00
sindhudevale 3a098ea0e8 Refactoring db config options
Refactoring neutron db config opts to be in neutron/conf/db/ and
neutron/conf/agent/database/ so that all the configuration options
reside in a centralized location. This simplifies the process of
looking up the config opts and provides an easy way to import.

Change-Id: I4da9bb48d49b99e8c2b34a5c1b83e7eb95b70b82
Partial-Bug: #1563069
2017-10-04 15:42:50 -04:00
Jenkins 4a27f4e526 Merge "fix missing l2pop config option docs" 2017-09-15 02:04:31 +00:00
Boden R 1b4559a5e4 fix missing l2pop config option docs
The l2pop ML2 mechanism driver's configuration options are no longer
being generated during the docs build. This patch adds the l2pop
config options back into the ml2 sample config generation and also
fixes a link to them in the admin docs.

This fix is a candidate for backport to pike.

Change-Id: Ia26b4d1995690e7291b6476dc683271e12de09ab
Closes-Bug: #1714528
2017-09-11 13:36:20 -06:00
Aradhana Singh d00a50aad1 Refactoring config options for ml2 config opts
Refactoring neutron ml2 config opts to be in neutron/conf/plugins/ml2.
This would allow centralization of all configuration options and
provides an easy way to import.

NeutronLibImpact

Change-Id: Ibc5a9ab268578c243ef13f7e0041bacd6c0c410b
Partial-Bug: #1563069
Needed-By: Id0a97dda7718f06e33b2d30ce01cdcb3e9a46f7d
2017-09-08 15:34:49 -04:00
sindhu devale 51ca683797 Refactoring agent linux&ovsdb config
Refactoring neutron agent linux and ovsdb config opts
to be in neutron/conf/agent so that all the config options
reside in a centralized location. This simplifies the
process of looking up the config opts and provides an easy
way to import.

NeutronLibImpact

Change-Id: Ib1e0e63dec2985c417412d1ecc68e2a74ef87182
Partial-Bug: #1563069
2017-08-25 10:41:39 -04:00
Miguel Angel Ajo 6037e53f07 Remove deprecated support for QoS notification_drivers
In Ocata, notification_drivers were deprecated in favor of
the new QoSDriver architecture.

This patch removes backwards compatible support for notification
drivers along with its testing.

Change-Id: I5f747635be3fd66b70326d9f94c85a6736286bd2
2017-04-17 06:32:01 -07:00
John Perkins 7f23ccce23 Agent common config
Refactoring Neutron configuration options for agent common config to be
in neutron/conf/agent/common. This will allow centralization of all
configuration options and provide an easy way to import.

Partial-Bug: #1563069
Change-Id: Iebac0cdd3bcfd0135349128921b7ad7a1a939ab8
Needed-By: Ib676003bbe909b5a9013a3178b12dbe291d936af
2017-03-15 09:52:18 -06:00
Daniel Alvarez 3b22541a2a Switch ns-metadata-proxy to haproxy
Due to the high memory footprint of current Python ns-metadata-proxy,
it has to be replaced with a lighter process to avoid OOM conditions in
large environments.

This patch spawns haproxy through a process monitor using a pidfile.
This allows tracking the process and respawn it if necessary as it was
done before. Also, it implements an upgrade path which consists of
detecting any running Python instance of ns-metadata-proxy and
replacing them by haproxy. Therefore, upgrades will take place by
simply restarting neutron-l3-agent and neutron-dhcp-agent.

According to /proc/<pid>/smaps, memory footprint goes down from ~50MB
to ~1.5MB.

Also, haproxy is added to bindep in order to ensure that it's installed.

UpgradeImpact

Depends-On: I36a5531cacc21c0d4bb7f20d4bec6da65d04c262
Depends-On: Ia37368a7ff38ea48c683a7bad76f87697e194b04

Closes-Bug: #1524916
Change-Id: I5a75cc582dca48defafb440207d10e2f7b4f218b
2017-03-08 15:20:50 +00:00
Jianghua Wang 8047da17db XenAPI: Support daemon mode for rootwrap
For Neutron's compute agent in a XenServer's compute node, the commands
actually need run in Dom0. Currently XenServer only supports rootwrap
for that purpose by invoking a script which invokes XenAPI to execute
commands in dom0. There are much performance overhead due to it requires
parsing on the script and the configuration file every time running
commands.

This change is to support daemon mode with which each agent service will
call XenAPI directly to execute commands in dom0. And it will keep the
single XenAPI session.

DocImpact: Need update the following configuration.

file: /etc/neutron/plugins/ml2/openvswitch_agent.ini
[agent]
root_helper_daemon = xenapi_root_helper
[xenapi]
connection_url = http://169.254.0.1
connection_username = root
connection_password = xenroot

Closes-Bug: #1585510
Change-Id: I684034359fe0571bc92dbcf342a9821553b1da35
2017-01-19 07:33:43 +00:00
Jenkins 7d737394e3 Merge "Include ovsdb_connection option into all interface_driver agents" 2016-12-15 18:26:43 +00:00
Jenkins 69259e9525 Merge "Expose [agent] extensions option into l3_agent.ini" 2016-12-08 23:50:10 +00:00
Jenkins f545cc50f1 Merge "Refactoring config opts for ml2 plugin openvswitch" 2016-12-07 21:15:14 +00:00
Ihar Hrachyshka fc251bf72c Expose [agent] extensions option into l3_agent.ini
This option was added in Newton as part of blueprint l3-agent-extensions
but was not exposed into the sample config file.

Change-Id: Ifdb60032223d37858f41e6c3efc18f0de72912db
Closes-Bug: #1643944
2016-12-04 07:22:38 +00:00
Jenkins ef6a3d8789 Merge "Renamed all [AGENT] config sections into [agent]" 2016-12-03 07:42:06 +00:00
Ihar Hrachyshka ebc56e87a3 Include ovsdb_connection option into all interface_driver agents
This option may be used by dhcp, l3, metering, and any other agents that
instantiate an OVSBridge, that includes all agents that may use
'openvswitch' interface_driver.

Change-Id: Id05c88bd28ac0f4bf6b9f2956ccfcc98575e1bf9
2016-12-02 22:26:41 +00:00
Aradhana Singh 42031f7547 Refactoring config opts for ml2 plugin openvswitch
Refactoring ml2 plugin openvswitch driver configuration options to be
in neutron/conf/plugins/ml2/drivers. This would allow centralization
of all configuration options and provides an easy way to import.

Change-Id: Ie8c6023b2d012eae7ecdb99d5d413956608f4294
Partial-Bug: #1563069
2016-12-01 11:13:54 -06:00
Anindita Das 78d5b240c0 Refactoring config options for mech_sriov opts
Refactoring neutron ml2 plugin mech_sriov config opts to be in
neutron/conf/plugins/ml2/drivers/mech_sriov so that all the
configuration options for mech_sriov reside in a centralized
location. This simplifies the process of looking up the mech_sriov
config opts and provides an easy way to import.

Change-Id: I64b243f91f2e637279456b3b06c2998cd89dc076
Partial-Bug: #1563069
2016-11-29 22:57:38 +00:00
Ihar Hrachyshka c95295290f Renamed all [AGENT] config sections into [agent]
Though oslo.config should not care about the case, it seems like
oslo-config-generator creates two separate sections with different case
if both are included.

Related-Bug: #1643944
Change-Id: I2f8a737d3c027d57a8a16e80838142a78dbd315d
2016-11-29 03:15:12 +00:00
Jenkins cf914d5ff0 Merge "Refactoring config options for l2 agent ext opts" 2016-11-22 22:57:49 +00:00