Commit Graph

76 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
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
Aurelien Lourot bce45f15c8 Add impish to metadata.yaml
Change-Id: Iaf3302b712c8d3f0fb7a538b7e93ccb2233b4a1b
2021-06-03 11:20:38 +02: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
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 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
Aurelien Lourot de54bdc001 Add focal-victoria to the test gate
Change-Id: I680f08751f5a8ae2a22a3e006b99c4bb0702b979
2020-08-28 14:27:24 +02: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
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 988f08883f Enable focal and ussuri in the charm functional tests
Change-Id: I71f4d1b541bfb875efb1107639aafe06b97c7064
2020-04-30 17:50:28 +01:00
Alex Kavanagh 8a27f05c3c Remove disco support from the charm
Change-Id: I6530b80dddfa84e6602bbfa5d1098c26e2ad77a0
2020-02-18 13:18:24 +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
Sahid Orentino Ferdjaoui 77c1a3d38f Enable functional tests for train
This patch also add a fix in dragent to handle train version.

Change-Id: I8babe05c1754ee6a327ba9db1fe4b76e65d620df
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-24 17:49:33 +02:00
Ryan Beisner 262b5e0752 Sync charm/ceph helpers, tox, and requirements
Change-Id: I37c1817d9b5198dfdeee1e7b14e40aec28362385
2019-10-18 13:31:21 -07:00
Zuul 7cc6894cf2 Merge "Enable bundle specific tox zaza target" 2019-08-23 12:32:41 +00:00
Chris MacNaughton 3ffc738367
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: Ib54af6ee5ea51839b67e8f5f131e279abe24bf85
2019-08-19 11:53:25 -04:00
Frode Nordahl 0ba8d155c9
Distribute direct charm dependencies
Do not rely on system installed Python packages but distribute the
direct charm dependencies as part of the charms wheelhouse.

As the span of distributions we need to support with reactive
charms widens we will run into compability problems with the
current model.

For further reference see juju/charm-helpers#341 and
juju-solutions/layer-basic#135

Change-Id: I87c8649d83dd19eeaea17f2a209993cece723983
2019-08-14 16:51:51 +02:00
Corey Bryant 35ddec55cf Use "rabbit_use_ssl" for ocata
Ensure "rabbit_use_ssl" is specified in the [oslo_messaging_rabbit]
config section instead of "ssl" for Ocata, since "ssl" was not yet
introduced.

This is fixed by using section-oslo-messaging-rabbit for pike and
above rather than ocata and above, and using section-rabbitmq-oslo
for ocata.

Change-Id: I9209a3cdc9b52a918621ad2c328e67aa616f18d6
Closes-Bug: #1838696
2019-08-05 10:19:23 -04:00
Frode Nordahl fb554964f2 Update functional test definitions
Change-Id: Ic24ebab33b3238775f0c7e5e9d885f2c72bf6e4a
2019-07-22 20:10:40 +00:00
Frode Nordahl 871bcaaeb3
Hold services down until config rendered
Change-Id: I1dc570a26bfa97f5612c7b82f06181b2f4e6a665
Closes-Bug: #1837379
2019-07-22 16:59:08 +02:00
Frode Nordahl 21cf26b29c Update charm to use bus to get charm instance
Add ``py3`` target to tox.ini for developer friendliness

Update unit tests to use ``charms.openstack`` unit test helers.

Change-Id: I4752d8e776491f934cd5c1232166933a9ba17746
Partial-Bug: #1837379
2019-07-22 12:51:54 +02:00
Chris MacNaughton ecc87d98f4 Enable bundle specific tox zaza target
Change-Id: Ic6aeedb0be7a29af238c7a540a5dfabcd18445ea
2019-07-08 16:32:40 +02:00
Chris MacNaughton 6a392b384f Retarget Zaza to master now that split has landed
This change is required as Zaza underwent a split of the openstack
tests from the Zaza project, so we had to track the working branch
until that change landed. As it has landed, it is now time to use
Zaza from master again

Change-Id: If00d8883005aaf3bcab1277250644a2d97412d32
2019-05-24 08:49:42 +02:00
Chris MacNaughton feee35c2ce Migrate to split zaza - zaza.openstack
This change adds in zaza.openstack, as well as changing the
branch target of zaza to a branch with zaza.openstack
removed, allowing us to validate the new library

Change-Id: I2b5e3d946c7f9387b39c0c27143f68280c9c99c6
2019-05-09 14:19:20 +02:00
Chris MacNaughton 013201b370 Migrate Zaza tests to independant OpenStack Charms specific library
Change-Id: I6f788c15e7db12a6bbbe9f5e4be946e3f9e69e47
2019-04-26 14:05:52 +02:00
Frode Nordahl 80abec2be6
Enable bionic/stein and disco/stein functional tests
Update driver name for Stein as ``Ryu`` has been replaced by ``Ken``

Change-Id: I86cc002e7ce2c0a033476a71bab9e8d5d3c30dda
2019-04-16 17:39:37 +02:00
Frode Nordahl 8280172407
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.

Clean up test-requirements.txt

Change-Id: Ibf4d82ed84856806d008083ad983e6ac431b8b2a
2019-04-05 15:10:55 +02:00
Corey Bryant 3bedb660d4 Revert to use of charms.openstack transport_url
Drop charm specific code to build the oslo.messaging
transport_url; this is now provided as part of
charms.openstack.

Change-Id: I1a9bcf7bc57b99326cae618df06930ae3990fab0
Closes-Bug: 1817672
2019-02-26 15:57:48 +01:00
David Ames f17e32ea25 Neutron-dynamic-routing support for SSL rabbitmq
The charm was failing to setup enough SSL configuration to communicate
with rabbitmq when rabbitmq uses SSL. This led to Bug:#1807233.

The change and its dependencies guarantees the charm will setup all the
configuration and certificates required for communication with rabbitmq
and SSL.

Depends-On: I6bb56a59cd65310d644aa25ae203996b22ec4b4e
Change-Id: Id78aba7766e045003ad5661ca31d6a6de57d704a
Closes-Bug: #1807233
2018-12-06 12:00:34 -08:00
Ryan Beisner 0f5825f62d Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Ib9b2906654e153d55cf9110b4b1b90a2ee0a0932
2018-10-03 16:22:47 -05:00