Commit Graph

217 Commits

Author SHA1 Message Date
Alex Kavanagh 846cd78b56 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: I000d9f2039ccab2ec5ef60cc3b55fe1d3201f8b6
2023-08-14 10:11:36 +00:00
Corey Bryant 8af2a56fac 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/edge

Change-Id: If0c4981f0f98cd74257b76f6527c706ef8913ca6
2023-08-04 21:15:35 +00:00
Corey Bryant 4c6cef4b70 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: I463ac3b04112941489a5211f75e8e24db0aa82e0
2023-04-14 14:49:16 +00:00
Corey Bryant e294222ae3 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: I4aba961c11a7fa774f134e65ad1a7225fbc4fd46
2023-03-14 16:25:28 +00:00
Gabriel Cocenza b33b6a213f This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default)

Closes-Bug: #1880610
Change-Id: If7841f710d0dfffdc7ee6b424cb77fc34aeae823
2023-03-06 14:01:57 -03:00
Gabriel Cocenza 5c64f4617d Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: Iecd83b01980d3b9f25da1f5594a009990ef94307
2023-03-06 10:59:32 -03:00
Corey Bryant e117319dfb 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: I1a250a0591c15971840bbd6130c7cff3822eed4f
2022-09-06 17:15:36 +00:00
Alex Kavanagh 51da10c64e Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: I82c318ab9241e491543a4994726069a392c032e4
2022-04-18 21:06:33 +01:00
Alex Kavanagh 9183e9a91b 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: Ic853bb3a98d1cafba9304cf19ff2c4ecb1df1104
2022-04-07 16:03:10 -04:00
Alex Kavanagh dbfd1a6597 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: Ie6e4716482a1043d4936b1343b1050fc88e54403
2022-02-01 20:01:33 +00:00
Alex Kavanagh 7ec01a4571 Migrate charm to charmhub latest/edge track
Change-Id: I382630e817eeedceab555cab8aaa70bd6567e2ab
2022-01-27 20:20:56 +00:00
Hervé Beraud 7d3ea76ca8 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: I991fa5afc63c09fcb3f0982c08c815d5561b7f07
2021-12-15 10:15:54 +00:00
Zuul e64d226108 Merge "Additional test updates" 2021-11-22 11:35:44 +00:00
Corey Bryant f6c9981fe8 Additional test updates
* drop xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: I8115cc36ef475786582be92d707a98d7f691dea1
2021-11-17 14:47:11 -05:00
Alex Kavanagh 513bc9d91c Remove 'jammy' metadata - unblock gate
The charmstore doesn't accept charms with jammy metadata yet.

Change-Id: If1fe74367ce23b13fe3fc2dd9b55a9b74d6bf797
2021-11-12 11:03:13 +00:00
Corey Bryant dbd399354d Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove groovy bundles

Change-Id: Ic43f7c55f6b71ca8835d89629284de313290a62f
2021-11-09 10:27:03 -05:00
Alex Kavanagh 80f5e3263e 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: I1436115f36c27ebe10b104f4c3b1b0ede5341ab5
2021-09-23 10:56:09 +01:00
Aurelien Lourot 9f4392cd5a 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: Icb581f11567d9fdc277d6cbaf5cd8ce73f469351
2021-07-22 14:54:26 +02:00
Zuul d4e1c083cc Merge "Add impish to metadata.yaml" 2021-06-18 16:55:17 +00:00
Aurelien Lourot ce23b7957e Add impish to metadata.yaml
Change-Id: Ia87c1c6a6f5023a51c1590f000e0178085b4fb33
2021-06-03 11:12:34 +02:00
Corey Bryant 432a733a37 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I408bb3da8e246b4408f4d95337e93ae7020ba1f7
2021-05-13 09:08:57 -04:00
Alex Kavanagh 51ba22235f 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: I4df3a7b4e1ab5aa7660424c4713f175df9f3f711
2021-05-06 09:49:48 +00:00
Alex Kavanagh 33fea30a1e 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: Icb27ed77798c9a4c1389143d6b61fb5205983b16
2021-05-03 16:04:48 +01:00
Alex Kavanagh 9fde55f92f 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: I3a9cafd1237777b4897badc8b0e00b598bcbc1e0
2021-04-08 14:38:39 +00:00
Billy Olsen 66703ce214 Rebuild to pick up charms.openstack change
Rebuild gnocchi charm to pick up the charms.openstack change which
creates the ceph pool based upon the name of the application deployed
rather than the name 'gnocchi'.

Closes-Bug: #1918821
Change-Id: Ic57c75a77fe0e6c9b9f37003a0f4f6af87e3bdf9
2021-03-17 11:00:41 -07:00
Alex Kavanagh 7c81be97b2 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: Ia7ef1f933d765981ab8075223728471c51751576
2021-03-02 20:55:54 +00:00
Zuul 34bf472bf4 Merge "Add new osci.yaml" 2021-02-24 12:13:29 +00:00
Chris MacNaughton ee22dae1d5 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I16e82e0f295a9c0f6f21e4ff343e2f1afda1d82d
2021-02-23 10:42:20 +01:00
Billy Olsen b934032825 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Iebbe6d4bf22c7596832542852fefbfaed36cc718
2021-02-19 17:01:36 -07:00
Alex Kavanagh 5fd09db09c 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: If3e84c2dd4db8643b6f3c61426fdc5ffa455faf2
2021-02-17 12:10:32 +00:00
Alex Kavanagh 710ef8118a 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: I8273f8cca5f7abf3945d6e0c653da62a3f6623cc
2021-02-02 17:07:31 +00:00
David Ames b68347711c 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: I9bed10f4d74064140fd39b73da0fcc3def2009b6
2021-02-01 14:08:17 -08:00
Alex Kavanagh 85ae36a708 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: I725daa9d346cbc8f49f76bbecdbd7aaff275b881
2021-01-25 11:02:50 +00:00
Alex Kavanagh 0caad88377 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: I0bf71eae53cdce8f109d40b6428f4a3e19061117
2021-01-15 15:58:34 +00:00
Zuul 694d684b5a Merge "Updates for testing period for 20.01 release" 2021-01-14 09:38:01 +00:00
Alex Kavanagh d5163360f5 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: I11b97634ce279047658b399718b1f4b1cc51e548
2021-01-12 15:34:13 +00:00
Aurelien Lourot da8a5355c1 Remove Disco and Eoan bits
Change-Id: Id1252a7a3f943c859fd7dd4f76736035e60fa5a0
2021-01-12 13:55:32 +01:00
Aurelien Lourot e8ba4d06bc Add Groovy to the test gate
Change-Id: I3cea0f3331c225b030c3ff458150454d56f5d779
2021-01-07 10:11:55 +00:00
Aurelien Lourot 06f6e7a0f7 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: Id3c612d5462b96f3ac19a48473649d6ad6d0aa98
2020-12-11 13:56:11 +01:00
Frode Nordahl c0d4083039
Add blurb about Ceph BlueStore compression
Change-Id: I3ec8397e2347e2f4efe835518d787026b231f047
2020-10-20 13:14:22 +02:00
Alex Kavanagh 77b6643409 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: I263e00153e3d81f4dabc520ee6f52dfc83bced62
2020-10-14 16:29:35 +01:00
Zuul c8ceb21bf9 Merge "Add Ceph BlueStore Compression support" 2020-10-07 13:18:01 +00:00
Frode Nordahl d8eb737046
Add Ceph BlueStore Compression support
Ceph Bluestore Compression is a post-deploy configurable option
and allowing to update the broker request is required. Drop code
that gates the sending of pool broker request, the original issue
has been fixed in the interface code and it is now safe to call
multiple times.

Unpin flake8, fix minor lints.

Change-Id: Ib8a209fffddc882c4b42a620f284a0d0504a749f
2020-10-06 13:18:07 +02:00
Alex Kavanagh bedc0d7a8d 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: Icf6ef2ae4b845f4dc612a5d949144eb5c11030b1
2020-09-28 10:17:48 +01:00
Aurelien Lourot a1b7e7e1d3 Add focal-victoria to the test gate
Change-Id: I426990072d0a04a8fbbf01767f37ce8eb1523359
2020-09-07 16:53:10 +02:00
Aurelien Lourot 0ee741575c Fix storage-ceph-relation-joined error
TypeError: 'str' object is not callable
After recent interface change

Change-Id: I794224b5d0750e100cdb62d1b03140b87e117ea8
Closes-Bug: #1893445
2020-08-29 12:53:04 +02:00
Zuul 6c11e92bff Merge "Stop charm running handlers during update-status" 2020-08-21 15:14:33 +00:00
camille.rodriguez 6820332c80 Add trusted-external-ca-cert option
To connect to an external S3 endpoint with encryption,
a root CA needs to be installed on the gnocchi units.

Func-test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/393
Change-Id: I50fd881400d4c1bf4beaa70d75af34c28c98ea41
2020-08-20 12:25:40 -05:00
Alex Kavanagh 88e450a6bb Stop charm running handlers during update-status
The update-status hook is supposed to be lightweight; prior to this
change the charm was running all of the handlers including a no-op
checking for upgrades to openstack.  This patchset builds on the
depends-on patchset and gates the update-status hook against those
handlers.  Note that update-status is handled using the default handler.

Depends-On: I7ca97db646ada95d7f5541ca4e2cf14013c0d7a6
Change-Id: I1e14e609567d00bed6e8bb755acabd08c1113469
Closes-Bug: #1824119
2020-08-20 14:19:22 +01:00
Peter Matulis 074527a303 Improve README
Improve existing instructions and wording.

Apply README template.

Change-Id: I9327345b70d682948dfe2e7f8e67c0f5b00cebbb
2020-08-04 12:47:59 -04:00