Commit Graph

41 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 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 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
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 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
Aurelien Lourot cb292d8158 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

Change-Id: I873fa5c15b059a9e277b9902c05ca71aace4d576
2020-12-11 14:01:27 +01:00
Alex Kavanagh 0a8d073373 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: Ie94f24d71bac5d84a4a4c695e308926af024fec0
2020-09-26 18:36:55 +01:00
Alex Kavanagh 4b6385b7cd 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: Id7ce95899fc414c7c92c60ef3364c812e53d34a8
2020-07-27 20:56:25 +01:00
Aurelien Lourot d5009161f0 Sync helpers for 20.05
Change-Id: I32c777b1e67995263b3800f5afe9617dfa774e9d
2020-05-18 16:06:52 +02:00
James Page 91b86cb9eb Resync charmhelpers
And enable Python 3.8 tox target.

Uncap flake8, tidy any essential lint.

Change-Id: I5f0c57dbf0e11a7d2746f289f60cbf8cd1df44e6
2020-03-18 10:49:55 +00: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
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
Ryan Beisner 2be1932dd0
Sync charm/ceph helpers, tox, and requirements
Change-Id: I13fec7796678e9217b60126c2f7486475b40db68
2019-09-30 21:43:33 -05: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
Zuul 3d801b9c63 Merge "Add Python 3 Train unit tests" 2019-08-13 17:10:41 +00:00
Corey Bryant 634cc0a989 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that python35-charm-jobs is retained since this charm is supported
on Xenial.

Change-Id: I05e9172cc4c84f76e110b467ff311bed71aa6aab
Story: #2005924
Task: #34228
2019-07-30 10:19:06 -04:00
Chris MacNaughton 23e26a4cf2 Sync charm-helpers
Change-Id: I26a45ed4aaf449c9ec208a7358808cf987577acf
2019-07-16 07:06:04 +00:00
Nicolas Pochet d02fad482d
Replace SR-IOV systemd unit script
* The goal of this change is to enable the ability to configure only the
VFs that are configured through the charm and not fallback to the
blanket configuration.
* This python version of the script brings unit-tests that fully covers
it.
* Move the the template files to `files` and modify `neutron_ovs_utils`
accordingly.

Closes-Bug: 1832379
Depends-On: https://review.opendev.org/#/c/664837/

Change-Id: I7ad1ebc16883bda23cbad89a852e7e8f88f49c49
2019-06-28 17:37:51 +02:00
David Ames a1639fe51f Enable isolated provider network metadata access
When an isolated provider network with no virtual routers metadata
access occurs in the qdhcp netns.

Without the force_metadata option in dhcp_agent.ini and the haproxy
package installed ns-metadata-proxy is not enabled. ns-metdata-proxy
sits in the ip netns and proxies requests from 169.254.169.254 to the
nova-api-metadata service outside the netns.

This change adds the force_metadata option and installs haproxy when
enable-local-dhcp-and-metadata is True.

Closes-Bug: #1831935

Change-Id: Iaad1501e8d7d58888ef0917b6700d22a7cf05ecf
2019-06-07 10:34:50 -07:00
James Page 2b4fdffc52 Switch to direct execution of stestr
Resolves issues with test execution via os-testr.

Change-Id: I03b49c8b13c8d9031651dbfd1984d1bda75476c7
2019-03-07 05:52:01 +00:00
Paul Goins db195e8e8b Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: I8e37015ffccaef6b30090eec8e1fa3837c1eabe0
2019-03-01 14:42:12 +01:00
Doug Hellmann 880e0441c5 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I32101f062a4f194a340fe678812c12c157448d8f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-02 01:03:12 +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
James Page f4ef607187 Fix misc unit test failures
A recent commit landed with failing unit tests, but due to
gate misconfiguration this was not picked up during pre-commit
testing.

Fixup offending code.

Change-Id: I20488efabe91b2423c85dd4e7474cbaf9a0a0261
2018-05-24 15:52:39 -07:00
David Ames 5a30f59bae Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I327d75e17a67bcd49223482579d1bdc0ecf48c24
2018-05-09 09:34:17 -07:00
Ryan Beisner 6b59d60ef2 Update tox.ini to stop using unverified package
As of pip 10.0, --allow-unverified is not permitted.

Use of the flag in this repo was previously used to force
installation of python-apt to accommodate certain unit tests.

The unverified package, python-apt, is no longer necessary
for test execution.

Related-Bug: #1760720

Change-Id: I34c264cbda92d230f30b450ac391cd65ed1c4f54
2018-04-03 16:25:09 +00:00
Ryan Beisner b32d02f7c6 Sync charm-helpers
Change-Id: Ie7fcd226afb62b9707f8a62af3cbd3b7f39e2d7f
2018-02-21 14:09:30 -06:00
James Page 0e86a664be Update to run under Python 3
Refactoring of charm to support execution under Python 3.

Change-Id: I8d48614f38abf31159311d82b0cbb54e60f710c1
2017-11-20 08:54:31 -08:00
David Ames c01ddd3cea Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Change-Id: Ibf0deb7fdb7b2e2df63e4f69bc1eb04efb06688a
2017-11-17 16:38:18 -08:00
David Ames 25318707e0 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: Ifd77b31379fa55daa90a0e4d86ee3638ad3d74d7
2017-04-28 08:42:47 -07:00
Alex Kavanagh 4c916a02ac Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done
- fix tests which assumed mocks would just work on os_release()

Change-Id: Ifa495c37adeb24aa98e4e5e181b90cbbd5c0cddb
Related-Bug: #1659575
2017-04-03 17:59:54 +01:00
Ryan Beisner 810ece602c Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Also create empty dirs with .keep files where necessary.
Some classic charms have actions and/or lib dirs, and some
do not. In all classic charms, flake will now check those
dirs to ensure lint coverage of existing or future content.

Change-Id: I543f07685bf3b2cb89e68ea4fb4692552a74415c
2016-09-09 19:43:24 +00:00
Ryan Beisner 69ffcc15c6 Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Change-Id: I180bc53ca131f37d569be1bfcd4e24df1eca3e93
2016-09-06 22:09:19 +00:00
James Page bad410a739 Use bundletester for amulet test execution
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.

Rename amulet tests inline with gate-* and dfs-* naming standards.

Update README to refer to functional testing section of the charm
guide.

Change-Id: I853d2f7e1f2d6e7acbf9098abf626c182d121059
2016-07-20 08:49:34 +01:00
James Page b38c8c8c24 Update to charm-tools >= 2.0.0
The new release of charm-tools no longer ships the charm
command; update minimum version requirement and switch
to using charm-proof instead, unblocking current pep8
failures across all charms.

Also pin the version of requests to 2.6.0 until theblues
(indirect dependency of charm-tools) sort out its
requirements versioning.

Change-Id: I5f47e86da878ded3684c34d0bc90a340769888a8
2016-03-23 09:30:17 +00:00
James Page 95f259e203 Tidy tox targets 2016-02-16 07:05:03 +00:00
James Page 2f368ff4c5 Add tox support really 2015-11-02 09:35:30 +00:00