Commit Graph

890 Commits

Author SHA1 Message Date
Alex Kavanagh 3dadc053a4 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: I2dbb764d39c8fc95ec9bf4acb621d02f6174940a
2024-02-24 19:58:08 +00:00
Corey Bryant 4ebb43d731 Enable swift payload upgrades for wallaby+
Sync charm-helpers to pick up fix for openstack_upgrade_available
that enables successful payload upgrades. This will need backporting
to stable/wallaby.

https://github.com/openstack-charmers/zaza/pull/619
Closes-Bug: #2040606
Change-Id: Ib5f446d617c11c9c9046c33335c1099b21b5166e
2023-10-26 08:10:43 -04:00
Alex Kavanagh 89d7e78998 Improve platform mocking
Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.

Change-Id: Ic558fa7bab80b0dabc3e5a06d7494e2688c027b3
2023-10-24 16:15:39 +01:00
Felipe Reyes cf1ffe6866 Charm-helpers sync
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1139
Change-Id: Id06e0e004133a157c447af31f3cb308eefa722d1
2023-09-27 16:52:58 -03:00
Alex Kavanagh fb1a1bbcf7 Ensure get_requests_for_local_unit doesn't fail on incomplete relation
This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix
any inadvertant accesses of ['ca'] in the relation data before it is available
from vault in the certificates relation.  Fix in charmhelpers is in [1].

[1] https://github.com/juju/charm-helpers/pull/824
Closes-Bug: #2028683

Change-Id: Ie197482fcba7cadd27ea74f22e2a6e2c97eaddac
2023-08-04 18:49:29 +01:00
Corey Bryant 4e5659b51b 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

Change-Id: I0f57eb5912bbb21e29f2f4b72dd137342c1cf3fe
2023-07-24 17:38:23 -04:00
Corey Bryant 4d176e1330 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: I4623910b60e39fa957cac71ad9519fdfda231e2a
2023-03-29 21:01:51 +00:00
Corey Bryant c8ea6746fe 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: Iaeabaaf9d59fc8b50a685ddc5c91f4cf4f2b748f
2023-03-08 12:47:59 +00:00
Gabriel Cocenza c29a1c7b8e Add support for HAProxy L7 checks
This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks.

Closes-Bug: #1880610
Change-Id: Ie1f53d38c1c45ce3b2ddf5041eaa04a7f3139066
2023-02-23 21:07:47 -03:00
Liam Young 843fab27bd Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I10a781c3c88cea6f07f56bad90fbeae0a02a1b0d
2023-01-18 12:57:17 +00:00
Corey Bryant 745a89a7c1 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
* add domain/project to auth section of yoga proxy-server.conf

Change-Id: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
Closes-Bug: #1988491
2022-09-06 16:23:07 +00:00
Alex Kavanagh fa61a4e59b Pin tempest for different python versions
Change-Id: I2d0d6ee83aacc4e0ab109384496fa23211a31cda
2022-07-11 12:27:39 +01:00
Sudeep Bhandari 9d55ad9570 Trivial grammar fix in README.md
A minor grammatical error is fixed under Usage > Configuration > replicas in the README.md file.

Closes-Bug: #1979029
Change-Id: Ice371e667979217eb22a82a8722e2e234ca4f762
2022-06-17 12:25:11 +05:45
Zuul dde918015e Merge "Add new version template: yoga" 2022-04-25 12:16:10 +00:00
Felipe Reyes 5a4e378361 Use python3-jinja2 for py3.
Change-Id: Ic00d65bee184b20fe98de7ce237df5fcba961622
2022-04-21 17:36:50 -04:00
jneo8 daef40a837 Add new version template: yoga
Closes-Bug: #1960866
Change-Id: I90769c16ca05c725c212255da5cb04a5e36bdcda
2022-04-21 15:17:08 +08:00
Alex Kavanagh 5f38205d3f charmhelpers sync for yoga release
Change-Id: I437e6e843561230cda260d65c7fa75faf75dfbae
2022-04-07 12:30:36 +01:00
Alex Kavanagh 913c50116a 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: I2bd113d92c603c429ba7323a713bb901ce0f4978
2022-04-06 10:15:20 +01:00
Alex Kavanagh 733f8d9791 Migrate charm to charmhub latest/edge track
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.

Bundle fix needed since z-o-t:
2bb4271530

Change-Id: I0067ff7941037b7e87dbfc1fb92b48bb380bb22d
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-24 10:26:12 +00:00
Hervé Beraud 50417cdb32 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: I8757d430ab233f4a21d1d599f1a7a9a0dc68d7ef
2021-12-15 11:45:01 +00:00
Bartlomiej Poniecki-Klotz d92cf5756e Fixed removing multiple devices
Added a confirmation flag for swift-ring-builder command when multiple devices are found to be removed.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/656
Closes-Bug: #1937289
Change-Id: Ieeb326e7d9af21a77954e95e909d6fcf20a3092c
2021-11-22 14:13:07 +01:00
Corey Bryant 13fef16326 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
* add focal-ussuri-gr bundles

Change-Id: I1fbab001a381fe2c3015915ee0d4bc417cb04fef
2021-11-19 14:48:28 -05:00
Alex Kavanagh f6cd0d6bf3 Fix yaml safe_load and allow unittests on py35
* Change yaml.load() -> yaml.safe_load()
 * Pin cffi to 1.14.6 for py35

Change-Id: I623ce5f636e36a121d22763e591d618d26db4b07
2021-10-14 14:32:00 +01:00
Chris MacNaughton fb8ed49ae4 Disable local overlay for the CMR bundles.
Closes-Bug: #1945786
Change-Id: I58774e4d757ea2fb4533dc7ed284f4119c92f010
2021-10-07 11:12:12 +02:00
Alex Kavanagh 4b08ed360a Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I9c9d72d83b9c14dafef98a3fe9bb84e2b6cfbe1f
2021-10-04 14:29:54 +01:00
James Troup 82d8f3693c Replace reference to 'juju set' with 'juju config'.
Change-Id: I906f43b8222baabc2f95a3076ef7329a136102d1
2021-08-06 18:32:04 +01:00
Aurelien Lourot cc6bac5758 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

Also remove unused applications from bundles for focal-ussuri+ as zaza
is now more aggressive at checking for applications that have no units
during deployment.

Change-Id: I0b30a731751960782569f4f2a443a07f3fc07d91
2021-07-27 10:50:24 +01:00
Aurelien Lourot a513ec881c Add impish to metadata.yaml
Change-Id: I8db38c02c33ae61c39f84d9a138450f402c8a8da
2021-06-22 09:09:25 +00:00
Chris MacNaughton b086bc94b9 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: I97b20f0f8eaae99b2ca75e283f4a2c29be871198
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-06-15 14:43:57 +02:00
Zuul 2b59a8dd11 Merge "c-h sync - restore proxy env vars for add-apt-repository" 2021-06-15 03:05:46 +00:00
Erlon R. Cruz 54583248b9 Bump default swift partition power
The partition power is used to build the swift rings. The total
number of partitions in the cluster will be 2^partition-power.
The recommend number of partitions of a cluster is a minimum of 100
per disk. Given that 2^8 is only 256, this number will lead to a sub-
optimal configuration even on test deployments, not to say on production
where disks can surpass the hundreds, and this will lead to a very
unbalanced cluster.

Closes-bug: #1931286
Change-Id: Ifdf2b96f27f18bc64549c40d8fa47474f8eb59c8
2021-06-08 14:07:58 -03:00
Corey Bryant 57d2d4760a c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I5793f6e68058cddcb47b5cd588d4a5e3c0344ee0
2021-05-13 08:47:53 -04:00
Alex Kavanagh a8d77d22fe 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: Ifad219bd1826fcd7129f687bf2739e217b960930
2021-05-03 16:11:00 +01:00
Alex Kavanagh 4a1166dfd3 21.04 sync - add 'hirsute' in UBUNTU_RELEASES
The 'hirsute' key in c-h/core/host_factory/ubuntu.py:
UBUNTU_RELEASES had been missed out, and is needed for
hirsute support in many of the charms.  This sync is to
add just that key.  See also [1]

Note that this sync is only for classic charms.

[1] https://github.com/juju/charm-helpers/pull/598

Change-Id: Iaa9a59f43531c6f0f03a73e003646ada7fdc7419
2021-04-11 17:00:48 +01:00
Alex Kavanagh be941c5270 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: Id08d92c4d80284c290747cb68da06a0fadd1dca6
2021-04-03 20:34:15 +01:00
Zuul 3e56f32d55 Merge "Add new osci.yaml" 2021-03-18 14:53:33 +00:00
Chris MacNaughton 27447d3d15 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: Id44d2037d5743bc882388141d726194c51d82fbf
2021-03-18 07:14:59 +01:00
Alex Kavanagh fb6bdd4d0f 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: I5a1053d6da7284b8edc98c76ca7fe1cdfa720b8f
2021-03-02 21:04:46 +00:00
Zuul cf2a573fc2 Merge "Fix swift port replication configuration" 2021-03-01 14:25:27 +00:00
Billy Olsen 453d48a12f Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I18f6bc0c031754f10783cb254ef8de7e1fd3cba7
2021-02-20 19:22:14 -07:00
Erlon R. Cruz 498d3b0f1e Fix swift port replication configuration
Port replication configs are not being set into the ring files.
When replication port configs
(account|container|object)-server-port-rep, are changed in the
swift-storage charm, swift-storage changes the related configs in
the config files, but that does not update the rings.

This patch adds a function that runs in every config-change
triggered from the swift-storage nodes and make sure any replication
config is written to the ring and distributed to all nodes.

Partial-bug: #1903762
Change-Id: I87eb23de94e3f2f5b06d44df1f8bd9d2324456a0
2021-01-26 15:53:08 -03:00
Alex Kavanagh dee0aa7c2e Hotfix charmhelpers sync for local_address() fix
The network-get --primary-address juju-info fails on pre-2.8.?
versions of juju.  This results in a NoNetworkBinding error.
Fallback to unit_get() if that occurs for local_address().

Change-Id: I1faf793d433e1a0c61b8ad8efd1291cd77133ff6
2021-01-20 12:26:33 +00:00
Alex Kavanagh 772013e6b8 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: I9b82fbd56bd64fa758dd069b984ba12ec6f6ce34
2021-01-15 16:09:11 +00:00
Zuul e4457aa89a Merge "Updates for testing period for 20.01 release" 2021-01-13 20:30:34 +00:00
Alex Kavanagh dbd9f6fe88 Updates for testing period for 20.01 release
* 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: I838600e41e6c4216551ccd51019e3a0a959a3e2c
2021-01-12 15:44:11 +00:00
Aurelien Lourot a215ecbd05 Remove Disco and Eoan bits
Change-Id: If6fcf45531bccb5e17df7609f7bd19c926a28185
2021-01-12 14:04:18 +01:00
Liam Young 21a7a023b4 Add leader hooks
The charm makes use of leader db and checks whether a unit is the
leader but the symlinks to enable leader settings are missing.

Change-Id: I0e19ec42a928466580aaad18a7278108d1060158
Closes-Bug: #1478713
2021-01-08 09:42:30 +00:00
Aurelien Lourot eb59c6095c 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: I1dbe6e5cc1300bbf0ec49b645dc5bb69bfe9bb5a
2020-12-11 14:04:12 +01:00
Aurelien Lourot a992942179 Add Groovy to the test gate
Change-Id: I6700662818cdce26be14030d7cdb5d1952763b0f
2020-11-05 12:54:41 +01:00
Corey Bryant b46659f4b8 Add swift 2.26.0 version for victoria
Cherry-pick from 21f9f239c4

Change-Id: I2315608f10f6dd03397f5abc5999b5fb30fde611
2020-10-13 19:31:15 +00:00