12 Commits

Author SHA1 Message Date
Yoshi Kadokawa
9eb6a64b9c Add config option for ovn_emit_need_to_frag
Add a charm config option to enable/disable ovn_emit_need_to_frag.
By default, the value is set to "True" as ovn_emit_need_to_frag
is enabled by default.

Closes-Bug: #1947391
Change-Id: I58fe365ce862430e172ebedf80ebaef9807c910c
2024-09-26 18:40:59 +09:00
Zuul
9d0cb6f505 Merge "Enable ovn_emit_need_to_frag" 2023-07-10 13:58:54 +00:00
Yamen Hatahet
c26114ddd8 Enable ovn_emit_need_to_frag
Enabled by default since this branch only supports jammy where the
kernel and ovn are new enough to support this flag. This will eliminate
the need for a more complex change or the use of a dedicated opt-in
config option.

For more details, please refer to
I089f95b40803a6cd5e01990acacd599ced3bbd91

Closes-Bug: #1947391
Change-Id: Icc05980b4bc9184ba4e52722c6c11abfcfc0d58c
2023-07-04 10:15:19 +00:00
Martin Kalcok
412885acc9 Add 'ovn-source' config option.
This option enables configuration of overlay package
repository for installation of OVN packages that are
not available in default distribution repository.

Expected behavior:
* New deployments will use default overlay for
  their series.
* Setting this option to "distro" allows new
  deployment that does not use overlay repository
* Existing deployments that are upgraded to this
  version of the charm won't automatically apply
  repository overlay and will keep using their
  current defaults.

Closes-Bug: #1992770
Change-Id: I20789f637c9443bd274df5f91522f9e2ce973164
2023-07-03 18:49:39 +02:00
Dmytro Kazantsev
84ec4ada23 It sets “restart-trigger” key on neutron-plugin relation on upgrade-charm event.
When neutron-api-plugin-ovn charm is upgraded (juju refresh ...) some configuration parameters in ml2_conf.ini may have also updated.
It was observed that sometime those changes are not taken in to account by neutron service because it was not restarted after file content modification.
This change introduces rising of “restart-trigger” key on neutron-plugin relation databag when upgrade-charm event is generated.
With every new “charm-upgrade” event value for “restart-trigger” is updated: f.e. “restart-trigger cf2697c8-f5f0-44b5-8dae-32d893fb209c”.
Principal charm “neutron-api” has implemented logic which triggers neutron service restart as soon as “restart-trigger” key value is changed.

Closes-Bug: #2019798
Change-Id: Ia1f48d86330d6e357ae3b35ce28bbb036788ac4a
2023-06-29 11:14:00 +02:00
Dmitrii Shcherbakov
26287e88fd Enable neutron-dynamic-routing service plugin
Upstream Neutron has declared that the neutron-dynamic-routing service
plugin is now supported when OVN L3 service plugin and mechanism driver
are in use.

https://review.opendev.org/c/openstack/neutron/+/864051
4d1a7bd0bc

This change removes the NDR plugin from the filter so that the plugin
is enabled.

Change-Id: Ic101d8c9fd7a674103ea53fe0b56d3c3f315595c
2023-05-25 14:27:10 +00:00
Hervé Beraud
09e5ddc8d0 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I62e4e03f73db6e4ddd10b8d221a2ae8fda0a4290
2021-12-15 09:32:59 +00:00
Frode Nordahl
469ca4db8b
Allow use of sriovnicswitch driver with OVN
Move filtering of service plugins, mechanism drivers and tenant network
types to charm class.

Add white list for mechanism drivers.

Add black list for service plugins.

Change-Id: I55374006e3adeaf8be04ef69e2cf56619ad3bdb2
2020-05-06 12:14:27 +02:00
Frode Nordahl
058ae7e2c3
Specify path for vhost user sockets
This will be used for VIF plugging on chassis that have DPDK
enabled.

Change-Id: I3799b6ffea26423719827b3961ebf79c44c11b2c
2020-04-24 16:55:35 +02:00
Frode Nordahl
6b70923679
Enable Ussuri and Focal
Make db migration optional and Train only and update OVN service
plugin entry point for Ussuri.

Add tactical workaround for LP: #1864640

To allow running lint on a Python 3.8 system (Focal), unpin
flake8.

Clean up test-requirements.txt and mock out dependencies rather
than installing them in the unit test virtualenv.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/187
Change-Id: I8d291e35b1bc52332c4666584277eb41c88ef084
2020-03-07 10:31:55 +01:00
Frode Nordahl
967ea9b41b
Expose useful configuration options
Remove unuseful configuration options added by layers.

Update first supported release to be bionic-train / eoan.

Add gerrit add zuul bits.

Change-Id: Icbfe337f5231a39310d0846f3bce38a25925e819
2019-10-18 13:03:13 +02:00
Frode Nordahl
a664071412
Configure Neutron 2019-10-10 16:17:22 +02:00