Commit Graph

152 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
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
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
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
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
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
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
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
Liam Young 9b11d24d40 Implementation of deferred restarts
Add deferred restart actions and config.

Change-Id: I334df5ca932e9f94e128d9fa66c1ab91d60233b4
2021-04-09 12:53:58 +00:00
Przemysław Lal 30903919bf Further deprecation of ext-port config option
Deprecate ext-port in favour of data-port and bridge-mappings. From now
on ext-port value will be ignored if data-port is specified in the
config. Log an error in the unit's log and display it in the unit's
status so that the user is aware of misconfiguration.

Update and add new unit tests to account for the introduced changes.

Add a new functional test case that verifies correct handling of
data-port and ext-port config options.

Signed-off-by: Przemysław Lal <przemyslaw.lal@canonical.com>
Change-Id: I4c6febbb56f9a61ff2519b60d2a746c9580a8f2d
2021-04-01 20:26:57 +00:00
Przemysław Lal 19a4537fc4 Set external-ids for managed OVS bridges and ports
Enable marking of OVS bridges and ports as managed by
charm-neutron-openvswitch. This enables more advanced use cases like
implmentation of idempotent config changes or cleanup of stale OVS
configuration.

Include functional test case that verifies whether external-ids are
properly set up on ports and bridges.

Sync charmhelpers.

Closes-Bug: #1917025
Partial-Bug: #1915967

Signed-off-by: Przemysław Lal <przemyslaw.lal@canonical.com>
Change-Id: I343f2c8258b7b8b91417dc6efc5bfe95351392a9
2021-04-01 20:26:23 +00:00
Alex Kavanagh 31ad50fb80 Add in missing dev_bundles key to tests.yaml
Ensure that trusty-mitaka and other EOL bundles are moved into the
dev_bundles key in tests.yaml

Change-Id: I4cc2fe3ed9d9af884d2d6d1e47f7d15687f72f4d
2021-03-11 09:36:19 +00:00
Zuul d1a4379886 Merge "Prune gate tests" 2021-02-23 09:56:00 +00:00
Billy Olsen 3ede79fc55 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Ie6e06b97218ba0ce87f6f0497cb74fffc500f2ba
2021-02-19 17:03:29 -07:00
Aurelien Lourot 2621ed43c6 Add Groovy to the test gate
Change-Id: Iecbbfc076d97fa5163bf635c495aadbde1416c33
2021-02-19 11:30:16 +01:00
Frode Nordahl a31ecdafc9
Remove -proposed from the focal-ussuri bundle
Change-Id: I26796f6659a8e3b6c1ac89b58b401407eae988e2
2021-02-16 11:44:01 +01:00
Frode Nordahl 916f109e2f 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

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/365
Depends-On: Ifa99988612eaaeb9d60a0d99db172f97e27cfc93
Change-Id: Ia4b1d3a9e642b540d1e04adc0363f9b3e11f37cd
2020-09-11 16:30:52 +02:00
Aurelien Lourot eddd0919b8 Add focal-victoria to the test gate
Change-Id: I6cf6671495bcf191f05be8e988a5b29491aed9a6
2020-08-28 14:27:37 +02:00
Aurelien Lourot 0b32f37815 Add Victoria test bundles
Change-Id: I71ca8e1a00785afa5ccd16418f3a5b54bfe90113
2020-07-08 14:35:15 +02:00
Aurelien Lourot 03c44248b4 Fix missing SR-IOV packages on Trusty
Also re-enable the Zaza tests for trusty-mitaka and get them green.

Change-Id: I3d7b0fa38f7e525a0e00c701a392deae84258f76
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/259
Closes-Bug: #1876888
2020-05-06 11:28:40 +02:00
Frode Nordahl ab1a4b8aa1 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.

With this change we default to deploy the ML2+DVR+SNAT deployment
scenario in the neutron-openvswitch gate test for xenial-queens
and onwards so that we can remove this test from the neutron-api
gate.

Change-Id: I04922b758fccad8545afb28cdb715a413096589d
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/237
2020-04-22 21:14:36 +02:00
Alex Kavanagh af7fc7da20 Add focal-ussuri and bionic-ussuri bundle
This patch adds a focal-ussuri and bionic-ussuri bundles to the tests
for the charm.

Change-Id: Ied086eb73417db4cbd8de6ed416d6c24eac62441
2020-04-22 15:48:56 +01:00
David Ames 4075af6a11 Make ovs_use_veth a config option
This was originally fixed in commit 7578326 but this caused problems. It
was subsequently reverted in commit 6d2e9ee.

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: I4848a3246d3450540acb8d2f479dfa2e7767be60
2020-01-30 07:50:54 -08:00
Arif Ali b3930738fb
Migrate neutron-openvswitch tests to Zaza
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/149

Change-Id: I718945e6eeee58e7e9f76c3e88a29e6420da7acd
Closes-Bug: #1828424
2020-01-14 20:25:02 +00:00
James Page 5cdda88eea Add placement service for >= train func tests
Add placement service to functional test deployments for
OpenStack Train or later.

Change-Id: Ia5d45948e485993c143a981cdd89a22110bcc4c9
2019-11-04 13:45:25 +00:00
Sahid Orentino Ferdjaoui 103c1b4b32 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: Ie1e4bb54f4c5c0f7af2c23b2184c0a599dc108c2
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-18 15:34:32 +00:00
Camille Rodriguez 27ea1256fa Add disco-stein bundle to gate tests
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.

Other small additions:
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

LP Related-Bug: #1823718
Change-Id: I910d0c00d4ff55b183a4b800c5710924d359c612
2019-08-27 13:46:14 -04:00
Chris MacNaughton 23e26a4cf2 Sync charm-helpers
Change-Id: I26a45ed4aaf449c9ec208a7358808cf987577acf
2019-07-16 07:06:04 +00:00
Frode Nordahl b92de6b6b9 Enable bionic/stein and disco/stein functional tests
Change-Id: Iefdd3139a7a0543fa400296ecc4a497de8d4782b
2019-04-11 12:48:40 -07:00
Ryan Beisner 17112893fb
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I828b2003679b58512667a18e64a95db5e1f63c9f
2019-02-06 14:49:21 -06:00
lijunjie 992af4660d Fix the misspelling of "openvswitch"
Change-Id: Ib77210d8d2d12afd7122291a0bdc7edcdab2223a
2018-12-27 16:39:41 +08:00
Vladimir Grevtsev 40701500b5 Enable support for security group logging
Add support to enabling logging of security groups for
OpenStack Queens or later; this feature is enabled via
the neutron-api charm, with local charm configuration
options to allow control of rate and burst limits and to
set a local log output directory if require (allowing log
data to be written to a separate partition for example).

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

Basic deployment tests changes is included here since
nova-cloud-controller unit and relation was missing before,
and it leads to CI constantly failing.

Corresponding charm-helpers change:
https://github.com/juju/charm-helpers/pull/228

Change-Id: Id6ed09f714981e87838186d51a4f5e693bedb1d3
Closes-Bug: #1787397
Depends-On: https://review.openstack.org/602355
2018-10-09 18:55:04 +03:00
Zuul d0f0dbf577 Merge "py3: Switch to Python 3 for OpenStack Rocky" 2018-10-04 16:21:28 +00:00
James Page 3015d95af8 py3: Switch to Python 3 for OpenStack Rocky
Switch to execution of Neutron agents under Python 3 for
OpenStack Rocky; this is triggered by the nova-compute charm
mutating the container scoped neutron-plugin relation post
OpenStack series upgrade.

Update default smoke test target to bionic-rocky.

Change-Id: Ic5e96336b6a2ca474fc28d358553c6a05e1a75ce
2018-10-04 14:58:19 +01:00
Ryan Beisner 8daeaada3f Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Id218773cd4339417194c7f4dd008914ddabde059
2018-10-03 13:10:39 -05:00
Vladimir Grevtsev b3321ffe77 charm-helpers sync
Change-Id: Ia7cc8858f4b1c5b1047a5593981efd8bb3bbe75d
Related-Bug: #1787397
2018-09-19 08:57:42 +02:00
Vladimir Grevtsev 11211653fe sync charm-helpers to latest version
Change-Id: I5d6a14bfd5d54d58b5d5515aee9b014216b2c2d3
2018-09-14 18:27:59 +03:00
Ryan Beisner e64f7490b5 Update functional test definitions
Change-Id: I5583203bbce303c0046cd55b3a8707e3d2bed27b
2018-08-27 18:16:41 -05:00
Ryan Beisner c7f0df80cd Update functional test definitions
Change-Id: I5cc24f5ad4d5fe7a47540041fff34c0f07ed5431
2018-07-18 18:37:24 -04:00
Zuul 0749639bc7 Merge "load interface_driver using a symbolic name" 2018-07-16 16:01:04 +00:00
Anton Kremenetsky c8725a6c6e load interface_driver using a symbolic name
The original fix description
https://review.openstack.org/#/c/541815/

Change-Id: Ifa9dca8cf634561dab0fee9a26711678a50379bf
Signed-off-by: Anton Kremenetsky <akremenetsky@dev.rtsoft.ru>
Closes-Bug: #1747964
2018-07-16 12:04:37 +03:00
Chris MacNaughton daa7106478 Sync charm-helpers to ensure Rocky support
Change-Id: Id0e96d7ea2b91a2facd1805820ce45ab0bb51890
2018-07-13 15:57:08 +02:00
Ryan Beisner 288124c9dc Update series metadata
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata.  Dev release tests are enabled separately
because of chickens and eggs.

Change-Id: I0c65437cb99b3160d0c2e5f2b34fca1e5331ae46
2018-07-11 14:06:35 -05:00
Corey Bryant 07b6dbad86 Sync charm-helpers for Rocky series support
Change-Id: Ifce8be13f01170a310f17e1832a6d2921f552ed5
2018-06-21 19:02:38 +00:00
James Page 03016e4cc4 Resolve issues with long interface names
Resync charm helpers to pickup fixes to support veth wiring of
OVS bridges directly to Linux bridges created with MAAS.

Linux has a maximum interface name length of 15 charms; the
change ensures that the generated interface length for the veth
pair fits within this limitation.

Previous behaviour (that worked) is preserved to avoid duplicate
veth wiring or direct wiring of the Linux bridge to OVS.

Change-Id: Icef4efc179e8f812dd08f2423ed832a48573aa75
Closes-Bug: 1773353
2018-06-11 15:28:34 +01:00
Zuul c26b6819a6 Merge "Enable Bionic as a gate test" 2018-05-11 09:04:07 +00:00
Zuul 6e5db2a3e9 Merge "Enable IPFIX exporting for OVS bridges." 2018-05-10 08:15:51 +00:00
Ryan Beisner 778f3f58f5 Remove deprecated functional test targets
Change-Id: I2f3a0ff78e822db7f01f7c78ac12bdc3c2c1dde1
2018-05-09 16:36:56 -05:00