Commit Graph

76 Commits

Author SHA1 Message Date
Alex Kavanagh 6ba683d23e 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: I1d277dfe9b80d550b83eb9e4814cf43b4e55bf30
2024-02-24 19:57:58 +00:00
Zuul 7b34a3124e Merge "Add docs key and point at Discourse" 2023-08-29 18:37:43 +00:00
Zuul 7a906d06f4 Merge "Ensure get_requests_for_local_unit doesn't fail on incomplete relation" 2023-08-16 16:04:31 +00:00
Alex Kavanagh 0fd040fa0d 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: I54312c4216337a4e16340ec2b7f1bc6095137337
2023-08-04 18:49:19 +01:00
Corey Bryant 523e876111 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: I24e217fa968b71d30d3affc8202a0231df80f260
2023-08-02 14:24:30 -04:00
Jadon Naas 2685a63ab0 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: I8ce65b31e286ee9b081a1dc5b7f27bde8a2ba5d2
2023-06-29 16:02:45 -04:00
Felipe Reyes 7f5e0e5bd1 Prevent update-status to run unrequired handlers
Before the update-status hook would run handlers that are expected to
run when the configuration changes or relations added/removed.

The update-status hook doesn't hold the machine lock which makes
concurrent hook executions possible and seen in the gate where for
example multiple "apt-get" executions trying to acquire dpkg's lock.

Closes-Bug: #2016893
Change-Id: I63bfd9903057cbea2db8de4f1b612601aacb568d
2023-04-19 09:56:31 -04:00
Corey Bryant 09503a4d34 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: I90a8235e29b42d6cd445ead387ae531988b578e6
2023-04-14 15:02:33 +00:00
Corey Bryant 909a96154b 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: I532edd57f33ef93a9fb99f062bf4bb88cd406651
2023-03-07 20:35:25 +00:00
Liam Young 841d9a3c66 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Id3f5420d56d570626674e85d4987efcd3a499b50
2023-01-17 09:26:56 +00:00
Alex Kavanagh cf50bda0b1 Ensure that kinetic/22.10 is enabled
This patch adds kinetic to the metadata.yaml and ensures
that a run-on base for 22.10 is added in the
charmcraft.yaml

Change-Id: Ibaf707048e9acad8f6a900c821744b1901a3bb3b
2022-08-31 20:33:04 +01:00
Corey Bryant cef9cdd848 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: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
2022-08-26 18:40:43 +00:00
Alex Kavanagh 1d94a8a668 Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: I1aecedb529b622cb34a5cf057e7f92ddc086f445
2022-04-18 21:09:44 +01:00
Alex Kavanagh fac3210e92 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: Id47bea856f31c318f8e3f0c8c678fb7e11b826f4
2022-04-04 16:20:19 +01:00
Alex Kavanagh 3e6e62a1ea 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: I2780ed9642105a4491df14dcf35c6be1cd481898
2022-02-01 21:08:37 +00:00
Alex Kavanagh ffa64dba86 Migrate charm to charmhub latest/edge track
Change-Id: Id49e670d2d2b5bd755ade12d73863bfc7cc33412
2022-01-27 22:11:19 +00:00
Hervé Beraud 31541c9b19 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: I3a717050803c897395e37e3093be6cb9dc73ef45
2021-12-15 14:27:15 +00:00
Corey Bryant 190d8a05f4 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: I3c7ce7e7254cabb72a7455f9ecdf71ed9293afb3
2021-11-17 13:54:59 -05:00
Alex Kavanagh d7897237f5 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I15112d21e7d79336cdaee84e0792cb0586dc9013
2021-09-29 09:38:17 +00:00
Aurelien Lourot 6535991f12 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: I934163630231b612b8b56597f1ba068cb3b7ddf8
2021-07-22 15:00:38 +02:00
Ghanshyam Mann 630914404b Moving IRC network reference to OFTC
Change-Id: Ie735d38c221fc63eb431c5c5f54ce1abc2316a02
2021-07-08 18:30:52 -05:00
Zuul 9d679d9603 Merge "Add impish to metadata.yaml" 2021-06-07 08:03:29 +00:00
Aurelien Lourot 20500c543a Add impish to metadata.yaml
Change-Id: Ia3f565a876cb6e06b61a93434a29979d9beadf6f
2021-06-03 11:24:57 +02:00
Corey Bryant f37a2fa9c5 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: Iea188f05260bf42c8fc22a757cf22e6126f86416
2021-05-13 09:13:25 -04:00
Alex Kavanagh 26dc99fd37 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: I1ee4a15c2ac3b9d1644ed52a2654b3018cd68b50
2021-05-05 16:23:25 +01:00
Alex Kavanagh 50ab2b6c54 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: I738f6b48d939a4437d815229a7e5e9de556992a9
2021-05-03 16:10:43 +01:00
Corey Bryant f7b66f18de Add wallaby package version
Change-Id: I80acc154eea0412a4b10e209892f51affbfbeb57
2021-04-13 13:28:10 +00:00
Alex Kavanagh f40a75ecbb 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

* lock oslo.i18n < 4.0.0 if python_version < 3.6 as version 4.0.0 drops
  py35 support.

Change-Id: I9af5639d69bfcea1353a80e0e01b81dfea00abb0
2021-04-06 20:23:31 +01:00
Chris MacNaughton 849d111411 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: Id44d2037d5743bc882388141d726194c51d82fbf
2021-03-05 18:26:59 +00:00
Alex Kavanagh 8cadc00efe 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: I7e7ade5b85fbc379f49877227ac4288f2725d998
2021-03-02 21:04:19 +00:00
Peter Matulis 647e1b0fdc Review README
* Improve Overview and Deployment sections.

* Apply README template.

* Add section on upgrading to Train, linking to CDG.

Change-Id: I0ad22e07d8837e7e73bb02cda4f879888004daca
2021-02-23 22:17:46 -05:00
Alex Kavanagh 758c228f33 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: If18376ad944096289fa4899596d73d456425ef56
2021-02-17 12:18:09 +00:00
Alex Kavanagh a2ead078ab 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: Ib8c80f78cf03740e9789ebcd1d8f85fee034bd90
2021-02-02 17:13:29 +00:00
David Ames da1791c111 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: Ia68c6a409f63aacbabb961b7faf97414e6682587
2021-02-01 14:13:00 -08:00
Alex Kavanagh d134aecbd2 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: I594d20e11aa45d3a1da330f3ce18fa5fe551ca10
2021-01-25 11:04:30 +00:00
Alex Kavanagh ff119ec034 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: Ib76b797a0f09fca5c9881d442e3057c30916ca9d
2021-01-15 16:08:35 +00:00
Zuul 61a907b555 Merge "Updates for testing period for 20.01 release" 2021-01-13 20:29:00 +00:00
Alex Kavanagh 86f80bea54 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: I8f131a50ba3084ea61d59eccab0e9ae37d9f84b7
2021-01-12 15:43:41 +00:00
Aurelien Lourot dd42982885 Remove Disco and Eoan bits
Change-Id: I6b5cc3c95da34e93f03f52632fc59615d27b4dfe
2021-01-12 14:03:44 +01:00
Alex Kavanagh ba1aa6e51a Add placement as a required interface
At the moment, if you only add relations for shared-db and
identity-service then the charm will come out of blocked to ready.
However, there is still no placement (to nova-cloud-controller) and so
the cloud will not work.

This patch makes the charm complain if it has no placement relation
made to prompt the operator to add the relation, or indicate if it has
been missed out of the bundle.

Change-Id: I3d34e6ec413220e2359198583975385bc98db563
2021-01-07 21:42:09 +00:00
Aurelien Lourot 0eea19085a 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: I0f1ee09f7bced601434bd91cc855f8399453d7d3
2020-12-11 14:03:12 +01:00
Aurelien Lourot ff1ae394d3 Add Groovy to the test gate
Change-Id: I2c04ac1947e4eddacbf60eec675cd5a739b1e516
2020-11-05 12:54:11 +01:00
Alex Kavanagh 1740c1c9e1 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: I8239bf7d7dfb5555598429525b7ffa711bca73f8
2020-10-14 16:39:20 +01:00
Zuul ada9af31c4 Merge "Fix race in http <-> https switch" 2020-10-02 14:20:44 +00:00
Liam Young c37081f441 Fix race in http <-> https switch
If the charm switches the service from http to https (or vice versa)
and the default identity-service handler has already run during this
hook execution then keystone is not informed of the change until a
subsequant hook execution. This subsequant hook could be
update-status as the charm currently does not disable any of its
methods during update-status hooks.

Change-Id: I5f11c2439b74f893b757951cab3da4d49888375c
2020-10-01 15:19:06 +00:00
Alex Kavanagh ddb12d446b 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: Id87dd403aafbfec18b9a463468e9712ef607ceab
2020-09-26 18:39:36 +01:00
Liam Young fda2c40cc4 Pass certs interface to configure_tls
If the certificates interface is present then it should be passed
to configure_tls otherwise it is ignored.

Change-Id: I3ba5432d3fd4f9481dadb49586a7bab938a0c4ff
Closes-Bug: 1896227
2020-09-21 11:02:31 +00:00
Aurelien Lourot 2399854141 Let placement log to syslog
Before this patch only placement-api accesses and errors were
logged. placement's internals weren't logged anywhere.

https://docs.openstack.org/placement/latest/configuration/config.html

Change-Id: I98a32cdcdaf05d72da82dd5bfa85f2f8e27aa35d
2020-09-18 10:52:24 +02:00
Aurelien Lourot 96ef8424c6 Add focal-victoria to the test gate
Also sync latest release-tools templates

Change-Id: Iea3536fc83e5ab5865ecf10ca04c7914a8bac2be
2020-09-01 18:38:16 +02:00
Alex Kavanagh ad8cf2c3a4 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: I487b03725a7c0f14ac51624abde83ddd5c8080a1
2020-07-27 20:58:45 +01:00