Commit Graph

131 Commits

Author SHA1 Message Date
Alex Kavanagh 8fa94a196a Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.

Change-Id: Ie75c1d068e2d605e0c64ed4aaf832d224d8c1f3b
2024-02-24 20:11:53 +00:00
Alex Kavanagh 2cb96790fc 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: Ifdce5bbf4f5e48cc59a8d018fa8cc7f43b473539
2024-02-12 18:20:04 +00:00
Corey Bryant 954bf8e331 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: Icdc73b9ec920f2b80ed3ebc0bdce47518036169a
2023-08-02 14:24:19 -04:00
Felipe Reyes 0f1520f4fa Fix build
Add libpython3-dev to the list of the build-packages, this is needed
since https://github.com/juju-solutions/layer-basic/pull/214 .

Change-Id: I8ac63e1a03d72c857ba04c0ec50b4491a00f7ef4
2023-04-11 15:45:41 -04:00
Corey Bryant 1bddf37183 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: If771aa8431673351fd9727323d81a02ba95b10f9
2023-03-29 21:01:49 +00:00
Corey Bryant 8c7c82e425 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

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1023
Change-Id: Ibbf2a113ee893e971255b84698565261baf1ed3f
2023-03-14 14:11:07 +00:00
Liam Young 90ecf6f7ee Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I954b322c10a8aa8eae9485a0bc1b406da22ceccc
2023-01-19 09:46:13 +00:00
Zuul d943e8a8d6 Merge "Add Kinetic and Zed support" 2022-09-21 15:57:44 +00:00
Corey Bryant d2e6c1fcad 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: I0776bad299d133b61dc8e2941c40eeb572f5af78
2022-08-31 20:08:18 +01:00
Samuel Walladge cb7fdb3527 Support ldap anonymous binding
We can support this simply by allowing ldap-user and ldap-password
configuration options to be optional.

Closes-Bug: #1762587

Co-authored-by: Vern Hart <vern.hart@canonical.com>

Change-Id: I2668d90a58aac9d103240dc67061612358a67150
2022-07-01 10:47:18 +09:30
Alex Kavanagh c712bf74ee 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: I2d1e40430286b49de7aaeb53366b8c4601c5451d
2022-04-07 17:33:33 +01:00
Alex Kavanagh b688766a50 Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI

Change-Id: If7fb628e65be3398e7ecb808d564b585fd41fb82
2022-02-01 20:11:21 +00:00
Alex Kavanagh bbbfdf21f6 Migrate charm to charmhub latest/edge track
Change-Id: I3437bb58b85ccedf047910c0bf783f56dd438bf6
2022-01-27 20:33:04 +00:00
Hervé Beraud f721b78c22 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: I107cabe4608950da02ef2b89e811791ad912cf7e
2021-12-15 09:47:59 +00:00
Corey Bryant 58fa3cf59d 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: I749b089783627ccbca648c65649cb22e9f471b05
2021-11-17 13:50:57 -05:00
Alex Kavanagh ea13d2827f 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: I2586f92b458a79d4efc9d7ccb12e5a986c959dfd
2021-09-27 10:59:21 +01:00
Aurelien Lourot 15f85f4ec4 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: I6cc20b2ff83886a8878ba0a2972999e5a7b51412
2021-07-22 14:55:32 +02:00
Zuul 9ea002f720 Merge "rebuild - restore c-h proxy env vars for add-apt-repository" 2021-06-15 03:00:04 +00:00
Aurelien Lourot 4a80d347be Add impish to metadata.yaml
Change-Id: Iedf84117b35efb861a7f27bb4a3329452398fbae
2021-06-03 11:14:45 +02:00
Corey Bryant 42451fde21 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I60bb99db99dee0f9d160dcb313bbcda1f788c50a
2021-05-13 09:09:30 -04:00
Zuul a3e3499006 Merge "Test bundles for focal-wallaby and hirsute-wallaby" 2021-05-06 10:43:49 +00:00
Alex Kavanagh 467f9dc029 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: I770babbc0ea9e6568695b30eab1644ceed3f7e82
2021-05-03 16:05:57 +01:00
Alex Kavanagh 31f37279c3 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

hisute-wallaby test is disabled (moved to dev) due to [1].

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

Change-Id: I34b3a2f1f2509a287023659f9172931b345e569d
2021-04-15 18:42:22 +01:00
Alex Kavanagh 0d4bf2d224 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: I72b4edfd23f386af964698e32f7f3aa2db4d8dac
2021-04-03 20:26:40 +01:00
Frode Nordahl c9fa02a6d5
Enable registration of packages with principal charm
For principal - subordinate plugin type relations where the
principal Python payload imports code from packages managed by a
subordinate, upgrades can be problematic.

This change will allow a subordinate charm that have opted into the
feature to inform its principal about all implemented release -
packages combinations ahead of time. With this information in place
the principal can do the upgrade in one operation without risk of
charm relation RPC type processing at a critical moment.

Depends-On: https://review.opendev.org/c/openstack/charms.openstack/+/781487
Depends-On: https://review.opendev.org/c/openstack/charm-layer-openstack/+/781624
Depends-On: https://review.opendev.org/c/openstack/charm-interface-keystone-domain-backend/+/781658
Closes-Bug: #1806111
Change-Id: Ib3239690286dc902eb247edec96b8dca7bf5bee4
2021-03-19 17:49:51 +01:00
Alex Kavanagh 41b55bd2fe 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: I40d0500bc8381c39a2ab0c4c3226dbfac3024f4d
2021-03-02 20:57:25 +00:00
Zuul 65243a7588 Merge "Add new osci.yaml" 2021-02-26 20:50:53 +00:00
Billy Olsen 98fbf3ee4e Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Idb604240eaafcab54740cb2aedff34631ac11e0e
2021-02-19 17:02:21 -07:00
Chris MacNaughton 71a0c82861 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I16e82e0f295a9c0f6f21e4ff343e2f1afda1d82d
2021-02-18 08:38:18 +01:00
Alex Kavanagh fa478aee7e 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: Ie84d7489c03c40392fb5d8eb7e13bae09c9ff9d7
2021-02-17 12:12:00 +00:00
Alex Kavanagh 3bdafbaf95 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: I68471706747d91404d9f4e125908e76de37d0971
2021-02-02 17:08:39 +00:00
David Ames 555fc2b27c 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: I8cbfef31df35d0da0c5981e3459b15aac6048346
2021-02-01 14:08:51 -08:00
Alex Kavanagh 90ff899511 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: I6737ac5f9aaf518d9fda91091699f0d0ed26eb39
2021-01-15 15:58:55 +00:00
Zuul fb07caea84 Merge "Updates for testing period for 20.01 release" 2021-01-14 09:37:45 +00:00
Alex Kavanagh 603a2fae61 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: I458d9236227ad948d9406434a1a48d52f35fb7a4
2021-01-12 15:36:44 +00:00
Aurelien Lourot eb5240f72a Remove Disco and Eoan bits
Change-Id: I02bdd1b0d19a7d70e8f8381b5c53066409051ef3
2021-01-12 13:56:53 +01:00
Zuul 8616277523 Merge "Review README and fix lp1910293" 2021-01-11 13:52:28 +00:00
Peter Matulis 0ee1f1c753 Review README and fix lp1910293
Improve config.yaml

Closes-Bug: #1910293
Change-Id: I7c95672df96ea7fc44d73fd9d01728b6a07d2be4
2021-01-08 14:12:10 -05:00
Aurelien Lourot 5d1b90c2bd Add Groovy to the test gate
Change-Id: Ibe4c4ea4d561068c318be0739607eee4ff45592e
2021-01-07 10:11:31 +00:00
Aurelien Lourot f023fdabfa 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: I568f40bcc0dec34e28b31145d42a1ce401aeb563
2020-12-11 13:57:05 +01:00
Arif Ali ce279129db
Add group_name_attribute as a config attribute
Adding the the group_name_attribute, as this was missed in the previous
review.

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

Depends-On: https://review.opendev.org/c/openstack/charm-keystone-ldap/+/748364
Change-Id: I9fe650704606317b337978ea9d8fec3a09c2b50f
2020-11-24 10:46:15 +00:00
Hemanth Nakkina 65bb510b51 Explicitly define ldap configurations
Add new options to keystone-ldap charm to explicitly specify
necessary ldap configuration values. The default values for
the new configuration parameters introduced in this patch are
empty so the default upstream keystone ldap config options are
used when undeclared.

If the same LDAP config options are specified in
ldap-config-flags and the respective charm config
option, then the value from the charm config option
will be used.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/458
Change-Id: Ib269e74c7d313d9c6d09da29661dd279995dffe4
Closes-Bug: #1832765
2020-11-16 17:46:22 -03:00
Alex Kavanagh 7211b73d2f 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: I1fae329f44078301db65fba876ccd4fa0b3f0f6d
2020-10-14 16:30:47 +01:00
Alex Kavanagh 174687b7e2 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: I4414348e78930fa9562c6adab058ada8ae57a958
2020-09-26 18:34:05 +01:00
Aurelien Lourot b7ebc279c9 Add focal-victoria to the test gate
Also reduce chances of spurious mysql-innodb-cluster "super-read-only"
failures.

Change-Id: I76557e04130c8394d282b730d3823902a288e77b
Partial-Bug: #1882205
2020-09-09 13:41:27 +02:00
Alex Kavanagh 6ac9ddf3d7 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: Icce2e9b80970bd8987bec1c0f68efd3ed22599bd
2020-07-30 12:05:52 +01:00
Zuul 8b85c27c2c Merge "Remove inherited configuration options invalid for charm" 2020-07-20 14:59:09 +00:00
Aurelien Lourot ba2f2c2081 Add Victoria test bundles
Change-Id: Ia20a78726f7eb72e5d060bb9d88607cd3292dc5a
2020-07-15 12:45:38 +02:00
Zuul 17e8df1238 Merge "Stop to use the __future__ module." 2020-07-13 05:29:53 +00:00
Hervé Beraud b61abe5e66 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: I93c0482b258fb379ce144363e8ebe7fc816ddd2b
2020-06-02 19:55:02 +02:00