Commit Graph

112 Commits

Author SHA1 Message Date
Alex Kavanagh 000e53df53
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: Ie58f8722e4eeb06048084fd72c21f1fd614222af
2024-03-25 10:08:05 -07:00
Martin Kalcok a008114a9c Add 2023.2 Bobcat support
* 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

Depends-On: https://review.opendev.org/c/openstack/charm-nova-cloud-controller/+/895840
Change-Id: I9c8c456fae377cf5330c6fbeef86e4fec47e473b
2023-09-28 17:38:05 +00:00
Dmitrii Shcherbakov 32e0a1fbdf Add data plane testing for NDR routes
The change includes modifications to bundles to set up components
necessary to spawn instances and provide actual connectivity to them. It
makes the testing more heavy but adds assurances that the data plane
works for the routes advertised by the NDR control plane.

The bundle changes also fix an issue that got in with the original OVN
bundles: manage-neutron-plugin-legacy-mode is set to True and the plugin
is determined to be OVS instead of OVN. The control plane for NDR still
worked but with a non-functioning ML2/ovs config causing OVN DBs to be
empty.

Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1076
Change-Id: Ie59b942a0800ce8dd979398f41ed2138472481f1
2023-06-19 02:48:27 +04:00
Dmitrii Shcherbakov b97646f665 Add OVN + neutron-dynamic-routing bundles
* OVN + NDR testing is possible as of Neutron 22.0.0 (2023.1 or
  Antelope), see [1][2].
* Vault is added to non-OVN bundles as the tests.yaml file is shared
  and uses a configure step for Vault

Important note: at the time of writing the OVN integration code in
Neutron does not have any use for `distributed` and `ha` router extra
attributes and whether distributed or centralized FIPs are used in OVN
is governed by the ovn/enable_distributed_floating_ip option which does
not operate at the per-router granularity and is global.

The docs have not been updated and still say [3] that OVN routers do not
expose `ha` or `distributed` attributes which are now there as of [1].

At the same time, the NDR implementation uses the `distributed`
attribute to determine whether to use the gateway port IP and treat FIPs
as centralized [4] and add a next-hop to the gateway port IP or not in
the advertised /32 routes. For routers with `distributed == True`,
NDR only attempts [5] to find ports with device owner
`'floatingip_agent_gateway'`. Therefore, when distributed FIPs are
enabled via ovn/enable_distributed_floating_ip, the `distributed` extra
attribute on a router is set to `False` and /32 routes are advertised
as centralized.

The distributed FIP case is currently not exercised by the current
bundles neither for ML2/ovs nor ML2/ovn. The current bundles only test
the control plane and route advertisement, not packet forwarding via
advertised next-hops.

[1] https://review.opendev.org/c/openstack/neutron/+/864051
[2] 4d1a7bd0bc
[3] cd66232c2b/doc/source/ovn/faq/index.rst (L16-L29)
[4] 513ea649be/neutron_dynamic_routing/db/bgp_db.py (L564)
[5] 513ea649be/neutron_dynamic_routing/db/bgp_db.py (L567-L580)

Change-Id: I21ba5d79ff100b839874a65e4ddd32f20dfb1311
2023-05-30 20:51:22 +03:00
Dmitrii Shcherbakov 5963ea4fc3 Update the charm for new releases
* Switch to test bundles;
* Update charmcraft.yaml;
* Update requirements files;
* Switch to ch:osci-frr from ch:quagga;
* Update tox config files.

Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1060
Change-Id: Ie611966bb19631a586285f45f27dc52b96ff2937
2023-05-24 14:40:45 +03:00
Alex Kavanagh 13a994f78d Migrate charm charmcraft and for the yoga track
Change-Id: I455d079ffb7ca081d8a1b54d1afcc28d5b8e1751
2022-04-22 12:52:01 -04:00
Hervé Beraud 033a794520 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: I2bb3b81355a3bd9f6f055d1c66b038f4f0abfd0e
2021-12-15 14:21:13 +00:00
Corey Bryant 5a518be884 Additional test updates
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: Ia7f9d5b00ac17636cb59280c78ffa60d815db832
2021-11-17 14:48:46 -05:00
Corey Bryant 594689b699 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata and tests

Change-Id: I11f3688718d11db7043a47d661b75e8ee629f180
2021-11-12 11:18:19 -05:00
Alex Kavanagh 7f8c159249 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I65e364b76039cf7ffa496e1c7070d811ee592eb0
2021-09-27 15:33:06 +01:00
Aurelien Lourot 6b5d9fbaf7 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: Iff416d760df7ab86b73f6e62e046bfc668c91f10
2021-07-22 14:58:12 +02:00
Alex Kavanagh c134578bbc Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Change-Id: I6d21ce67b7d85811dc6b7f800ee5367a71fc3b98
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-06-15 14:25:31 +02:00
Zuul 2342815d1c Merge "Add impish to metadata.yaml" 2021-06-07 09:24:51 +00:00
Aurelien Lourot bce45f15c8 Add impish to metadata.yaml
Change-Id: Iaf3302b712c8d3f0fb7a538b7e93ccb2233b4a1b
2021-06-03 11:20:38 +02:00
Corey Bryant 71133c3825 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I733d30de317723b8e500b4f93967ea8fbc1bcf90
2021-05-13 09:11:49 -04:00
Alex Kavanagh 4a383916b1 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: I3460aefa4931e7c90c690a6c077ff569c31bc0a3
2021-05-03 16:08:31 +01:00
Alex Kavanagh be7a3a5262 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: Ie62670221edbd995c6a2d9256dba58105fb9c28e
2021-04-03 20:30:23 +01:00
Chris MacNaughton e8a343b131 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I996496c12e189257a27fdb39dd094ccb0a6df929
2021-03-05 13:58:29 +00:00
Alex Kavanagh 5e68058faf Add hirsute and remove trusty from metadata.yaml
This update adds the new hirsute Ubuntu release (21.04) and
removes trusty support (14.04 which is EOL at 21.04).

Change-Id: I35feba77b5fe2b0bb5b23d5bff02b3ea5d6c357f
2021-03-02 21:00:53 +00:00
Billy Olsen a5e355d6c3 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Iec84e483079151942d8aa7a98c7e2610742b6544
2021-02-19 17:03:14 -07:00
Alex Kavanagh d8ebb7a5dc Updates to pin charm-tools to 2.8.3
* Update requirements.txt to pin charm-tools to 2.8.3
* Update tox.ini to change the build parameters.
* This upgrades from <2.7 which adds reproducible charms
* Bug was fixed that controlled the default output directory
  doesn't get 'builds' appended.  The tox change puts it
  back so that stable & master both build to the same
  directory.  This may be reviewed in the future.

Change-Id: I4ad9e3f8abb39a7e865d1db377da60335a47594d
2021-02-17 12:15:15 +00:00
Alex Kavanagh d83bf07623 Rebuild to use charm-tools pre 2.8 release
Reverting to an earlier version of charm-tools to
resolve some building issues seen with latest 2.8.2
version.

Change-Id: I17ff809af5c11317f69a923163c2545a19ca4968
2021-02-02 17:11:30 +00:00
David Ames 49c9289e8a Rebuild with udpated charm-tools 2.8.2
Validate the newest version of charm-tools: 2.8.2
https://github.com/juju/charm-tools/pull/598

Change-Id: I4afa236f1a4336ec630803b8a0dfd55a124ab1b8
2021-02-01 14:10:48 -08:00
Alex Kavanagh ca6a7558b6 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

Change-Id: Ib0ae239fa70656318174d13b857aee6de7c67afc
2021-01-15 16:32:48 +00:00
Zuul 3120fc8f95 Merge "Add Groovy to the test gate" 2021-01-14 10:07:28 +00:00
Aurelien Lourot 864baaddb8 Remove Disco and Eoan bits
Change-Id: I1f8e6f2eb3746c2ce7c92de60cfc21c87dc9a68e
2021-01-12 14:00:20 +01:00
Aurelien Lourot 7da46d7b4e Add Groovy to the test gate
Change-Id: Ib1cf61f53fe0c82714025a1f6a38fc00ed677753
2021-01-07 22:28:47 +00:00
Aurelien Lourot e7d6f4ddd0 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: I44b3540287fd3301100399371724a6742fe16ff1
2020-12-11 14:00:58 +01:00
Alex Kavanagh 0f9552a088 Rebuild reactive charms to pick up latest charm-helpers release.
v0.20.18 has been released and needs incorporating into the reactive charms.

Change-Id: I23ddf2bb56f73953670c1a6230592fb7ec9d6677
2020-10-14 16:35:17 +01:00
Alex Kavanagh f234a7ce1d 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: I33b46b798a639ac38a265140fd383dee97415158
2020-09-26 18:36:30 +01:00
Aurelien Lourot de54bdc001 Add focal-victoria to the test gate
Change-Id: I680f08751f5a8ae2a22a3e006b99c4bb0702b979
2020-08-28 14:27:24 +02:00
Alex Kavanagh 95efe691cf 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: Ie6280abef46bfa70e141d7e6eada41ead8ce1a39
2020-07-27 20:55:59 +01:00
Zuul bcd7f17a7a Merge "Remove duplicate dependency: Jinja2" 2020-07-16 15:35:39 +00:00
Aurelien Lourot 5c178e8176 Add Victoria test bundles
Change-Id: Id71a99b13dcd586294fadd6df3d711ccbd539dbb
2020-07-15 12:19:43 +02:00
Corey Bryant 561feeb383 Add victoria package version
Also remove jinja2 from wheelhouse.txt as is a duplicate
and due to improvements in charm build it now causes the
build to fail.

Change-Id: I75a1f34cd3b1c31191c6022a2440216bcad18e3b
2020-07-14 09:30:45 -04:00
David Ames c94e0f3067 Remove duplicate dependency: Jinja2
Closes-Bug: #1885935
Change-Id: If970fdc135c78c7a5ad1ae14daba3e96b9363c39
2020-07-13 10:52:27 -07:00
Zuul d3bbe3fb4e Merge "Stop to use the __future__ module." 2020-07-13 05:42:46 +00:00
Hervé Beraud 1428a3a7dd Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Ib361c211cb5537953f5d62f256d1def4796531ab
2020-06-02 19:59:21 +02:00
Alex Kavanagh 6b4e8514bd 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: I9df5207cd2ffe3efcf12e0ccd31f94e2b5436f08
2020-06-02 14:33:56 +01:00
Alex Kavanagh 76f4582804 Rebuild for sync charm-helpers for 20.05 release
Change-Id: I867c5b5f6853995ce3a1838c83853d10a02c7fb7
2020-05-11 13:03:00 +01:00
Alex Kavanagh 988f08883f Enable focal and ussuri in the charm functional tests
Change-Id: I71f4d1b541bfb875efb1107639aafe06b97c7064
2020-04-30 17:50:28 +01:00
Zuul 44956c851e Merge "[ussuri][goal] Updates for python 2.7 drop" 2020-03-25 06:51:01 +00:00
Ghanshyam Mann ac40fc3e62 [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: If4e76bcac38ff994486816366d78787a9ac4f5b5
2020-03-24 17:13:15 +00:00
Frode Nordahl db0f7a56ff Rebuild for updates to charms.openstack
Change-Id: I1d23abfc743c52600104fccbe4440434c27d6464
2020-03-11 09:24:40 +01:00
Frode Nordahl 2d43e2677c Update charm build requirements
Change-Id: Icc10d12a921d4fc6d3d775a591039becef73a846
2020-03-03 09:57:25 +01:00
Alex Kavanagh 8a27f05c3c Remove disco support from the charm
Change-Id: I6530b80dddfa84e6602bbfa5d1098c26e2ad77a0
2020-02-18 13:18:24 +00:00
Liam Young 844226fe1f Rebuild for 20.02 release
Change-Id: I1b1e8a1e0166d52c67305218cfc5933b1ff713a6
2020-02-05 16:54:41 +00:00
Zuul 306ba9c8fa Merge "Unit testing" 2020-01-23 17:15:31 +00:00
Adam Dyess 5dda150e02 Unit testing
Increase unit test coverage to 100%

Change-Id: I56320abb0fc5e5112278ab632dee845c48c8980c
2020-01-17 15:01:19 -06:00
Adam Dyess 4c7cfc104b Closes-Bug: 1859938
Imports the dragnet module in the reactive handlers module to ensure
that the BaseOpenStackCharm.singleton is updated with a release_pkt
attribute

Change-Id: I99d091c21987d9fafba43754e69c5c3e24fa50ca
2020-01-16 14:41:53 -06:00