Commit Graph

770 Commits

Author SHA1 Message Date
Alex Kavanagh a893940450 Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: I6ac828e0784ae4466a6e5cbc85acd666c9c2f75c
2024-02-12 18:20:43 +00:00
Corey Bryant a6c5567354 Drop hyperv mechanism driver and package
The networking-hyperv project is no longer maintained and
has been removed from Ubuntu in Mantic.

Closes-Bug: #2036953

Change-Id: Ib8e861377c9f691f31de0f707823dbf8ac0fde52
2023-10-05 11:51:17 -04:00
Alex Kavanagh 7a0925af7b Ensure get_requests_for_local_unit doesn't fail on incomplete relation
This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix
any inadvertant accesses of ['ca'] in the relation data before it is available
from vault in the certificates relation.  Fix in charmhelpers is in [1].

[1] https://github.com/juju/charm-helpers/pull/824
Closes-Bug: #2028683

Change-Id: Ia03446f08c38057985f895fed2a5cdd78004aec8
2023-08-14 10:25:45 +01:00
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
Zuul 4dd4294a0f Merge "Add support for HAProxy L7 checks" 2023-03-29 08:03:06 +00:00
Gabriel Cocenza 7330c5badf Add support for HAProxy L7 checks
This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default). It also enables /healthcheck
endpoint for neutron-api.

Closes-Bug: #1880610

Change-Id: Ia820d8c2ca709d6b358b1c80d770624568d9a85b
2023-03-27 18:29:06 -03: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 8e708a76b7 Ensure openstack-release package is correct after install hook
The linked bug shows the install of the charm with openstack-origin set
to zed.  This happens because configure_installation_source() causes the
openstack-release package to be installed *before* the zed cloud archive
sources are configured into /etc/apt and an apt update done. This means
that the openstack-release package says "yoga" despite the zed packages
actually being installed.

Then, on the config-changed hook, it sees that the installed version is
showing as yoga and tries to do an upgrade.  This fails, as the charm
hasn't yet bootstrapped, and the charm tries to bootstrap after
upgrading the packages.

There's a few bugs here which are exposed, but the tactical fix is to
force the openstack-release to match the installed packages.

Closes-Bug: #1989538
Change-Id: Icaa2303d2dbbcfc883ea1cd44ce0a77af1ef7250
2022-10-04 19:38:01 +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
Billy Olsen 1561529e12 Use configure_installation_source instead of add_source
Use the configure_installation_source method from
ch.contrib.openstack.utils instead of add_source since it understands
the various openstack-origin permutations.

Change-Id: I3c0d8392c4b0c68687a36c9455fc7991fda215f1
Closes-Bug: 1928727
2021-12-14 13:35:05 +00:00
Aurelien Lourot e18b89a3f0 Fix removing fwaas when upgrading from Ussuri to Victoria
Without this fix, upgrading from Ussuri to Victoria won't
fully remove fwaas everywhere, leading to broken floating
IPs.

Fixes https://github.com/openstack-charmers/charmed-openstack-tester/issues/57

Change-Id: I959e8f8cafc6d4040895762c21f8ad8b6f190a3b
2021-11-29 11:21:30 +01: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
Corey Bryant 15b3a72786 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39

Change-Id: I97d4131670ae024b8bc84d5a13b1034e47d39445
2021-11-22 10:55:20 -05:00
Alex Kavanagh f7d248e6e6 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Iace3419aa0cc1791d4642f15aa5e4826d3629c59
2021-09-30 16:35:36 +00:00
Hemanth Nakkina c7d8ee4c86 add internal endpoints to neutron-plugin-api relation data
The change [1] syncs the charmhelpers that has additional
context data to IdentityServiceContext - internal_host,
internal_port, internal_protocol.

This patch adds the internal_host, internal_port,
internal_protocol to neutron-plugin-api relation data.
Without this patch, any relations over neutron-plugin-api
will be incomplete if the charm holding the other end of
the relation has charmhelpers synced.

[1] https://review.opendev.org/c/openstack/charm-neutron-api/+/806676

Change-Id: Ic4abbd0a408949c0c752a1701db161e1cd5c4ff7
2021-09-08 11:32:22 +05:30
Hemanth Nakkina 69af89a615 Add enable-fwaas to relation data
Add enable-fwaas to neutron-plugin-api relation data so
that neutron-openvswitch updates neutron-l3-agent
configuration accordingly.

Synced charmhelpers to get related changes
https://github.com/juju/charm-helpers/pull/635

Partial-Bug: #1934129
Change-Id: I5019c5ed3b8ab556d4900f1fe46dee69f5f09ee7
2021-09-07 06:51:52 +05:30
Edward Hope-Morley 2e0896c737 Fixes disabling fwaas
Commit 00e7c8b added support for disabling fwaas but
forgot to remove the firewall plugin from service_plugins
once the fwaas package has been removed. This patch fixes
that.

Change-Id: I75fdd192144138fa5bf09c278d5507ca8c5366d1
Closes-Bug: #1934129
2021-07-28 13:20:08 +02: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
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 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
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 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
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
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
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
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
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 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
Liam Young 9eff12d1ad If endpoint switches to https tell nova-cc
If the charm has joined the certificate relation and switched its
endpoint to using https then it needs to tell nova-cc as it currently
gets its neutron endpoint from the neutron-api relation and not the
catalogue.

Change-Id: Idb1dbf8cbc344ef3f3bf3b6f463e55729a9ff63c
2020-02-17 11:08:20 +00:00
Liam Young c2d5dc5719 Charmhelper sync for 20.02
Change-Id: I0d4ebd5d6a2d70643c311f9ba35d4b6b80e12b4e
2020-02-04 16:39:21 +00:00
Zuul ece024b467 Merge "Disable Apache port 80" 2020-01-31 15:48:35 +00:00
Liam Young 6fafb5abc5 Do not access DB when it is in maintenance mode.
If the database is in maintenace mode do not attempt to access
it.

Change-Id: I42cc19aedff2bc060343f4431c1b4834f9389f03
Depends-On: I5d8ed7d3935db5568c50f8d585e37a4d0cc6914f
2020-01-30 12:37:43 +00:00