Commit Graph

712 Commits

Author SHA1 Message Date
Alex Kavanagh cc421e9719 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: I121370811bec483cb026559cbd4b759d54f10c23
2024-02-12 18:21:03 +00:00
Corey Bryant dd640651e3 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: I449a35e6ba7783e53fd21231dfa4236fbb31b7ef
2023-08-02 14:23:14 -04:00
Corey Bryant b5193940b2 Fix comparison for Antelope wrap
Use CompareOpenStackReleases to ensure 'antelope' is greater
than 'zed', for example.

Change-Id: I3cf34dbf596c63484ada442c91aa51adab5a7fad
2023-04-13 13:59:46 +00:00
Corey Bryant a6de5f8d77 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: Id93b0ee0999c7a23ef34e68646b03d910816c655
2023-03-07 20:30:33 +00:00
Liam Young 35896561c7 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I6ca5d9177be028ca24e84f455821560923fcad54
2023-01-16 14:28:16 +00:00
Felipe Reyes fabaa8aa22 Drop python-six
This charm doesn't need to support python 2.x anymore, and python-six
was dropped from the Ubuntu Archive on Kinetic (22.10)

Change-Id: Ibd7d373305b608ff0349986d17ecba7f9dfaeb3c
Closes-Bug: #1995285
2022-10-31 15:47:44 +01:00
Corey Bryant 2604499010 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: Ida68ffdab34c3136f3acf98629e4be6fda3bcea2
2022-08-26 18:40:40 +00:00
Alex Kavanagh 08c823a9b4 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

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/747
Change-Id: I8bd5e6f5d002fbd1118f2c7fa54e50f1b31fc722
2022-04-11 20:28:05 -07:00
Billy Olsen e72659126d Add ovs-record-hostname to deferable service list
The ovs-record-hostname service was introduced in the openvswitch SRU
for bug #1915829, however this service did not make the deferable
services list for the neutron-gateway charm. This causes package
upgrades to restart the openvswitch-switch service. Add the
ovs-record-hostname to the deferable services list in order to prevent
unintended restarts of openvswitch-switch.

Closes-Bug: #1955498
Change-Id: I24a32f6f5a5c51b8b8ee62f88a973a126106fcd9
2022-01-19 04:59:35 -07:00
Corey Bryant 3b3c0ee32b 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: Id4a36b0f41d2644a94d266ca1990a270e4e7452f
2021-11-19 16:32:05 -05:00
Alex Kavanagh 7228648506 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
- disabled hirsute-wallaby due to
  https://bugs.launchpad.net/charm-neutron-gateway/+bug/1945746

Change-Id: I09f111993addbdaa87a1cd695dfebe78844ccd17
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-01 12:20:31 +01:00
Zuul e694359032 Merge "Add extension fwaas_v2 based on neutron-api relation data" 2021-09-13 12:23:36 +00:00
Zuul c7566f4e47 Merge "Actions that expose various neutron resources" 2021-09-13 10:00:23 +00:00
Edin Sarajlic c6f970673b Actions that expose various neutron resources
New actions:
  * show-routers
  * show-dhcp-networks
  * show-loadbalancers

Partial-Bug: #1916231
Closes-Bug: #1917401
Closes-Bug: #1917403
Closes-Bug: #1917405

Change-Id: Ie59c2a7d5c1ee9c51a0f7db4e8f38229812ac84a
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/611
2021-09-12 17:47:38 +02:00
Hemanth Nakkina de22d6cbe2 Add extension fwaas_v2 based on neutron-api relation data
fwaas_v2 extension is added in l3_agent.ini by default from stein.
However with the newly introduced neutron-api configuration parameter
enable-fwaas, the extension have to added only when it is set to true
on neutron-api charm.

neutron-api charm adds enabled-fwaas as relation data in the commit
https://review.opendev.org/c/openstack/charm-neutron-api/+/806676.
This patch removes special handling of fwaas_v2 as l3_extension_plugins
is already updated in relation data based on neutron-api enable-fwaas
configuration.

Remove python3-neutron-fwaas in package list from stein release. The
package is already part of dependency of neutron-l3-agent until Ussuri
release and the dependency will be removed from Victoria release in
package control files.

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

Partial-Bug: #1934129
Change-Id: I07db7fb7c2f00eaf4c0a5bcc082c73922b87d1c0
2021-09-12 06:53:34 +05:30
Edward Hope-Morley 3de85d46c1 Make fw driver configurable
The neutron-gateway uses the firewall driver just as other nodes
do when running neutron-openvswitch-agent. It is currently
hardcoded to the deprecated iptables_hybrid driver. This patch
allows the driver to be changed to openvswitch same as with the
neutron-openvswitch driver with a firewall-driver config option
that defaults to iptables_hybrid so as to maintain backwards
compatibility.

Change-Id: I4f5482425c91b5ad556c384abba7c27137c1948f
2021-07-20 14:55:28 +01:00
Liam Young 10707801e6 Remove deferred-restart config for lbaasv2
When uninstalling the neutron lbaasv2 package remove the policyrcd
configuration for the service first. This allows dpkg to stop
the service.

Change-Id: Ib0ae0c2c66324edf018ba2fbd10ab4f27ef7f16a
Closes-Bug: 1931655
2021-06-15 14:55:41 +00:00
Corey Bryant 0f7a2418cb c-h sync - restore proxy env vars for add-apt-repository
Change-Id: Ie18e3958c90a19a8a1f5ce4cd01aac3f204965aa
2021-05-13 08:47:01 -04:00
Alex Kavanagh 5f33d68f49 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: I3798a8dc52cd80464481692d821590d367a9bf29
2021-04-11 16:57:49 +01:00
Liam Young b3f6993f20 Implementation of deferred restarts
Add deferred restart actions and config.

Change-Id: I6aeceae10b7a25ba5bfd6f2cb07f510a9481d0ba
2021-04-09 12:54:15 +00:00
Alex Kavanagh 6facf6431c 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: I78d24b0e2f4218abaa6c7fd5854319ab9fa6f01a
2021-04-03 20:30:36 +01:00
Przemysław Lal 68154a3a9a Move _ovs_additional_ids() and sequence_functions() to charmhelpers
Sync charmhelpers.

Replace _ovs_additional_ids() calls with generate_external_ids() from
charmhelpers.

Replace sequence_functions() with sequence_status_check_functions()
from charmhelpers.

This allows to share helper functions between charm-neutron-gateway
and charm-neutron-openvswitch.

Change-Id: I8fc3b5c9e33e539b8b9c1d188acb8c79e8758244
Signed-off-by: Przemysław Lal <przemyslaw.lal@canonical.com>
2021-03-09 13:05:37 +01:00
Alex Kavanagh 033500842d 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
* include fix for local_address() with NoBindingError

Change-Id: I7d8b1ac654f1c7b394c9218c7dbbbe8e6980632d
2021-01-20 11:51:58 +00:00
Chris MacNaughton ae639ca0cb Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: Icb17f4b2df46ece02e114b6c29178cf0a874290d
2020-10-12 11:23:09 +02:00
Frode Nordahl ea2e3bf24f Add cleanup action and OVS to OVN migration test
Add OVS to OVN migration at the end of the regular gate test. This
adds only 5-10 minutes to each job and we want to confirm this
works from focal-ussuri and onwards as this is the point where we
recomend our end users to migrate from OVS to OVN.

Do ch-sync.

Merge after https://github.com/juju/charm-helpers/pull/511

Change-Id: I506f499c8c506d999e79f223f03a58abc29b8746
Depends-On: Ifa99988612eaaeb9d60a0d99db172f97e27cfc93
2020-09-11 19:11:32 +00:00
Frode Nordahl ed3a162d57
Unpin flake8, fix lint
Change-Id: I0c3a4b4f8291e0b19d131269554e09346754e120
2020-09-08 09:39:01 +02:00
Zuul 7a28689ccc Merge "Add keepalived-healthcheck-interval config option" 2020-09-04 15:07:56 +00:00
Aurelien Lourot bbc621edca Mark OVS bridges and ports as managed by charm-neutron-gateway
This patchset updates the configure_ovs() function in
hooks/neutron_utils.py such that ports and bridges in OVS are marked as
being managed by this charm.  This will allow us to clean up obsolete
managed bridges and ports in a later patchset.  (On configuration change
new ports and bridges might be created and former ones might become
obsolete.)

This patchset also fully deprecates the 'ext-port' config option such
that if both 'data-port' and 'ext-port' config options are set, the unit
is blocked.  The README and config.yaml are updated to reflect this
change.

This patchset also fixes and removes a few dead links.

Relies on a charm-helpers version containing these patchsets:
https://github.com/juju/charm-helpers/pull/443
https://github.com/juju/charm-helpers/pull/447
https://github.com/juju/charm-helpers/pull/449

Related documentation:
* Deployment guide / Upgrades / Known issues: https://review.opendev.org/630290
* Release notes: https://review.opendev.org/742660

Change-Id: I8b459135d131e16865de40ff3eae16ea3bc7195e
Partial-Bug: #1809190
2020-08-27 12:00:32 +02:00
Edward Hope-Morley 8d71c41481 Add keepalived-healthcheck-interval config option
Defaults to 30s (i.e. enabled) but also allows disabling
healthchecks by setting to 0.

Change-Id: I49603c22d8085aabd6085058e4d4eb9c74e84a20
Closes-Bug: #1890900
2020-08-20 13:23:57 +01:00
Alex Kavanagh a8f1661d61 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: If1671c83cd83caebb05a167011f554b76650b07b
2020-07-27 20:56:12 +01:00
Corey Bryant 89d663a00f Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: If7ec91283ce57da48e5b33607bddc09707485eec
2020-07-13 19:00:24 +00:00
Zuul 6dcc8e3ae1 Merge "Add disable-neutron-lbaas option" 2020-07-03 10:21:08 +00:00
Zuul 5840fe1e24 Merge "CH Sync for rabbit relation bug fix" 2020-07-03 06:50:14 +00:00
Mauricio Faria de Oliveira 4bf26683d1 Add option to auto-load kernel modules for sysctl
The nf_conntrack module is not loaded early enough on boot,
thus when sysctl options are applied, its settings are not.

This results in the correct sysctl settings seen on deploy
time (because nf_conntrack was loaded previously by others)
but not after reboot, despite configured in /etc/sysctl.d/.

So, insert it in /etc/modules for module auto-load on boot
(available on Trusty via /etc/init/kmod.conf, then Xenial+
via systemd-sysctl.service).

Since users can configure the sysctl option and thus need
more modules, introduce the config option 'kernel-modules'
(with 'nf_conntrack' as default.)

It's handled before sysctl in the config-changed hook in
case some sysctl option(s) needs not yet loaded module(s).

In case of failure to load modules, log a warning message.

Closes-Bug: #1885192
Change-Id: I661a4fe2d9284455e536b073dc93696355baf122
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
2020-06-30 17:57:25 -03:00
Pedro Guimaraes 86eb58317f Add disable-neutron-lbaas option
Since Rocky, Octavia is a valid alternative as LBaaS.
If enabled, we should not configure Neutron LBaaS(v2)
agent at the same time.

The fact that we configure both means neutron-lbaas-agent
will generate messages on rabbitmq which never gets consumed
and creating alarms on NRPE without any actual issues.

This change introduces an option to disable neutron LBaaS
solution. Once activated, it masks lbaas agent service.

Change-Id: I10c4cc2983245efb5bef3d7cbc8e3b6963448a7d
Closes-Bug: #1825906
2020-06-30 21:47:33 +02:00
Liam Young 98b194ba93 CH Sync for rabbit relation bug fix
Charmhelper sync to pick up the fix to the AMQP context.

Change-Id: I1087bb9e49a06868368872c3c5134b6407bb1c27
Closes-Bug: #1796886
2020-06-25 10:04:17 +00:00
Alex Kavanagh 637e08105b 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: I9bda975f774502ffa7c7d2fbf6617c38784bd602
2020-06-02 14:34:07 +01:00
Pedro Guimaraes 775c06f8ff Deprecate nova-api-metadata nrpe check
This change adds nova-api-metadata to the list of
deprecated services for NRPE checks. That will be
happen if disable_nova_metadata() is set to True.

Added an update to NRPE checks to quantum-network
-service changed hook, since its change defines
if nova-api-metadata should be deprecated.

Change-Id: I6b1174561f3dad3ec5334f1e38e45c068a0107a8
Closes-Bug: #1812813
2020-06-01 08:47:01 +02:00
Aurelien Lourot 70b67e0c84 Sync helpers for 20.05
Change-Id: Idb46b1a924314a126367bfada8c7851f0b4ea21f
2020-05-18 14:46:36 +02:00
Aurelien Lourot 9039159438 Pre-freeze 'make sync'
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/267
Change-Id: I351fb66b252a3b9cbcfa711e34a1bf298d661779
2020-05-11 16:57:50 +02:00
Alex Kavanagh 18ce34fb21 Sync c-h for py38 support and add focal to metadata
Note that this is NOT the focal testing enablement for the charm.  This
is a sync of charm-helpers and a add of 'focal' to the metadata to
enable testing, and landing, of other charms' focal functional testing
enablement.  focal testing will be added soon.

Change-Id: I6f647cb9eb0735f42648507dace82dc3a211c8c4
2020-03-14 15:44:08 +00:00
Liam Young d5399356d3 Charmhelper sync for 20.02
Change-Id: I163f9996b57bb9330803e138d4d05d045ee053ea
2020-02-04 16:39:26 +00:00
David Ames a03fe36fa6 Make ovs_use_veth a config option
This change uses a common DHCPAgentContext and takes care to check for a
pre-existing setting in the dhcp_agent.ini. Only allowing a config
change if there is no pre-existing setting.

Please review and merge charm-helpers PR:
https://github.com/juju/charm-helpers/pull/422

Partial-Bug: #1831935

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/157
Change-Id: Ia01c637b0837a4e594d16f6565c605460ad3f922
2020-01-29 18:24:45 -08:00
Corey Bryant 2ada961a0b Sync charm-helpers for Ussuri/Focal release and version details
Change-Id: I54ec47fa132e94aa0925d42c9ecc23f6899d2c4b
2020-01-17 14:22:28 -05:00
Aggelos Kolaitis 7e68feed95 Remove deprecated neutron-lbaasv2-agent from NRPE checks
This patch removes the deprecated neutron-lbaasv2-agent service from
NRPE checks after an OpenStack upgrade to an OpenStack version greater
than Stein.

Depends-On: https://github.com/juju/charm-helpers/pull/409

Change-Id: I5f943941328f8a9cd0701e626e4557e243bf37f0
Signed-off-by: Aggelos Kolaitis <akolaitis@admin.grnet.gr>
2020-01-15 05:39:09 +02:00
Felipe Reyes 17cbdb50a2 Add ovsdb-timeout configuration option
ovsdb-timeout sets ovsdb_timeout in openvswitch_agent.ini, this option
is used to determine when ovsdb commands should be marked as fail. This
is helpful for large clouds or where the node is under pressure.

Change-Id: I0b0e397691c49d3fcebdd30bbe9b160789acf3c3
Closes-Bug: #1849732
2019-12-15 09:18:48 -03:00
Stamatis Katsaounis 5c5d5911a0 Remove lbaas in OpenStack Train deployments
This patch removes completely any lbaas related service when upgrading
to OpenStack Train.

Change-Id: I51a19e4890dfbc4c7cbb61b6d7fdfc7888ff9262
Closes-Bug: #1853868
Signed-off-by: Stamatis Katsaounis <skatsaounis@admin.grnet.gr>
2019-11-29 22:25:59 +02:00
James Page 776979801e Further changes for OpenStack Train
Drop installation and configuration of neutron-lbaasv2-agent for
Train.

Change-Id: I103c809f5f67ee797cc767bd58236601c16aeca5
2019-10-16 10:44:18 +01:00
James Page 75c4fac218 Misc updates for OpenStack Train
Drop installation of python3-neutron-lbaas as this package has
been dropped from the Train UCA.

Change-Id: I5dc373608d56f2fbb9f21a51f73a0da13c3b1611
2019-10-16 09:59:01 +01:00
Dmitrii Shcherbakov 5ec43f6dbe Adds l3_extension_plugins to L3AgentContext ctx
* get a list of l3 plugins to enable based on relation data coming from
  neutron-api;
* refactor adding fwaasv2 service plugins to the l3 agent to accommodate
  the l3_extension_plugins change.

See https://github.com/juju/charm-helpers/pull/370
See LP: #1842353

Change-Id: Ic3a8e302942ed331bc3d80223e123c13d61db3b2
Closes-Bug: #1842353
2019-10-07 23:09:51 +03:00