Commit Graph

172 Commits

Author SHA1 Message Date
Corey Bryant d90b45c295 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic
* update charmcraft_channel to 2.x/stable

Change-Id: I8050b03c9e4a1f801a60de516000467860a1a47a
2023-08-02 14:20:50 -04:00
Corey Bryant 7bf6281b92 Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: Id40cf30dcbd7467c3dc39ae0d7fbcc3a7a2899bb
2023-03-07 22:17:35 +00:00
Corey Bryant e9f077c28b Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I5b04cd5a9d1dd8d62b129592bf8ae1339e9af58b
2022-08-26 18:40:39 +00:00
Alex Kavanagh 88c3c9d5a4 Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga
- charmhelpers sync

Change-Id: I9e03f8032c4e66586feec2bbf5f07e93b89355cc
2022-04-07 12:20:45 +01:00
Nobuto Murata c411b90d2d Option to enable network-segment-range support
To let operators add an additional and optional service plugin into the
deployment configuration as "network_segment_range".
https://docs.openstack.org/neutron/latest/admin/config-network-segment-ranges.html

Closes-Bug: #1965229
Change-Id: Id0ac7c397874ad2c51935e8c0eab64f1ef4f6fd3
2022-03-17 18:38:01 +09:00
Diko Parvanov 3e387d5918 Adding uplink_status_propagation option
Add charm option uplink-status-propagation, which for releases >= stein
will add the ml2 plugin uplink_status_propagation, that enabled ports to
have the propagate_uplink_status attribute to allow instance VF to see the PF
link state change for SR-IOV ports.

Change-Id: I4f1ace630c74363057b0bbdbc759c482125ad015
Closes-Bug: 1949491
2021-11-25 11:03:22 +00:00
Edward Hope-Morley 00e7c8b6ad Remove neutron-fwaas for >= V
Also adds config option enable-fwaas which defaults to
True to allow disabling fwaas for releases earlier than
Victoria.

Change-Id: Ic9251c5290f777f544a150a92702566474b264b8
Closes-Bug: 1934129
2021-07-07 10:12:20 +01:00
Nobuto Murata b65eea5864 Update worker-multiplier config description
Based on the change in charm-helpers:
https://github.com/juju/charm-helpers/pull/553

Related-Bug: #1843011
Change-Id: I36fbd881fd6c805699f51cf9d52181e39ea8d8f2
2021-03-30 11:23:56 +09:00
Dmitrii Shcherbakov a155e9cf11 Use AZLeastRoutersScheduler by default
Neutron uses an AZ-unaware scheduler (LeastRoutersScheduler) by default
in its configuration and the neutron-api charm does not override it.

AZLeastRoutersScheduler inherits from LeastRoutersScheduler and does the
same, plus respects AZ hints when scheduling HA routers.

For --distributed --ha routers using AZLeastRoutersScheduler means that
snat namespaces will be scheduled with respect to the AZ hints specified
during router creation by an operator.

For --ha but not distributed routers using AZLeastRoutersScheduler means
that qrouter namespaces will be scheduled with respect to the AZ hints.

snat namespaces (--ha & --distributed) and qrouter namespaces (--ha
only) are placed by the scheduler to l3 agents that run in the dvr_snat
mode only so the scheduler change will affect both the deployments with
neutron-gateway units and the ones with neutron-openvswitch running with
use-dvr-snat=True.

Change-Id: I98cd67ff0cf5418a9699acc7aff96c3edb9b2341
Closes-Bug: #1886195
2020-11-09 20:17:17 +03:00
Pedro Guimaraes f401914ee3 Add igmp_snooping_enable config
This option is available on both OVS and OVN to
allow virtual switch to snoop into multicast IGMP
messages and learn which ports should be flooded.

This change adds igmp snooping option on neutron.conf.

Change-Id: I3a0e757e5afe6a77cc507ee01298961c16d41cb2
2020-07-03 16:44:05 +02:00
Frode Nordahl 7a78c6dd76 Deprecate FWaaS
Change-Id: Ia2e5bba0a720ca201402bfac3e44d49ed598dc14
Needed-By: https://review.opendev.org/#/c/708675/
2020-03-24 07:06:35 +00:00
Zuul dd4505efd6 Merge "Enable hardware offload support" 2020-03-20 10:09:06 +00:00
Frode Nordahl 38117ba022 Conditional default of ``manage-neutron-plugin-legacy-mode``
The new default will take effect on newly deployed units when
openstack-origin is set to 'ussuri' or newer.

Any existing units or newly deployed units with openstack-origin
set to prior versions will retain the existing default.

Change-Id: Ia38dd7882105c3adad1afbf754ba2ed047dd05e2
2020-02-24 16:44:54 +01:00
Stamatis Katsaounis 1967d7794d Apply validation on designate zone prefix values
This patch applies validation on values ipv4-ptr-zone-prefix-size and
ipv6-ptr-zone-prefix-size to prevent users from choosing values not
supported by Neutron's Designate driver.

Change-Id: I6f2d5c9d1a3f16242263f11b1f999ab7ec3a4266
Signed-off-by: Stamatis Katsaounis <katsaouniss@gmail.com>
2019-10-29 12:57:25 +01:00
Zuul f67e22fa1b Merge "Add an option to enable port forwarding feature" 2019-10-08 20:29:40 +00:00
Dmitrii Shcherbakov 104f8d411e Add an option to enable port forwarding feature
* Adds an option to enable port forwarding service plugin;
* Exposes whether port forwarding is enabled or not to neutron-gateway
  and neutron-openvswitch charms via the respective relation.

See LP: #1842353

Change-Id: Ic3a8e302942ed331bc3d80223e123c13d61db3b2
Closes-Bug: #1842353
2019-10-08 20:10:33 +00:00
Alex Kavanagh 697ca00bcf Policyd override implementation
This patchset implements policy overrides for neutron-gateway.

This change includes a charm-helpers sync to bring in the policyd helper
code.

Change-Id: I89f1f4b5d58843017e428a8d2cfada840dde14de
Closes-Bug: #1741723
2019-10-07 20:35:36 +01:00
James Page c7d9e9ab42 Enable hardware offload support
Following the style of the SR-IOV enablement, add a new config
option to this charm to enable hardware offload support.

This is mainly used to signal to the nova-cloud-controller charm
to enable the PCI Passthrough Filter which is used in this type
of deployment.

Change-Id: I1f59012ad2d16af18ca310906f6c6b537bb7ec72
2019-09-30 10:15:01 +01:00
Liam Young 27b4fb1538 Add support for FWaaS v2 logging
Enable support for configuration of FWaaS v2 firewall group
logging. The feature can be enabled or disabled via the
enable-firewall-group-logging flag.

This feature is currently only enabled for FWaaS v2 at Stein
for the charms (but is supported back to Queens in Neutron).

Change-Id: I4c440e233ee16d4e756c575d8db70918ff062f3e
Partial-Bug: 1831972
2019-06-11 08:06:37 +00:00
Chris MacNaughton 37d4040520 Add warning that changing l2-pop will cause a network interruption
Change-Id: Idfa6ffaba40ad36ea882970bbb9fc92cfe78eafe
Closes-Bug: #1827281
2019-05-14 11:07:34 +00:00
Edward Hope-Morley c9103a668a Mark min-l3-agents-per-router as deprecated for >= O
Deprecated in N and removed in O to be precise so
removing from neutron.conf templates for >= O and
marking as deprecated from N in config.yaml.

Change-Id: Iff75ab3b4dda91be29d4349b8a9796d943c5fe44
Closes-Bug: #1819902
2019-03-14 19:36:37 +00:00
Dmitrii Shcherbakov 1e6430f9c6 Switch to AZAwareWeightScheduler as of Mitaka
AZAwareWeightScheduler is based on WeightScheduler and provides a way to make
DHCP agent scheduling be AZ-aware. This is used in conjunction with
dhcp-agents-per-network config option and per-network agents (such as dnsmasq)
will be distributed across neutron-dhcp-agents that have availability_zone
configuration (based on dhcp-load-type for placement calculation).

bp: https://blueprints.launchpad.net/neutron/+spec/add-availability-zone

Upgrade impact is mentioned here:
specs.openstack.org/openstack/neutron-specs/specs/mitaka/availability-zone.html

The spec mentions that by default all agents belong to 'nova' AZ so
the scheduler change should be backwards-compatible.

Change-Id: I4d948efa157573fdbc0fbfd3b1efb21b69a713ef
Closes-Bug: #1796068
2019-01-21 15:29:46 +02:00
inspurericzhang 0517fbf13c [Trivial Fix] delete dumplicate words config.yaml
Although it is trivial mistakes, it affects reading.

Change-Id: Ib8570d8d4af254d17b3d7e1bf05520bd56471435
2019-01-07 11:22:11 +08:00
Niels van Adrichem 5f255bc9f9 Enable support for l3agent- and dhcp-failover
Implements the missing configuration options and context to configure
allow-automatic-l3agent-failover and allow-automatic-dhcp-failover
options in neutron.conf. The options are respectively added to
versions juno and kilo upwards as those are the Neutron versions
since they were first supported.

Change-Id: I7e465b7fef13f61f7b37135a86ac2f590c0c9be6
Closes-Bug: #1799956
2018-12-14 15:49:49 +03:00
xuleibj 1d069c78b4 Update http to https.
Change-Id: Ie0a662d6c58eada82f4e889c7ab11cfb71cfcd70
2018-12-11 14:33:34 +08:00
Vladimir Grevtsev 47a2b8fbb4 Enable support for security group logging
Add support to enable logging of security groups for
OpenStack Queens or later; this feature is enabled via
the neutron-api charm, with local configuration options
provided in the neutron-openvswitch charm.

The feature is only compatible with the openvswitch firewall
driver and will not be enabled if this configuration option
is not set in the neutron-openvswitch charm.

This change is removing unnecessary Neutron config
option "neutron_firewall_driver" since FW drivers are
being handled on agents side (not on API server) since
Mitaka release.

Change-Id: Icadb055b2c5c3216b6d086b44a4823595b2baffa
Closes-Bug: #1787397
2018-10-09 12:01:03 +03:00
Anton Kremenetsky ca9af5c842 Ability to enable VLAN trunking
This fix add ability to enable VLAN trunking in configuration.

Signed-off-by: Anton Kremenetsky <akremenetsky@dev.rtsoft.ru>

Change-Id: If80dc4750e6639bdc41bc62eede350019b4306c5
Closes-Bug: #1772979
2018-05-23 20:58:16 +03:00
Frode Nordahl 08e806f098 Add support for configuring individual physical network MTUs
This is needed if a subset of your flat or VLAN provider networks have a MTU
that differ with what is set in global-physnet-mtu.

Change-Id: Ifd348311b5c313fa95d6ed49c32d9b26b0f5e662
Closes-Bug: #1663533
2018-02-01 10:02:27 +01:00
James Page 7eac81a36e Remove deploy from source support
Drop support for deployment from Git repositories, as deprecated
in the 17.02 charm release.  This feature is unmaintained and has
no known users.

Change-Id: I44f00afeee8623713055310b025f1e91af18b86a
2018-01-10 15:41:05 +00:00
Tytus Kurek 95c045d1ce Designate - Neutron integration
This patchset implements new relation ("external-dns") using new
interface ("designate") between designate and neutron-api charms.
The following charm options have been added:

* "reverse-dns-lookup"
* "ipv4-ptr-zone-prefix-size"
* "ipv6-ptr-zone-prefix-size"

The patchset contains changes to various items (config files, hooks,
template files and unit tests).

When neutron-api is related to designate, the notification topic
previously used to send notification events to designate will be
disabled (as the DNS driver method is preferred).

Change-Id: I13b2ab39bd1daac13112398762f2be06022594b0
Closes-Bug: #1704769
2017-12-21 07:58:30 -08:00
David Ames 00b52d10b1 Update HAProxy default timeout values
The default HAProxy timeout values are fairly strict. On a busy cloud
it is common to exceed one or more of these timeouts. The only
indication that HAProxy has exceeded a timeout and dropped the
connection is errors such as "BadStatusLine" or "EOF." These can be
very difficult to diagnose when intermittent.

This charm-helpers sync pulls in the change to update the default
timeout values to more real world settings. These values have been
extensively tested in ServerStack. Configured values will not be
overridden.

Partial Bug: #1736171

Change-Id: I6651ecdb89af11e94c59f928c1eb4a89940f4679
2017-12-11 11:37:11 -08:00
Liam Young a8e6824e3a Add QoS support
This patch adds the enable-qos option to the charm. If enable-qos is
set then neutron.services.qos.qos_plugin.QoSPlugin is added to
service_plugins in neutron.conf locally. The
neutron-plugin-api-relation has also been updated to send the
enable-qos option to charms connected over that relation (for
example neutron-openvswitch and neutron-gateway).

As part of this some of the logic for setting service_plugins was
removed from the neutron.conf and placed in the NeutronCCContext.

This patch is based on the steps in:
https://docs.openstack.org/mitaka/networking-guide/config-qos.html

Change-Id: I1beba9bebdb7766fd95d47bf13b6f4ad86e762b5
Partial-Bug: #1705358
2017-09-25 16:35:12 +00:00
Zhang Hua 0e4def1939 Support polling-interval rpc-response-timeout and report-interval
This patch adds support for setting polling-interval rpc-response-timeout
and report-interval in neutron-api charm centrally, then other charms
need to continue doing:

1, polling_interval
   Just used by neutron l2 agents, so neutron-openvswitch charm
   gets it via its relations and set it in [agent] of ml2_conf.ini
   or openvswitch_agent.ini(>=Mitaka)

2, rpc_response_timeout
   Used by all neutron agents, so both neutron-gateway charm and
   neutron-openvswitch charm get it via its relations and set it
   in [default] of neutron.conf

3, report_interval
   Used by all neutron agents, so both neutron-gateway charm and
   neutron-openvswitch charm get it via its relations and set it
   in [agent] of neutron.conf

This patch also syncs charmhelpers.

Change-Id: I669e959a596b214acf486b0532c4ab31c2b82557
Partial-Bug: #1685788
2017-08-03 10:16:44 +01:00
Frode Nordahl 353d4a97eb Add support for setting sriov_supported_pci_vendor_devs
This is required for SR-IOV to work on OpenStack versions
Kilo, Liberty and Mitaka (unless you are the lucky owner of
NICs with the default vendor/product IDs '15b3:1004', '8086:10ca').

The option is deprecated in Newton and the default behaviour
onwards is to not perform the check (unless configured) and not
overrule Nova's scheduling decision. (See LP #1611302)

Re-work mechanism_driver templating. Current implementation
treats mechanism drivers 'hyperv' and 'sriovnicswitch' as
mutually exclusive for simplicity. This prohibits us from
adding functional test for verifying sriov statements in
configuration files.

Due to how neutron init scripts are laid out on various Linux
distributions put the [ml2_sriov] section in ml2_conf.ini instead
of its default ml2_conf_sriov.ini location.

Add a placeholder ml2_conf_sriov.ini with comment to point users
in the right direction.

Change-Id: I37da1c430a06417ff7f1bc9df2d984137688bba0
Closes-Bug: #1630387
2017-08-02 09:45:35 +01:00
Edward Hope-Morley 73f531202a Cleanup config.yaml
Change-Id: Ib3d490db0acaef8b48e4151b2282e37fb6f595f3
2017-06-06 22:31:18 +01:00
Billy Olsen 9bbd2bad9c Enable internal DNS resolution
Add the dns-domain config and enable-ml2-dns options, allowing the
user to enable DNS integration between Neutron and Nova. This enables
the DNS integration between Nova and Neutron for internal DNS services
when the enable-ml2-dns option is set to True.

Change-Id: Id5f828da003e056a882297ffdbf3df22e856d14a
Implements: blueprint internal-dns
2017-04-30 22:19:29 -07:00
James Page b8cccb3372 Make worker-multiplier sane in container environments
Resync charm-helpers to pickup the capped worker-multiplier
changes when deploying in containers.

Drop the default value for worker-multiplier of 2.0; this
is now handled from within the codebase rather than via a
default configuration value, reflecting the differing
behaviours between container and non-container deployments.

Change-Id: Ia6ea43528c32c45bb3852e0a532aa6f758a4c80b
Closes-Bug: 1665270
2017-04-27 09:27:05 +01:00
Tytus Kurek 491e501b06 Add basic support for "global_physnet_mtu" and "path_mtu" options.
I've added basic support for "global_physnet_mtu" and "path_mtu"
options by allowing to configure them via charm parameters.

Change-Id: Ia95533418ccd4b7d1b96270633193ea34b1edecb
Partial-Bug: 1650579
2016-12-16 17:49:24 +01:00
Liam Young 446de085a0 Add default-tenant-network-type config option
- Add default-tenant-network-type config option to allow the default
  network type for a tenant network to be set

- Fix rendering of overlay-network-type so that an empty string is
  valid

Change-Id: Ib2325d273a0dd5e637f36113b951130387902777
Closes-Bug: 1533651
2016-12-06 08:59:53 +00:00
Ryan Beisner 341cf8d537 Update amulet test definitions for Newton
- Remove Precise-Icehouse Amulet test definitions if they exist.

- Add Xenial-Newton Amulet test definitions.

- Add Yakkety-Newton Amulet test definitions.

- Use the percona-cluster charm in tests instead of the mysql charm.

Change-Id: Iea26519359a46450eb7f978c7a91b11f6d9b533a
2016-10-07 13:46:27 -05:00
Jenkins 9a8088131e Merge "Install networking-hyperv when deploying from source." 2016-07-21 21:51:08 +00:00
Corey Bryant ebc7da4d31 Install networking-hyperv when deploying from source.
Change-Id: I9d68d7e37be04dd04ce9c9ca37d21d23246c4359
2016-07-21 18:44:39 +00:00
Zhang Hua c5609c54c6 Support to inject config-flags for neutron-api charm
This patch is just to enable adding custom options to
neutron.conf by the following command:

juju set neutron-api config-flags='key1=val1, ...'

Change-Id: I46bc32c250295a511508ced4cbca8f9748229415
Closes-Bug: #1585508
2016-07-21 16:27:17 +08:00
Jenkins 691ec9d15d Merge "Change worker-multiplier to float" 2016-07-14 09:34:38 +00:00
Corey Bryant 8d42e76616 Various deploy from source changes and c-h sync
* openstack-origin is no longer required when using openstack-origin-git.
* Drop kilo from openstack-origin-git default values because upper
  constraints doesn't work in kilo for openstack-dashboard and glance.
* Add flag to allow for disabling upper constraints when using
  openstack-origin-git with user-specified git repositories.

Change-Id: I017210a0504b9c9ce7e0fc84ca63e0eae702077d
2016-07-13 19:25:52 +00:00
Billy Olsen 7ef79162e6 Change worker-multiplier to float
Change the worker-multiplier to a floating point config option type
instead of integer. This allows users to specify workers to be less
than the number of CPUs, which is useful in deployments with multiple
services deployed into containers on top of bare metal.

The fix is to simply change the config option type and to sync in
the necessary update from lp:charm-helpers.

Partial-Bug: #1602444

Change-Id: I40a7e272ee6c66adefbf1cbff98756108e631e0b
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2016-07-12 17:03:10 -07:00
Jenkins 101fd703f5 Merge "Add SR-IOV device support" 2016-06-23 09:58:36 +00:00
David Ames 592b8e0947 DNS HA
Implement DNS high availability. Pass the correct information to
hacluster to register a DNS entry with MAAS 2.0 or greater rather
than using a virtual IP.

Charm-helpers sync to bring in DNS HA helpers

Change-Id: Ifb27cc96b913f4fe315119477691936919684b62
2016-06-23 09:21:03 +01:00
Corey Bryant 5251e366b4 Add defaults for openstack-origin-git config option
openstack-origin-git currently only supports YAML that specifies
the git repositories to deploy from.

This adds support for default openstack-origin-git values. The
default values supported are: icehouse, kilo, liberty, mitaka,
and master.  For example: openstack-origin-git=master.

Change-Id: I9e20d58b85d14b830e0394b8603ee018da86f004
2016-06-20 09:29:20 -04:00
Timothy Kuhlman 0052948de1 Add SR-IOV device support
Add a new configuration option to enable SR-IOV support across Neutron and
Nova; this involves enabling the required mechanism driver, and informing
the nova-cloud-controller charm that SR-IOV has been enabled, so that Nova
can use the correct scheduler filters for PCI device management.

Change-Id: I8938c22c8f4dc27bb0816fd8e5e6154a1407e93f
2016-05-25 09:29:44 -06:00