Commit Graph

750 Commits

Author SHA1 Message Date
Alex Kavanagh dd1b4d78fa 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.

Update unit-test to deal with Py3.11 which is run on Debian Buster and
doesn't have /etc/lsb/release file (incorrect mocking issue).

Change-Id: Icddaf9f7b091a09ef4627384cd349e43b34b1325
2024-03-25 14:20:29 +00:00
Zuul e6a1f411f2 Merge "Add 2023.2 Bobcat support" 2023-09-27 12:32:56 +00:00
Jadon Naas d073130639 Fix typo in actions.yaml
There was a typo in actions.yaml for the resume action that was breaking
builds. This change fixes that typo. The charm will build.

Closes-Bug: 2030677
Change-Id: Ic3a1427a73f89f0e0b8d279e0ab9b221e74d0d52
2023-08-08 20:43:51 -04:00
Corey Bryant bb2fee61c6 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: I3999860711e9a4550d40bd3e005b5ff47ad18991
2023-08-02 14:10:57 -04:00
Jadon Naas 6e5cf7da7f Add docs key and point at Discourse
Add the 'docs' key and point it at a Discourse topic
previously populated with the charm's README contents.

When the new charm revision is released to the Charmhub,
this Discourse-based content will be displayed there. In
the absense of the this new key, the Charmhub's default
behaviour is to display the value of the charm's
'description' key.

Change-Id: I85703b441023d58dee7fc2918cad2bc32899ae91
2023-07-11 16:17:11 -04:00
Corey Bryant 906c376b23 Enable jammy-antelope voting and drop kinetic-zed tests
* Voting was turned on for jammy-antelope in the
  project-template for charm-functional-jobs in zosci-config
* Voting for jammy-antelope bundles with non-standard names
  is turned on in individual charms
* Kinetic-zed bundles/tests are removed

Change-Id: I0d5d1e365cd5908a8d18f7f915474457d9f72025
2023-04-12 10:45:29 +00:00
Corey Bryant 6ad93e8710 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: I6ddab6f3b39a8f0fa4db07450022d85ba60d72de
2023-04-11 11:46:24 -04:00
Liam Young edde9a09a6 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Ida916685f5c46d1bf1ae693d0857cc452385fa24
2023-01-16 13:45:23 +00:00
Zuul 95dbcf349c Merge "Add Kinetic and Zed support" 2022-09-12 08:37:59 +00:00
Corey Bryant 9a0e63964a 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
* enable qos service plugin for neutron-api to ensure
  migrate-ovn-db action is successful

Change-Id: I6f94ff3e557413b6096493f839c0a5f217c017d3
Closes-Bug: #1988089
2022-08-31 20:25:30 +01:00
Zuul 661a788e22 Merge "add nagios checks" 2022-07-05 08:10:13 +00:00
Tilman Baumann b7a0f7a708 Quote single parameter string
Quotes around paramerer string because apt-add-repository requires
single parameter but networking-tools-source can contain multiple word entries.

Closes-Bug: #1980020
Change-Id: Ia59acbfb997e5df8638d8ad9135f11b121302815
2022-06-27 23:36:55 +01:00
John P Lettman 7929fc4909 add nagios checks
Updates charmhelpers for nrpe; adds metadata and config entries for nrpe relation; adds services and ovs liveliness nrpe checks.

Change-Id: I991fb6943d833d45e632358141b130c0f2225c09
2022-05-24 10:09:30 -04:00
Alex Kavanagh c5645ea0b9 charmhelpers sync for yoga release
Change-Id: Ie2299afaf122090c466a228b131cdcf0cb7ca49c
2022-04-07 12:24:14 +01:00
Alex Kavanagh 50ebf51d33 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

Change-Id: I520f15d2a9fc2e281796db370d8ed3a88dd67789
2022-04-06 10:59:05 +01:00
Alex Kavanagh dc8a0abddf Update to classic charms to build using charmcraft in CI
This is for lastest/edge and yoga/edge.

This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: Ia56c171397ecf9fa638405fd960593cd57b87047
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-17 12:30:14 -05:00
Felipe Reyes f6a9487b05 Mark ovs-record-hostname as deferable service.
Add ovs-record-hostname to the list of deferrable services, this service
was SRU'ed into Ubuntu >= Focal, when it's not mark as deferrable on
package upgrades will induce a restart of openvswitch-switch.

Change-Id: I4fa3256b39e62e9df223ab40f17f1677a621f293
Closes-Bug: #1923636
Related-Bug: #1915829
2022-02-08 16:50:42 -03:00
Hervé Beraud 9951beeff2 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: I8eedfa05c07067bb9a0d3a331d1868210534d84c
2021-12-15 14:11:43 +00:00
Erlon R. Cruz 2a6cba8e6f Fix QoS selection for SRIOV environments
When QoS is set in the neutron-api charm, the neutron-openvswitch
charm needs to add 'extensions = qos' to the sriov_agent.ini
file.

Closes-bug: #1938277
Change-Id: I44fbf5991d2606161b1bcbc064d4bc68a2fbbb5b
2021-11-25 11:40:00 -03:00
Corey Bryant 641b7f311b 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: Id5a191694d70ef745bd41206eaa2222c95f48dfe
2021-11-22 11:29:40 -05:00
Edward Hope-Morley 6fb737c1c8 Revert "Set explicitly_egress_direct=True for ml2 ovs"
This reverts commit 0f7d135507.

Related-Bug: #1931696
Change-Id: I2ee90140f646170552fd3a638af2231ac9a38cad
2021-10-11 11:24:40 +01:00
Alex Kavanagh 2230c1e60f 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: I26c02161130e1715d80cc8dbb0bcece77d2df249
2021-10-04 13:10:03 +01:00
Zuul a8fd929fb7 Merge "Update description of dpdk-socket-cores" 2021-09-29 17:50:15 +00:00
Hemanth Nakkina d3daa09bc4 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.

Add python3-neutron-fwaas in py3 package list only for rocky 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

Closes-Bug: #1934129
Change-Id: I1546f45635bfd7af76001c1df4f99d219a9d8039
2021-09-12 07:05:11 +05:30
Chris MacNaughton b9c66d81b9 Update description of dpdk-socket-cores
Closes-bug: #1905284
Change-Id: I8eb03cda1bff845b39b3fbab3a2e344889453993
2021-08-16 11:54:44 -05:00
Zuul 13b024a3a2 Merge "Replace reference to 'juju set' with 'juju config'." 2021-08-16 14:27:13 +00:00
Zuul 5b767823a4 Merge "Adds Neutron OVS agent config to DHCP daemon" 2021-08-11 03:46:52 +00:00
James Troup 1d1c9dec20 Replace reference to 'juju set' with 'juju config'.
Change-Id: I06119b4bdc76059dc28a78f80cedd00b8a05f7f8
2021-08-06 18:28:18 +01:00
Zuul a8618324f5 Merge "Set NoopFirewallDriver when SGs disabled" 2021-08-04 13:34:24 +00:00
Zuul c13c30ce87 Merge "Fix call to deferrable_svc_restart" 2021-08-03 16:55:01 +00:00
Zuul 3ace8be7a8 Merge "Mention deferred service events in README" 2021-08-03 13:33:19 +00:00
Liam Young c9df1aa91a Fix call to deferrable_svc_restart
The name of the argument used to pass a reason to `deferrable_svc_restart`
is `reason` not `restart_reason` *1

Change includes ch-sync.

*1 https://github.com/juju/charm-helpers/blob/master/charmhelpers/contrib/openstack/deferred_events.py#L297

Change-Id: Iacce01501cecd1ce732aaff54b00ac70b0b4e488
2021-08-02 10:18:40 +00:00
Erlon R. Cruz 1f6e29fbe2 Adds Neutron OVS agent config to DHCP daemon
The neutron-dhcp-agent might rely on options defined in
openvswitch_agent.ini. By default this config file is not passed to
neutron-dhcp-agent daemon, and therefore those options are not
loaded and fall back for the default values and by that inhibits
the desired behavior.

Charm helpers' PR: https://github.com/juju/charm-helpers/pull/615

Depends-on: I39024855c3e42ee135b6ad5e7618a770219b6994

Closes-bug: #1832021
Change-Id: I134c8077ee52ccdb4e383109ecbea27ed1633fb8
2021-07-27 15:25:34 -03:00
Aurelien Lourot 7e97910ed4 Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: I39024855c3e42ee135b6ad5e7618a770219b6994
2021-07-22 14:58:32 +02:00
Edward Hope-Morley cc4cc00ca3 Set NoopFirewallDriver when SGs disabled
Leaving firewall_driver unconfigured has expose an error
when configuring vlan trunk ports while security groups
are disabled. Setting it to NoopFirewallDriver allows it
to work properly.

Change-Id: I65ace64e0a71f78fa857481fff0a874cc018d7d8
Closes-Bug: #1934904
2021-07-18 16:58:44 +01:00
Peter Matulis e6e8d72f50 Mention deferred service events in README
This is a boilerplate section that will eventually
be added to the README for every charm that supports
the deferred restart feature.

Change-Id: I4aa805273f83b9cd88d96fa0e77b12e829cb2499
2021-07-09 13:47:44 -04:00
Aurelien Lourot 7ad1afeb74 Fix Zaza deployment expectations
Fix Zaza's expected application status after
https://github.com/openstack-charmers/zaza/pull/451

Change-Id: I932318afaf369a987d0ff0ac7a43d9665abc3757
2021-07-06 09:59:46 +02:00
Zuul 3fc68108af Merge "Deprecate linux bridge usage in data-port config" 2021-06-28 09:14:59 +00:00
Zuul c325b21a37 Merge "Add impish to metadata.yaml" 2021-06-24 12:18:01 +00:00
Zuul 6c2fc1642e Merge "Set explicitly_egress_direct=True for ml2 ovs" 2021-06-24 09:06:31 +00:00
Dmitrii Shcherbakov 0cbc2a8c0f Deprecate linux bridge usage in data-port config
f832f1073d addressed LP: #1635067 by
adding support for using pre-created Linux bridges in the data-port
config option.

The same use-case of reusing a single physical interface for VLAN
interfaces and plugging it into an OVS bridge can be addressed in a
different way by plugging the physical interface directly into the OVS
bridge and creating VLAN interfaces on that physical interface - this
does not require the use of veth pairs which is problematic due to the
performance reasons and lack of support for in netplan for veth pairs at
the time of writing.

There is a procedure to move from the setup with Linux bridge and veth
pair used to the one that does not which will be documented to migrate
the existing environments in-place.

Partial-Bug: #1877594
Change-Id: I5e455fa701cc2f5248ccfd9ed15f3c902aacb1ef
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-06-23 15:54:51 +02:00
Aurelien Lourot 7dd86369c2 Add impish to metadata.yaml
Change-Id: I3ad5f489b759de5d53be6ca234f52ffe41951488
2021-06-16 10:28:07 +00:00
Zuul 6ad570051c Merge "c-h sync - restore proxy env vars for add-apt-repository" 2021-06-15 01:38:46 +00:00
Edward Hope-Morley 0f7d135507 Set explicitly_egress_direct=True for ml2 ovs
This fixes a regression introduced in 16.3.0 neutron
release that causes non-offloaded ports to break on
hypervisors that have offloaded enabled.

Closes-Bug: #1931696
Change-Id: I1e884eac26d51c825736f34bcbfdccc906944b8d
2021-06-11 11:35:01 +01:00
Zuul 0e3da66f6e Merge "setup.cfg: Replace dashes with underscores" 2021-05-28 08:30:04 +00:00
Zuul e33d2a7cf3 Merge "Disable vrrp healthchecks by default" 2021-05-20 12:47:32 +00:00
Corey Bryant 3aa1f3cc3b c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I341a8359263235900a1da82b85c59596aedb855e
2021-05-13 08:47:08 -04:00
jiangzhilin ab8822ca2f 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: I736a8f9ceaac558e62360b928bae05d9571e43ab
2021-05-07 11:55:51 +00:00
Alex Kavanagh 561e22d262 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: I3a67beb7b06d6dec5fbb356ad6fa01a0a9590495
2021-05-03 16:08:53 +01:00
Corey Bryant 96ba49807c Fix regression of disable-mlockall
This restores OVS_DEFAULT to the BASE_RESOURCE_MAP.

There were some changes in commit ad7f870c that moved OVS_DEFAULT
out of the BASE_RESOURCE_MAP, which resulted in no more rendering
of /etc/default/openvswitch-switch for non-DPDK deployments.

Closes-Bug: #1925962
Change-Id: I8bc6e0c20e5702db5a44fda531b6a59ada5bee1e
2021-04-26 07:46:55 +01:00