Commit Graph

211 Commits

Author SHA1 Message Date
Alex Kavanagh cc421e9719 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: I121370811bec483cb026559cbd4b759d54f10c23
2024-02-12 18:21:03 +00:00
Corey Bryant dd640651e3 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: I449a35e6ba7783e53fd21231dfa4236fbb31b7ef
2023-08-02 14:23:14 -04:00
Corey Bryant cf83220246 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: I73f8f0d538701779ad570bc7565982a6b7e4f7af
2023-03-29 21:01:50 +00:00
Corey Bryant a6de5f8d77 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: Id93b0ee0999c7a23ef34e68646b03d910816c655
2023-03-07 20:30:33 +00:00
Felipe Reyes f41c45ead5 Drop 'source' from mysql-innodb-cluster and rabbitmq-server
Change-Id: Ib468fb79ec5e00102a1a9fc43ab66078e37c1593
2022-10-31 15:46:58 +01:00
Corey Bryant 2604499010 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

Change-Id: Ida68ffdab34c3136f3acf98629e4be6fda3bcea2
2022-08-26 18:40:40 +00:00
Alex Kavanagh 08c823a9b4 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
- charmhelpers sync

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/747
Change-Id: I8bd5e6f5d002fbd1118f2c7fa54e50f1b31fc722
2022-04-11 20:28:05 -07:00
Alex Kavanagh 57a20ffb22 Update to classic charms to build using charmcraft in CI
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: Iee7fb24e06d23b3fbf35f05e7931dbdc25b37d64
2022-02-22 05:13:41 +00:00
Alex Kavanagh 46e9a675f2 Migrate charm to charmhub latest/edge track
Change-Id: I21152bef3813165a55c7f7d8a716e363c0aab273
2022-01-27 21:49:00 +00:00
Corey Bryant 3b3c0ee32b 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: Id4a36b0f41d2644a94d266ca1990a270e4e7452f
2021-11-19 16:32:05 -05:00
Alex Kavanagh 7228648506 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
- disabled hirsute-wallaby due to
  https://bugs.launchpad.net/charm-neutron-gateway/+bug/1945746

Change-Id: I09f111993addbdaa87a1cd695dfebe78844ccd17
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-01 12:20:31 +01:00
Liam Young 0f4c7e7aee Increase nova-cloud-controller RAM in func tests
Recent test run(s) have shown memory exhaustion on the nova
cloud controller units. This exhibits itself as the controller
dropping messages from the compute nodes and logging messages like:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 268, in _perform_action_on_threads
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 342, in <lambda>
    lambda x: x.wait(),
  File "/usr/lib/python3/dist-packages/oslo_service/threadgroup.py", line 61, in wait
    return self.thread.wait()
  File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 180, in wait
    return self._exit_event.wait()
  File "/usr/lib/python3/dist-packages/eventlet/event.py", line 125, in wait
    result = hub.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 298, in switch
    return self.greenlet.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 350, in run
    self.wait(sleep_time)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/poll.py", line 80, in wait
    presult = self.do_poll(seconds)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/epolls.py", line 31, in do_poll
    return self.poll.poll(seconds)
MemoryError

to the nova-conductor log.

It seems very likely this issue is specific to Bionic Stein so it
may be a little wasteful to have increased the memory allocation
for all the bundles but I think consistancy between the bundles is
more important.

Change-Id: I2d45acadcd221786513c49256f087114a985e74f
2021-09-23 09:33:56 +00:00
Edin Sarajlic c6f970673b Actions that expose various neutron resources
New actions:
  * show-routers
  * show-dhcp-networks
  * show-loadbalancers

Partial-Bug: #1916231
Closes-Bug: #1917401
Closes-Bug: #1917403
Closes-Bug: #1917405

Change-Id: Ie59c2a7d5c1ee9c51a0f7db4e8f38229812ac84a
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/611
2021-09-12 17:47:38 +02:00
Aurelien Lourot 1cc3eba140 Fix Zaza deployment expectations
Fix Zaza's expected application status after
https://github.com/openstack-charmers/zaza/pull/451

Change-Id: I1a6f1316817a444d9cb82a4bc7e57d832a921eae
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/598
2021-07-05 11:43:48 +02:00
Alex Kavanagh 3394e71780 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Libraries sync.

hisute-wallaby test is disabled (moved to dev) due to [1] as bundle may
reference a reactive charm.

[1] https://github.com/juju-solutions/layer-basic/issues/194

Change-Id: I26d558bc7f1847459a1d510c887a3128637a10ce
2021-05-06 10:26:31 +00:00
Liam Young b3f6993f20 Implementation of deferred restarts
Add deferred restart actions and config.

Change-Id: I6aeceae10b7a25ba5bfd6f2cb07f510a9481d0ba
2021-04-09 12:54:15 +00:00
Przemysław Lal b679984b1f Add new functional test case for ext-port config option deprecation
Add reference to to the new test case that valdiates whether the charm
goes in blocked state when data-port and ext-port are specified at the
same time.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/523

Signed-off-by: Przemysław Lal <przemyslaw.lal@canonical.com>
Change-Id: I2e1ba8ac4c09ea77c39e0337114f67690de6829c
2021-03-15 13:51:11 +01:00
Billy Olsen 6d3cb905ae Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I5f36d39a80598f8cbef1c5f621d838f27227a10a
2021-03-01 12:06:10 +01:00
Aurelien Lourot 528d858907 Remove -proposed from the focal-ussuri bundle
The -proposed bucket contains a buggy pip version at
the moment which leads to `pip freeze` failures in
placement's install hook. A similar change has
already been made in another bundle:
https://review.opendev.org/c/openstack/charm-neutron-openvswitch/+/775801

Change-Id: I4561d693034d6e0181def787a53e95232d05fca7
2021-02-23 10:09:45 +01:00
Aurelien Lourot 75fccfb230 Add Groovy to the test gate
Change-Id: Ie8eb5e367baa830ebdaf9ab2232dfbc8a595fff0
2021-01-22 13:03:19 +00:00
Frode Nordahl ea2e3bf24f 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

Change-Id: I506f499c8c506d999e79f223f03a58abc29b8746
Depends-On: Ifa99988612eaaeb9d60a0d99db172f97e27cfc93
2020-09-11 19:11:32 +00:00
Aurelien Lourot 48d3cf6d15 Add focal-victoria to the test gate
Change-Id: I6b8e907b2fcdf7e4de8e027828a763d2d4eba25f
2020-08-28 14:27:30 +02:00
Aurelien Lourot bbc621edca Mark OVS bridges and ports as managed by charm-neutron-gateway
This patchset updates the configure_ovs() function in
hooks/neutron_utils.py such that ports and bridges in OVS are marked as
being managed by this charm.  This will allow us to clean up obsolete
managed bridges and ports in a later patchset.  (On configuration change
new ports and bridges might be created and former ones might become
obsolete.)

This patchset also fully deprecates the 'ext-port' config option such
that if both 'data-port' and 'ext-port' config options are set, the unit
is blocked.  The README and config.yaml are updated to reflect this
change.

This patchset also fixes and removes a few dead links.

Relies on a charm-helpers version containing these patchsets:
https://github.com/juju/charm-helpers/pull/443
https://github.com/juju/charm-helpers/pull/447
https://github.com/juju/charm-helpers/pull/449

Related documentation:
* Deployment guide / Upgrades / Known issues: https://review.opendev.org/630290
* Release notes: https://review.opendev.org/742660

Change-Id: I8b459135d131e16865de40ff3eae16ea3bc7195e
Partial-Bug: #1809190
2020-08-27 12:00:32 +02:00
Aurelien Lourot de513bc49d Add Victoria test bundles
Also remove Eoan bundles.

Change-Id: Ide4a257812e2b844aea869aba698936d1e0f7393
2020-07-08 14:28:54 +02:00
Alex Kavanagh 39209b538b 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: I69530e715f0920fb5cd926fe195ca1768be04e84
2020-04-02 11:53:14 +01:00
David Ames a03fe36fa6 Make ovs_use_veth a config option
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: Ia01c637b0837a4e594d16f6565c605460ad3f922
2020-01-29 18:24:45 -08:00
Jose Guedez 6806db670b Port Charm Neutron-Gateway func tests from Amulet to Zaza
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/142

Change-Id: Ib0b8fe5fe7273ce352c3771f4e59e310fff60f65
Closes-bug: #1828424
2019-12-11 15:42:07 +11:00
Sahid Orentino Ferdjaoui 836e701544 Enable functional tests for train
This patch also updates the smoke test to run train.

Change-Id: Ic7ed2a3c12df08dac2a056bb08c5ef87768f8e47
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-30 08:05:40 +00:00
Camille Rodriguez c856c36839 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: I268df41f6f775560580b49fa60f717ba8da88def
2019-08-27 13:24:24 -04:00
Zuul 1ae213c4c3 Merge "Revert "Stop using veth pairs to connect qdhcp ns"" 2019-08-05 07:23:33 +00:00
Liam Young 9d332765e5 Revert "Stop using veth pairs to connect qdhcp ns"
Reverting as this change causes existing qdhcp namespaces to become
inaccessible.

This reverts commit bbc20dbe49.

Change-Id: I91ec8b34bd531e48d00c48512a43921f97b6d9a2
2019-08-02 11:56:17 +00:00
Chris MacNaughton f4bf629c63 Sync charm-helpers
Change-Id: I9029777c7cad92ffb5edba3f8acacac015efd663
2019-07-16 07:06:04 +00:00
Liam Young bbc20dbe49 Stop using veth pairs to connect qdhcp ns
veth pairs are currently being used to connect the qdhcp namespace
to the underlying bridge. This behaviour appears to only be needed
for old kernels with limited namespaces support (pre trusty).

Change-Id: I3b090f07c995cbf375dcc1dfdbadf0d7f10ec78e
Closes-Bug: #1832021
2019-06-20 17:14:45 +00:00
Frode Nordahl c491835877 Enable bionic/stein and disco/stein functional tests
Change-Id: Icb249cb96621dd358413ff96f7aacb5ee63d6452
2019-04-11 11:57:14 -07:00
Chris MacNaughton 92a46c2d37 Latest charmhelpers audit update fixes file permission check
Change-Id: I059c27eec6e5d3fbae522aad694ea31c7b8a7b41
2019-03-27 11:07:50 +01:00
James Page dea96c0a11 stein: Switch to FWaaS v2
Stein drops support for FWaaS v1; switch agents to use FWaaS v2
drivers.

Change-Id: Iba494398df29c1e2611d06345e41146a6f8e3d6d
2019-03-20 05:51:43 +00:00
Chris MacNaughton 59adca21e2 Add security-checklist action
Change-Id: I39b53cb049b84a9ccde91adebd5aec6ea7a8168f
2019-03-13 10:33:02 +01:00
Corey Bryant c73311350e Update rabbit driver config options
The stein version of python-oslo.messaging (9.0.0+) has removed
the following config options from the [oslo_messaging_rabbit]
section:

rabbit_host, rabbit_port, rabbit_hosts, rabbit_userid,
rabbit_password, rabbit_virtual_host rabbit_max_retries, and
rabbit_durable_queues.

The above change requires a sync from charm-helpers.

Additionally the transport_url directive has been moved to the
[DEFAULT] section.

These have been deprecated since Ocata, therefore this change
will be provided to pre-Stein templates in order to drop
deprecation warnings.

See release notes at:
https://docs.openstack.org/releasenotes/oslo.messaging/index.html

test_300_neutron_config is also removed in this change as amulet
tests no longer need to confirm config file settings.

Change-Id: I4b95c3ff4a37a09e7df5fb5cb6331dc3a46c0095
Closes-Bug: #1817672
2019-02-26 12:54:55 +00:00
Ryan Beisner 2debccbdea
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I13262810105e68cf93d3df31a76c6f0f215cbcc1
2019-02-06 14:49:13 -06:00
Zuul 501bf14eb8 Merge "Remove nova metadata service" 2018-10-05 08:43:12 +00:00
Liam Young b14f2fc47e Remove nova metadata service
The change turns off the local nova metadata service and uses
endpoint data recieved from the quantum-network-service relation
to point the neutron metadata service at the nova metadata service
on the nova cloud controller for Queens+.

Depends-On: I5ad15ba782cb87b6fdb3c0941a6482d201670bff
Change-Id: I7037a20feac73f3a3f1ed1b8b1b70d0fa534bc46
2018-10-04 14:06:08 +00:00
Ryan Beisner 42ac2016a3 Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Ica07d8f246f105541f12c5daf8df846047f00740
2018-10-03 13:10:30 -05:00
James Page 73afa34c38 py3: Switch to Python 3 for OpenStack Rocky
Switch to using python3-{nova,neutron} at OpenStack Rocky; purge
previously installed Python 2 modules on upgrade.

Switch default test target to bionic-rocky.

Change-Id: I0a2b48bfc8c950efea3e83c74ec3eb6dd43796c4
2018-09-21 16:33:32 +02:00
Zuul 80b5a05d3f Merge "Series Upgrade" 2018-09-21 07:28:00 +00:00
David Ames fc78151819 Series Upgrade
Implement the series-upgrade feature allowing to move between Ubuntu
series.

Change-Id: I0710595fbe6477be81d966d7289c0f6aed503c44
2018-09-20 13:08:45 +00:00
Ryan Beisner 362b4a073b Add cosmic
Add a tactical change which is already merged into charm-helpers.

This needs to go into all charms to solve the chicken:egg issue
where cosmic is untestable until this change exists.

Reference:

4835c6c167

Change-Id: I596f438c298dd5c3e60a0c2b7262d82cf0636fb7
2018-09-19 13:30:24 +02:00
Ryan Beisner 1cd104b4f6 Update functional test definitions
Change-Id: I04375c2257a282a6941642fa71396981a4cb31aa
2018-08-27 18:16:21 -05:00
Ryan Beisner 82b598afa3 Update functional test definitions
Change-Id: I502cf0d0481d4c9260777a4a8083249b1740758c
2018-07-18 18:37:17 -04:00
Chris MacNaughton 3e03e2247d Sync charm-helpers to ensure Rocky support
Change-Id: Ie5e519541ce3be272d0224645982e858149fa62e
2018-07-13 15:56:45 +02:00
Corey Bryant 047e550250 Sync charm-helpers for Rocky series support
Change-Id: I37bbac627ebfa363e231773400fe3a805572bf03
2018-06-21 19:04:26 +00:00