Commit Graph

609 Commits

Author SHA1 Message Date
Luciano Lo Giudice 0962f230a1 Sync charm libraries
Change-Id: Ic2916be468271eb3ff37b305429f3e4133e734c5
2023-09-13 14:05:13 -03:00
Zuul 213d1055b0 Merge "Add docs key and point at Discourse" 2023-09-04 10:20:51 +00:00
Peter Matulis 9abe25f182 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.

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

Change-Id: I782890f44628a634c7adcf9cdace753c62d6c262
2023-09-04 09:57:41 +02:00
Corey Bryant 6b992ed490 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to quincy
* 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: If59e6c4db7688c0819da2b3feb0c7bda89de6780
2023-08-03 13:51:39 -04:00
Fulvio Galeazzi a2ffd3a497 Add support for CephFS.
Extend ceph-proxy to implement ceph-mds interface, this allows the
ceph-fs to be related. The testing is made reusing the CephFSTests
testing class.

Usage example:

  juju add-relation ceph-proxy:mds ceph-fs:ceph-mds

Co-Authored-By: Felipe Reyes <felipe.reyes@canonical.com>
Closes-Bug: #1922195
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/558
Change-Id: I437dbac9fe018eb2d0ffb87052d61a08aa014473
2023-06-16 18:44:08 -04:00
Felipe Reyes 00b86b28f4 Normalize testing bundles
Summary of changes:
- Drop 'source' override in mysql-innodb-cluster and rabbitmq-server
- Fix 'openstack-origin'

Change-Id: I19faecbcfebdaf5dcf0d0346c5d0b0eed02866aa
2023-06-16 18:11:21 -04:00
Felipe Reyes dc2d4d32cb Charm-helpers sync
Change-Id: I0053f28aaaecc6b9d60dfbccbb7c308c929cb046
2023-06-16 18:11:21 -04:00
Luciano Lo Giudice 093383bb28 Unpin tox version
This unpinning is meant to solve the issues with tox 4.x breaking
all the virtualenv dependencies.

Change-Id: Idd02728e33be4931c7729c218629b7a8430d0f41
2023-06-16 09:33:44 -04:00
Chris MacNaughton 5ce3787fdb Add support for interim Ubuntu releases
- update bundles to include UCA pocket tests
- update test configuration
- update metadata to include kinetic and lunar
- update snapcraft to allow run-on for kinetic and lunar

Change-Id: I583679055cd8add80321282edd7ec12eaa5826fc
2023-03-21 15:28:05 -04:00
Chris MacNaughton 4a5c98fdac fix .gitreview repo reference
Change-Id: Ie8b504a779eef131f72ac8ecb559f35ddd5e70e3
2022-10-19 11:48:57 -04:00
Chris MacNaughton ea30c12fa5 python 3.8 should still be tested
Change-Id: I60fae36a08cd717c7db1d622af45cb9cd53d6a4c
2022-10-12 13:32:44 +00:00
Corey Bryant f7fb2c3693 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: I78b0720e75891a41364ba0ddb82add89c3b77ca1
2022-08-26 18:40:28 +00:00
Chris MacNaughton b66390efaf Remove force-deploy for Jammy
Additionally, Move jammy-yoga out of dev-bundles and
remove Impish test.

Change-Id: Ie82b0f3d3d19a3cd07be133f64a70445e974ad2b
2022-08-12 08:01:24 -04:00
Chris MacNaughton 2750b5591a Updates for jammy enablement
- charmcraft: build-on 20.04 -> run-on 20.04/22.04 [*archs]
- Refresh tox targets
- Drop impish bundles and OSCI testing
- Add jammy metadata
- Default source is yoga
- Charmhelpers and charms.ceph sync

Change-Id: I1e963b2d18aaa8ec61fb5d255f23508879f08e83
2022-04-07 13:58:26 +02:00
Alex Kavanagh 0ff8707cba 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.

Change-Id: I17cb0cfe88be075d79d94edcdd2cea845bf78b8f
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-02-17 12:30:04 -05:00
Hervé Beraud 7cd8f7c31a 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: I33cd69aca44f48af2766c92ede46ff12367160c5
2021-12-15 10:02:04 +00:00
Corey Bryant 05da8ca6ae 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
* charms.ceph sync

Change-Id: I2dda45edafeee8173a9fcb174f3dc18718d664e3
2021-11-18 09:39:34 -05:00
Alex Kavanagh 77c75f62f9 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: Idd5275cb2440ee712dae62b1ef4ba5a6d846135d
2021-09-21 14:32:10 +01:00
Aurelien Lourot e05668674c 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: Ie7f197c3d3ce821a2272844029d071dc5a715de4
2021-07-22 14:52:34 +02:00
Aurelien Lourot f5627a80a5 Add impish to metadata.yaml
Change-Id: I20614430b45cc1919cd21b20c84854a891b4f0ec
2021-06-10 12:08:57 +00:00
Corey Bryant c205f68b7c c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I29bbef00f15c349e29d594d2d7d59086b860338a
2021-05-13 08:45:45 -04:00
Zuul 2ea24eeae5 Merge "Test bundles for focal-wallaby and hirsute-wallaby" 2021-05-06 10:13:56 +00:00
Alex Kavanagh e21e0dc4ea 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: I191a4ac0c66f2e5d36cc941d5eb2809408a89320
2021-05-03 16:03:06 +01:00
Alex Kavanagh e6e8d98302 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] as bundle may
reference a reactive charm.

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

Sync charm-helpers

Change-Id: I01125ce328091db86c757d5ee14e3f3eaa913d73
2021-04-16 10:36:06 +01:00
Alex Kavanagh 284ec35c8d 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: I75107c4fd927f95eb3778b65a2172b0268390feb
2021-04-11 16:51:09 +01:00
Alex Kavanagh 7c01180ba8 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: I493cb80145fe91163d011bc78f30e84f317142de
2021-04-03 20:30:36 -07:00
Alex Kavanagh acd6eedfa9 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: I744188799db42ea9960ea35c1e83e773c6a2ee36
2021-03-02 20:53:11 +00:00
Zuul c54c42bf84 Merge "Add new osci.yaml" 2021-02-24 11:48:19 +00:00
Chris MacNaughton a73633761d Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I16e82e0f295a9c0f6f21e4ff343e2f1afda1d82d
2021-02-23 11:12:57 +01:00
Billy Olsen 2f83bb843b Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Id415916aaa3e89caafa25064ad5a2109c8d9ee57
2021-02-20 19:20:11 -07:00
Alex Kavanagh 6cdbf7f367 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: I309ef298fecfe8d5cb2fd4c3322c3d734094f5d4
2021-01-20 12:20:42 +00:00
Zuul fcee4271a9 Merge "Updates for testing period for 20.01 release" 2021-01-19 09:30:07 +00:00
Alex Kavanagh 05f5c6e7f0 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: I40621954e3108f73b79257755aa518646e52c88f
2021-01-15 16:28:28 +00:00
Alex Kavanagh 7697199615 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: I73cdbc4f9a444cb3bc5e9daa4d1cc038b5ed26c5
2021-01-14 11:11:30 +00:00
Zuul 10889f6c25 Merge "Remove Disco and Eoan bits" 2021-01-13 15:15:23 +00:00
Zuul ebd323d397 Merge "Process requests for radosgw per unit keys" 2021-01-13 11:20:41 +00:00
Aurelien Lourot 1a7a961d96 Remove Disco and Eoan bits
Change-Id: I836636ab55d53429862d344d79c7ff5617313adb
2021-01-12 13:52:28 +01:00
Liam Young dee1f3c86c Process requests for radosgw per unit keys
Process requests for radosgw per unit keys. Ideally the charm
would move to using charms.ceph.utils for the get_radosgw_key
method but this does not work atm. I have raised bug #1899643
to cover deduplicating hooks.ceph v charms.ceph.*

Change-Id: I00f5a58f127baa1f7878b0ddb31b4fa009d9651e
Closes-Bug: #1899634
2021-01-12 11:30:01 +00:00
Aurelien Lourot 500d942ed6 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: I12b3c45b45e0b1d6db16902c81663cbe2ef84d17
2020-12-11 13:54:29 +01:00
Aurelien Lourot bee30372d6 Add Groovy to the test gate
Also sync libraries

Change-Id: I60d6b713c152c14b5af37b5c87308c72408801e3
2020-11-27 14:10:03 +01:00
Zuul 3249ce6585 Merge "Sync libraries & common files prior to freeze" 2020-09-30 07:12:46 +00:00
Alex Kavanagh 5e80697a56 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: I512ef8bbb52c08e782c66450b435a40a76b8a532
2020-09-28 13:51:24 +01:00
James Page 8e74666ff3 Make EC profiles immutable
Changing an existing EC profile can have some nasty side effects
including crashing OSD's (which is why its guarded with a --force).

Update the ceph helper to log a warning and return if an EC profile
already exists, effectively making them immutable and avoiding
any related issues.

Reconfiguration of a pool would be undertaking using actions:

  - create new EC profile
  - create new pool using new EC profile
  - copy data from old pool to new pool
  - rename old pool
  - rename new pool to original pool name

this obviously requires an outage in the consuming application.

Change-Id: I630f6b6c5e3c6dd252a85cd373d7e204b9e77245
Closes-Bug: 1897517
2020-09-28 11:50:28 +01:00
Aurelien Lourot 12682da2fc Add focal-victoria to the test gate
Also add erasure coded Victoria bundles

Change-Id: Ic809edab3d8fb60cb513bfaddd8f1373d969934e
2020-09-07 22:11:24 +02:00
Chris MacNaughton 5e59db8fee
Remove duplicated action files
Closes-Bug #1894600

Change-Id: I74c737480c6ad56d5691689caeb84bca7154be38
2020-09-07 09:17:05 +02:00
Chris MacNaughton 7359b981d6
Ensure that the actions use the configured admin user
Change-Id: I357b26fb585d68d2fbe9bbf21bbf9bfc52ac5050
Closes-Bug: #1893790
2020-09-04 16:58:24 +02:00
James Page a0f71f6bc8 Add support for erasure coded pools
Add test bundle for erasure-coding with check to validate that
pools are created correctly.

Change-Id: Ic6f959b2e598f7f9cfa13bd60fdab62a22e03b59
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/396
2020-08-28 11:16:07 +01:00
James Page f84e71392c Use charms.ceph for Ceph broker
Drop use of local copy of ceph_broker.py in preference to the
centrally maintained copy in charms.ceph.

Change-Id: I89aa0f9fc7d5d2d480ebabc1cb17a86dcbef21bf
2020-08-28 11:15:03 +01:00
Peter Matulis 8cc52727a2 Fix actions section of the README
Change-Id: If12cffe0ee061710030613e1a13a0196c7b878e6
2020-08-04 14:18:59 -04:00
Peter Matulis 18339304d9 Improve README
This improvement is part of a wave of polish
in preparation for the launch of the Ceph product.

Change-Id: Icec5faee1c9e693aa149d571f322e66a0899a14c
2020-08-04 15:52:46 +00:00