1155 Commits

Author SHA1 Message Date
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
Aurelien Lourot
0d4c5e139a Add impish to metadata.yaml
Change-Id: I8baece928d4545c8849c9b69648cb154ad15f052
2021-06-22 09:09:55 +00:00
Zuul
546ef56740 Merge "c-h sync - restore proxy env vars for add-apt-repository" 2021-06-21 09:56:45 +00:00
Zuul
3415c5e7da Merge "setup.cfg: Replace dashes with underscores" 2021-05-26 09:43:52 +00:00
Corey Bryant
cf1d22f582 c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I1716adb376414077f128c23c286e968dff57793e
2021-05-13 08:46:54 -04:00
Cornellius Metto
2c6e8255d1 Add upgrade-charm symlink in hooks directory
Closes-Bug: #1915724
Change-Id: I8ca9e0c49d789921b2782ab95d0fc22483c09653
2021-05-12 17:34:54 +03:00
Alex Kavanagh
48f87deff3 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Libraries sync

hisute-wallaby test is disabled (moved to dev) due to [1] as bundle may
reference a reactive charm.

[1] https://github.com/juju-solutions/layer-basic/issues/194

Change-Id: If5d64191925c5b568c0224c59b0c851e3c8f3e50
2021-05-06 10:25:50 +00:00
YuehuiLei
4625fcfcd5 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ic682234b64c313cc09a6471f30f20dc1a7d49f37
2021-05-04 15:47:26 +08:00
Alex Kavanagh
5a7dfeac7f Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: I4c38f3db7c7bcdbb993ffb27b8bf1473f8f0f3a6
2021-05-03 16:07:58 +01:00
Alex Kavanagh
9442c0445d 21.04 sync - add 'hirsute' in UBUNTU_RELEASES
The 'hirsute' key in c-h/core/host_factory/ubuntu.py:
UBUNTU_RELEASES had been missed out, and is needed for
hirsute support in many of the charms.  This sync is to
add just that key.  See also [1]

Note that this sync is only for classic charms.

[1] https://github.com/juju/charm-helpers/pull/598

Change-Id: I65d1d790f902d928cd0c4dc848121b1c7fd65071
2021-04-11 16:56:59 +01:00
Alex Kavanagh
ab2d2152b0 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: Ice0f02ee3724b1cf9f59efb59ef8b33e1bf54968
2021-04-03 20:29:30 +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
Alex Kavanagh
5bc7a321fd Add hirsute and remove trusty from metadata.yaml
This update adds the new hirsute Ubuntu release (21.04) and
removes trusty support (14.04 which is EOL at 21.04).

Change-Id: I3ccae204adce2a0d0d2b2ef8d937b712bd7816d7
2021-03-02 20:59:43 +00:00
Zuul
3383832a7b Merge "Add new osci.yaml" 2021-03-02 10:45:03 +00:00
Billy Olsen
6de997d8e9 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I7e0098ba588fbdb8cabd10fab18d048f8b779c8d
2021-02-19 17:02:50 -07:00
Chris MacNaughton
17df071cb2 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I1eb9a89d875539371357681d2b2b0ec7d8b8c3cf
2021-02-18 08:46:51 +01:00
Alex Kavanagh
d4e4eeb743 Hotfix charmhelpers sync for local_address() fix
The network-get --primary-address juju-info fails on pre-2.8.?
versions of juju.  This results in a NoNetworkBinding error.
Fallback to unit_get() if that occurs for local_address().

Change-Id: I6268134218b6e3e9b96e5c0d25e02a2f473e19b6
2021-01-20 12:25:05 +00:00
Alex Kavanagh
1bd71a1bed Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers
* Remove mock for unit_get as it's no longer in c-h context module
* Remove sections from subordinate context due to c-h change.

Change-Id: Idd0e4963823ec2ed915795fb04913f11ba305a2e
2021-01-18 20:27:23 +00:00
Aurelien Lourot
c052de6980 Remove Disco and Eoan bits
Change-Id: I69822c14b2047dba17fafbd523fa301dc5eb4fa3
2021-01-12 13:59:46 +01:00
Aurelien Lourot
a475261db3 Add Groovy to the test gate
Change-Id: Id829cb4eeb97327a4657888e4309bcf2c217c8fe
2021-01-08 05:12:06 +00:00
Zuul
2ac53e951b Merge "Use AZLeastRoutersScheduler by default" 2021-01-05 18:51:11 +00:00
Trent Lloyd
074e577791 Remove database max_pool_size customisation
The database pool size is per-worker and not shared among the workers.
Currently we incorrectly scale max_pool_size with the worker count,
resulting in an excessive number of database connections that are both
unnecessary and can exhaust the MySQL server max_connections.

With the previous formula max_pool_size = workers * 4, the resulting
connection count was exponential e.g. with 10 workers you get 400
connections but with 20 workers you get 1600. With the commonly deployed
setting of worker-multiplier=0.25 you get 20 workers on 40C/80T machines
and a 3 node HA setup was consuming 3 * 1600 = 4800 MySQL connections.

This customisation was added when rpc_workers support was added (commit
b6ff05ddfe) and I cannot find any evidence that a higher pool count is
needed, the upstream neutron project also removed it's own customisation
of 10 in deference to the oslo.db default of (LP: #1682307). So this
change appears safe and will result in only 100 connections for 20
workers instead of 1600.

Closes-Bug: #1905810
Change-Id: I39b0c17a9ca04c254b08331ac10198680ce1fa28
2020-12-17 18:50:11 +00:00
Robert Gildein
ed1bbfd769 Replaced deprecated function to add a new source
This change only replaced the deprecated function to add a new source
in the `do_openstack_upgrade` function. The original idea of this patch
was to fix an issue that was fixed in another patch.

Copy the new version of the requirements.txt and test-requirements.txt
files to avoid pip 20.3.

Change-Id: I523e2db35cfb0f7533831e5b5fbb802b628b0431
2020-12-16 10:02:11 +01:00
Aurelien Lourot
c6613aa969 Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126
https://github.com/openstack-charmers/release-tools/pull/127
https://github.com/openstack-charmers/release-tools/pull/129

Change-Id: I76103104b926a35f57513687b38ffe62c65c48d5
2020-12-15 11:10:36 +01: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
Chris MacNaughton
4c77f69991 Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: I87d13306d4e5559ac4bc210ba5f0e1b250311190
2020-10-12 11:22:57 +02:00
Alex Kavanagh
8f45645505 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: I7c3e0a7e77e16b9bf318ca22c39f8220c5144ac7
2020-09-28 09:52:17 +01:00
Aurelien Lourot
a32af1b98b Add focal-victoria to the test gate
Change-Id: Id293f61d349d852fc2f38fbd1e2cb0d4ee32526b
2020-08-28 14:27:11 +02:00
Edward Hope-Morley
104626a19f Fix db init notifications
Ensures that leader does not respond to db init
notifications to avoid infitinite looping after
leader switches to a different unit.

Also ensures that leader only restarts its neutron-server
once on db init.

Closes-Bug: #1893008

Change-Id: I59b9d5e0caab62b72380879bf16cb0fd8703bb32
2020-08-26 13:49:52 +01:00
Alex Kavanagh
ec9304f50e Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt

Change-Id: Ib4d8b642fa45aafa6a064172368e1a5f7e1e9dc1
2020-07-27 20:55:21 +01:00
Corey Bryant
5bb94af764 Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: I6f9e2a7bb388ce6fa1981c014ad7186b43def605
2020-07-13 19:00:18 +00:00
Aurelien Lourot
c86da1c2d2 Fix openstack-origin in groovy-victoria test bundle
Change-Id: I4a36837799dc3044c66cbafa734c7e0b72dec25f
2020-07-08 14:47:43 +02:00
Aurelien Lourot
62db5726a7 Add Victoria test bundles
Change-Id: Ib2d0859a9a7d033c49c135a3db7c87a08a49b713
2020-07-07 14:06:07 +02:00
Zuul
ebfcf31609 Merge "Add igmp_snooping_enable config" 2020-07-04 01:38:59 +00: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
Liam Young
60e3a25566 CH Sync for rabbit relation bug fix
Charmhelper sync to pick up the fix to the AMQP context.

Change-Id: I0d158a59cea80a25a1cf70b0cc1e903a5005b9c8
Closes-Bug: #1796886
2020-06-25 10:04:17 +00:00
Alex Kavanagh
6ec56a29b6 Updates for 20.08 cycle start for groovy and libs
- Adds groovy to the series in the metadata
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild

Change-Id: Ie20b6b52235a10c0911afd7bc870cb1f5ee3296f
2020-06-02 14:33:33 +01:00
Peter Matulis
0e87b4dcc0 Apply HA section template to README
Change-Id: I1d9d7811c1ba67e253517f69ad624d49b06efec0
2020-05-29 13:42:11 -04:00
Aurelien Lourot
e495768b4a Sync helpers for 20.05
Change-Id: I3a7ce840746074328010cbc20eef319e04fc3882
2020-05-18 14:45:53 +02:00
Aurelien Lourot
5bafa89f85 Pre-freeze 'make sync'
Change-Id: Ibd096aa2c72867f287cecd868affe82fd5939527
2020-05-06 16:21:23 +02:00
Frode Nordahl
8b8a0fff98
Enable focal ussuri with functional tests
The patchset adds focal-ussuri tests.

Change-Id: I574370461085b6fe4d44e431e78b7c811d974770
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/235
2020-04-18 10:38:55 +02:00
Frode Nordahl
4cfd6465f9
Move NeutronNetworkingTest from neutron-api
At present the neutron-api charm executes four gate tests per
release combination to cover ML2, ML2+DVR, ML2+DVR+SNAT and OVN
deployment scenarios.  This adds up to over 12 hours runtime for a
full test run.

Move execution of data plane test out to the data plane charms
(neutron-openvswitch, neutron-gateway and neutron-api-plugin-ovn)

Change-Id: I64b92042e2700f2795a5d26afc768f973b71f5c0
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/235
2020-04-17 14:28:16 +02:00
Marco Silva
272694f3d9 Initials consistency in README
Main README.md file had a mix of 'DHCP' and 'dhcp'. Replace the
instance of 'dhcp' by 'DHCP' to keep consistency.

Change-Id: I05bc78c4e752afb706f9c3a6803320a9702b62c3
2020-04-09 10:58:26 +01: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
67901457bd
Enable Ussuri and Focal
Do c-h sync.

Keep focal at dev-bundles until neighbouring charms are enabled.

Change-Id: Ia834fe36f9683703c58ea4c678b8aa454efcc38d
2020-03-07 15:37:29 +01:00
Frode Nordahl
4ac5e3f71c Conditionally make neutron-plugin relations required
When charm is not managing the plugin the neutron-plugin-* relations
should be required.

Change-Id: I8c061f272e68b05b6d415e0686564bd7f617aa12
2020-02-24 16:44:54 +01: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
Zuul
db45062959 Merge "Remove disco support from the charm" 2020-02-19 10:18:13 +00:00
Alex Kavanagh
774509f95d Remove disco support from the charm
Also remove the reference to the cosmic (also end of life) test which
doesn't exist.

Change-Id: Icf08c345fa95e350255acc38ee2ae19468c02367
2020-02-18 18:28:57 +00:00