Commit Graph

205 Commits

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

Change-Id: I61f3e21566b6df67ec5cb631041203ed970565a6
2024-02-24 20:11:03 +00:00
Alex Kavanagh 2cc6041cd3 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: I23a62754654b725fffe8e40714a9aae391e2053c
2024-02-12 18:18:37 +00:00
Alex Kavanagh fa3d9da753 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: Ie10fc5267e5070a7fa24318ea39ab9ba737b94ba
2023-08-04 18:45:46 +01:00
Zuul 47e6937645 Merge "Add docs key and point at Discourse" 2023-07-28 15:40:11 +00:00
Corey Bryant 9aaf2d6f88 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
* patch charmhelpers.core.hookenv.is_subordinate due to new
  release handlings in charms.openstack:
  fd042afdf1

Change-Id: I9269ad8b11b2ad5ee8a9868bf23ab1710758c883
2023-07-25 16:39:02 -04:00
Jadon Naas ad6e27f8fe Add docs key and point at Discourse
Add the 'docs' key and point it at a Discourse topic
previously populated with the charm's README contents.

When the new charm revision is released to the Charmhub,
this Discourse-based content will be displayed there. In
the absense of the this new key, the Charmhub's default
behaviour is to display the value of the charm's
'description' key.

Change-Id: I3304346d6eb8db889af385a0ff8421fbcf181995
2023-07-18 15:50:28 -04:00
Corey Bryant 4cba6b8ebe 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
* Add libpython3-dev to allow the charm to be built. This
  fixes a missing dependency with Cython

Change-Id: Ic38e4fe77cec5af7e72d47b54dac2d66948af9b1
2023-04-14 14:58:08 +00:00
Corey Bryant 83f29f5f89 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: I2df3dc8ec86a5e41fab7e5bd463a9d708d95fe88
2023-03-07 23:01:06 +00:00
Liam Young a557ef0ec7 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Ia99b036f893d425265a91e41bc4fe4853c2918b2
2023-01-13 14:00:18 +00:00
Corey Bryant ac5e1fdc7f 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: I5a88bdb17a93074921b3aa13a3bd0d56478b5bfb
2022-08-31 18:41:31 +01:00
Alex Kavanagh d245c596ee Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: Ie40871de122b9f203383b541205e82d2137bde3f
2022-04-18 21:05:11 +01:00
Alex Kavanagh 2ee4b81a48 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: Ideb0b18808ef8ccd17ee8e6c8cb399b3e9798ecc
2022-04-04 15:48:36 +01:00
Billy Olsen 7d0aba3c92 Switch to reactive plugin
Recent local tests using the 1.4 version of charmcraft shows that the
aodh charm can build fine without the work-arounds in place. This change
switches the charmcraft.yaml file to use the built-in reactive plugin.

Change-Id: Ib8d71a5f295b6cde90c6b10c22d419cfb14038ed
2022-02-21 15:14:54 -07:00
Alex Kavanagh b44e3bd667 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: Ic5d06e404f307409db960a98538310e1e0e80308
2022-02-01 17:47:21 +00:00
Alex Kavanagh 827dda5cb4 Migrate charm to charmhub latest/edge track
Change-Id: I47ab7533012a977ecda2e9b87ae8a09304ee24c7
2022-01-27 18:13:44 +00:00
Hervé Beraud ed42763698 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: I0417bae3d6311c9dcee53ef974ed49270adb4fc1
2021-12-15 14:37:55 +00:00
Corey Bryant ac03d84490 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: I484a23091ebaf2fea90e2d89c138208e03367137
2021-11-17 13:44:46 -05:00
Alex Kavanagh fb30411a8c Add xena bundles
- add focal-xena bundle
- add impish-xena bundle
- remove groovy-victoria bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0
- add missing nrpe charm to wallaby+ bundles
- add missing aodh openstack-origin option for ussuri+ bundles

Change-Id: I3eaf6f66d3ac57f992e15cd26dd76e19bb399674
2021-09-28 17:45:39 +00:00
Aurelien Lourot be7624f36d 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: I73e9a017fa9a0218dc7ff2e107ffe52eddd79483
2021-07-22 14:51:18 +02:00
Zuul ff63e1618d Merge "rebuild - restore c-h proxy env vars for add-apt-repository" 2021-06-15 03:03:34 +00:00
Zuul 20fe970bf7 Merge "Add NRPE checks for services" 2021-06-08 06:27:25 +00:00
Aurelien Lourot 9e64779825 Add impish to metadata.yaml
Change-Id: Id4c0fe4a9281370a4f46df1778bd5b9da6831e1e
2021-06-03 11:02:03 +02:00
Corey Bryant 75bb3bc413 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I897c09d45dd677f3f091be607c16cc38c0e8480c
2021-05-13 09:07:33 -04:00
Alex Kavanagh f09fc6184b 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: I0191fb810ae5eb8e7993cd0cb29464f79aeaefaa
2021-05-03 16:01:57 +01:00
Zuul 8ac1b1bc13 Merge "Test bundles for focal-wallaby and hirsute-wallaby" 2021-04-21 10:12:23 +00:00
Alex Kavanagh e813584d6c Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby supporto.

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

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

Change-Id: I3d232efea8c316cf841491de944649858954afc2
2021-04-15 18:03:51 +01:00
Corey Bryant 8dbcb09a8f Add wallaby package version
Change-Id: I363e125ad8086fef1710240b7c488f9691c3a7ea
2021-04-13 13:31:45 +00:00
Alex Kavanagh 945e2f44bb 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: Ibe9da7a3f7ae9e364291c28c111404678e7e2f62
2021-04-03 20:20:17 +01:00
Xav Paice fbb7777638 Add NRPE checks for services
Adds the nrpe-external-master layer and checks for services managed by
this charm.

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

Change-Id: I9109078bb0d07159de2024cb836d659a533e50c7
Closes-Bug: #1750486
2021-03-08 10:13:40 +13:00
Alex Kavanagh 729c46410c 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: Ie57eb5b9fffddf61a39f23b193b4fb823c5cd1a2
2021-03-02 20:51:05 +00:00
Zuul 8312e2efdb Merge "Add new osci.yaml" 2021-02-26 10:06:35 +00:00
Billy Olsen 4fbb0df35c Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Ic4623526fcbd758adcd9ee0eb4760b41c801bce1
2021-02-19 16:45:39 -07:00
Chris MacNaughton 12dbfc1b90 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I1bba556eebc3081e890989507b0ccfe6f029c3a6
2021-02-18 08:38:17 +01:00
Alex Kavanagh 376726c8d1 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: I90d72e403eea235cd91018cbff488acfccca3ec9
2021-02-17 12:06:38 +00:00
Alex Kavanagh 62aa75b7ab 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: Ic5a54667d86a340d2eb12caf6b67faa4e86447f0
2021-02-02 17:04:16 +00:00
David Ames f2a73ffb38 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: I4c7a4b7a22c749e667ed5114fe66c8d57e9b7e36
2021-02-01 14:06:38 -08:00
Alex Kavanagh 8483a2cf04 Rebuild for haproxy address bug 1912505
Ensures that haproxy.cfg is written with the correct
space address for peer backends.

Related-Bug: #1912505
Change-Id: Ib13b503763773b702d810d8a30a962337e011949
2021-01-25 11:02:00 +00:00
Alex Kavanagh f9ded263bc 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: Ia267091ee3002a3de55b2f01ca49f4e9651a727b
2021-01-15 16:26:33 +00:00
Aurelien Lourot b7abbd905a Remove Disco and Eoan bits
Change-Id: I78304050f8d9c73c3774f041e5dcbac3f9522c25
2021-01-12 13:49:28 +01:00
Aurelien Lourot 911730b11d 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: I547dac73e602eafefd34db2be8c2580f18740056
2020-12-11 13:52:02 +01:00
Aurelien Lourot 3e1d3fb06f Add Groovy to the test gate
Change-Id: I71ad0521eb8390b79385595f4b026885044dfd0f
2020-11-05 12:42:23 +01:00
Zuul fe9eaa0a60 Merge "Switch to python3-apt in Victoria" 2020-10-16 13:07:48 +00:00
Corey Bryant 83cf6e507b Switch to python3-apt in Victoria
The python-apt binary package is removed in Ubuntu Groovy.
Switch the charm to python3-apt.

Change-Id: Ibef912c4e7099dfa8d189da717d14e59685a814b
Closes-Bug: #1899680
2020-10-15 12:39:00 +00:00
Alex Kavanagh f19fb96c98 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: I1d893c1f96794cca54875198c28a1e512716cea1
2020-10-14 16:07:14 +01:00
Alex Kavanagh 0e6c47a625 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: I464fa7903727af1e8f6d6d888c6d30f2b9d4ad79
2020-09-28 13:13:35 +01:00
Aurelien Lourot 9d52c0cab1 Add focal-victoria to the test gate
Change-Id: I72bb1b2c00ecc4ee4b8844cdefca5e102ae24a1f
2020-08-28 14:23:54 +02:00
Alex Kavanagh a39f4738c3 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: Ib02fc1203d1e20f4cdc21a3a5e0bbdb7b590b182
2020-07-27 20:48:13 +01:00
Corey Bryant 95a5896b5e Add victoria package version
Change-Id: I759c391307a88e6c9a8a19c6dce1cad7c01029b9
2020-07-13 18:35:53 +00:00
Zuul 22ec72fe6c Merge "Add Victoria test bundles" 2020-07-13 13:21:15 +00:00
Zuul 0a5c3c34e6 Merge "Stop to use the __future__ module." 2020-07-13 05:39:42 +00:00