Commit Graph

323 Commits

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

Change-Id: I83c0ff8af444c1fd807855077d0b4d9997ab9b16
2024-02-24 20:11:18 +00:00
Alex Kavanagh f25fe722f8 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: I0a38c624cc501b22c19ec69f4e50d6fbf5f3a24b
2024-02-12 18:19:08 +00:00
Felipe Reyes fba26a326c Add jammy-bobcat-ec testing bundle
Change-Id: Id86b01a79f7dade25b3bd0a25c8c0bde55360c7a
2023-11-03 10:11:09 -03:00
Alex Kavanagh f8ebb908d7 Improve platform mocking
Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.

Change-Id: Ifda8aa2675b4a756109254f62b9a600c42679cac
2023-10-25 14:40:56 +01:00
Corey Bryant eb954d6706 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: I811047188b2ef56b1b59cc1e02cb3b17943bf919
2023-08-02 14:13:08 -04:00
Jadon Naas 0536c8a529 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: I2f0e316697aef630a321c6fca1553d337b04ddf6
2023-07-11 16:09:55 -04:00
Zuul 938faddf60 Merge "Apply README template" 2023-05-19 18:54:54 +00:00
Corey Bryant a973d9351e 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: Id4b79992d0a5220fa8013da03656e6b676d27967
2023-03-29 21:01:48 +00:00
Corey Bryant 558a95df94 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: Ibceaa9d30d3d4a9a4e67fe5e45446b94f1d2e064
2023-03-08 13:22:36 +00:00
Liam Young 795b91ed29 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I5555e7d3fd49ed3440a11c632f34323bd820b302
2023-01-16 18:05:06 +00:00
Chris MacNaughton ccb648626f cinder-ceph has no need for full ceph functional tests
Change-Id: I09e2cd57889b55b965df019cd8dc37c65d3a9287
2022-10-11 16:41:54 -04:00
Peter Matulis eeb4c91c9f Apply README template
Change-Id: I177aa30a86fa26d8bf9d4b2c543637c1c42124be
2022-09-15 17:12:55 -04:00
Alex Kavanagh d86089f18f 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: I9107920cf997f6537b722e1bc4db9188fa966019
2022-08-31 19:50:28 +01:00
Corey Bryant 0eeb90b755 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: I782ea5c502b7bc0eb9941c7eb8d4b830f07b218a
2022-08-26 18:40:31 +00:00
Alex Kavanagh a8cfbe21f7 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

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/751
Change-Id: Ia285c2d834cd0b9ab97fc944370172631995b83f
2022-04-13 15:14:56 +01:00
Alex Kavanagh 5f86b1cb19 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: I8a57a9ae84668d67dd29dd819152716b366461a4
2022-02-17 12:30:07 -05:00
Alex Kavanagh ff00233cff Migrate charm to charmhub latest/edge track
Change-Id: Iaea6a19a806aeddd6551cdca3120c4d115b5a4cd
2022-01-28 20:30:27 -07:00
Corey Bryant 85b46bb1b6 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: I315a7941cd6c5eaea698657af122adb221f5647f
2021-11-17 13:49:42 -05:00
Alex Kavanagh 12dc316716 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy bundlest
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ie1c6883cd66e128a10866d9b83975b2d7ecc343b
2021-09-30 13:29:08 +00:00
Aurelien Lourot c1835063b5 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: I8073fcd19b850a66e8a855b86614773e089fd017
2021-07-22 14:53:30 +02:00
Aurelien Lourot 848f02c103 Add impish to metadata.yaml
Change-Id: I662bfcdfed9c206f8e27ceb3c91e8505ca2ceb6e
2021-06-23 10:02:44 +00:00
Zuul 52d3574f49 Merge "c-h sync - restore proxy env vars for add-apt-repository" 2021-06-15 03:05:39 +00:00
Zuul 90c7315379 Merge "Add support of a common volume_backend_name" 2021-06-08 06:38:39 +00:00
Corey Bryant dbfe6e91bd c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I0964a56a335d27213b8d2fa4f91b5b6c4f3c6e0c
2021-05-13 08:46:17 -04:00
Alex Kavanagh 1326664ee1 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Sync libraries.

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

Change-Id: Ib3056ce7f712514b035d9af95a6a6ac7f834531c
2021-05-06 10:24:50 +00:00
Alex Kavanagh 9d959b54ec 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: Ic5760af94bbc62f33ac5202711857b8a65f2600f
2021-05-03 16:04:07 +01:00
Zuul 33746add20 Merge "Add note about lack of upgrade path" 2021-04-27 21:14:45 +00:00
Alex Kavanagh 5aa0f462b0 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: Ica9283d49eb57e127471bdfa8847fa0ea37d580f
2021-04-11 16:52:22 +01:00
Peter Matulis bea6dd54b1 Add note about lack of upgrade path
It's not currently possible to upgrade to the
cinder-ceph way of doing things with a cloud
that relates cinder and ceph-mon directly.

Drive-by: Apply README template

Related-Bug: #1727184
Change-Id: Iec6caa0ba778fb3a17aba0fea357b05f68ee22be
2021-04-07 19:14:27 -04:00
Alex Kavanagh e9acf917dd 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: If7594a71715a0c8ea268ceb9a576f54d85c8200c
2021-04-03 20:23:45 +01:00
Nobuto Murata d9873fd22c Add support of a common volume_backend_name
Previously, we didn't have a control over volume_backend_name other than
the default app name in the Juju model. A common backend name to
multiple backends with the same character is useful because those can be
treated as a single virtual backend associated with a single volume
type.

Change-Id: I4b57f7979837d21a1b116007f3da707ee154792b
Closes-Bug: #1884511
2021-03-30 15:10:14 +09:00
Zuul 709b184259 Merge "Add new osci.yaml" 2021-03-19 11:28:26 +00:00
Chris MacNaughton d88a86f9cc Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I16e82e0f295a9c0f6f21e4ff343e2f1afda1d82d
2021-03-18 16:36:35 +01:00
Alex Kavanagh 8999bd8f8a 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: Iaf475b79232e651b5f236a6e6a36e54005fa9e2d
2021-03-02 20:54:35 +00:00
Billy Olsen fdc7a1da3d Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I961f8a4c17903cf9cca00d5fd03f612e61cec3c1
2021-02-19 17:00:40 -07:00
Alex Kavanagh 165da3b811 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: I7deee35df63f8f17bc1da5c4f303bef9f227bb9b
2021-01-20 12:23:40 +00:00
Alex Kavanagh a19d656421 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: I9f252f378e4c76e6c44acf3e8a690cb39a299d30
2021-01-16 12:52:41 +00:00
Zuul 5b73acf8f1 Merge "Updates for testing period for 20.01 release" 2021-01-15 20:19:32 +00:00
Ionut Balutoiu b8efc0e698 Fixes for ceph-replication-device relation
* Re-trigger `ceph_access_joined` from `ceph_replication_device_changed`.
  Without this, we could end up with incomplete `ceph-access` relation
  if `ceph_access_joined` is executed before `ceph_replication_device_changed`.

* Seed `replication-device-secret-uuid` early in `config-changed`, to make
  sure that it's set if `storage_backend` is executed before `ceph_access_joined`.

* Set `secret_uuid` as part of the `replication_device` config in the backend
  config. Without this, Nova won't be able to access the proper secret for
  the Cinder Ceph volumes, after a failover.

Change-Id: Ic023d05d5d17a663e1719de393bdd15f18a40484
2021-01-14 13:25:12 +00:00
Alex Kavanagh 9261c6c6be 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: I20570a90789e3d36339aa0bd4305e32af1226dfc
2021-01-14 13:24:28 +00:00
Aurelien Lourot 2af10cfa7a Remove Disco and Eoan bits
Change-Id: Ibad1850613d72f1e20530916eb6542e303a8e265
2021-01-12 13:53:52 +01:00
Zuul eb2757c98c Merge "Implement new relation: 'ceph-replication-device'" 2021-01-08 09:30:47 +00:00
Aurelien Lourot 57d5d6f26b Add Groovy to the test gate
Change-Id: I95e4e62acb77e60c45ecfe3d772507def5199e3f
2021-01-07 09:27:02 +00:00
Marius Oprin 3ff94b3581 Implement new relation: 'ceph-replication-device'
Add CephReplicationDeviceContext Class
Add CinderCephContext Class

Co-authored-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Change-Id: I5f9139294c63f1adec3bbbe3bb9c99b2e7f5413b
2020-12-17 21:46:49 +02:00
Ionut Balutoiu 026233bd7c Add 'rbd-mirroring-mode' to replicated 'create-pool' broker req op
The new config option is applied only to the broker request to
create the charm replicated pool.

Co-authored-by: Marius Oprin <moprin@cloudbasesolutions.com>
Change-Id: I6bf9544af02d0622b8f714da97b5dbcf49d1d1af
2020-12-15 15:38:16 +02:00
Aurelien Lourot 5d49a71fab 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: I8b4cc2a642d2c11e9d04073a7f380a56ad3daa99
2020-12-11 13:55:27 +01:00
Marius Oprin 4114828b93 Charmhelpers sync
This is required to get the updated broker request handler
containing the new rbd-mirroring-mode flag.

Change-Id: Ia4c1e9741ae8eab2e41d7ba4e4615475914c43e5
2020-11-25 15:16:00 +02:00
Zuul 5f87ef83e3 Merge "Waiting state if broker request is incomplete" 2020-11-05 10:39:20 +00:00
Liam Young 9e2db44075 Waiting state if broker request is incomplete
When assessing the charms status check that the current
ceph broker request has been complete. If it has not
put the charm in a 'waiting' state and update the status
message.

Change-Id: Iaaa2021a86b7e360f3255a52b27a49ef859beecd
Closes-Bug: #1899918
2020-11-04 13:43:55 +00:00
Frode Nordahl 0be26a2684
Add blurb about Ceph BlueStore compression
Change-Id: Ib917f930168388146b09982a2ce325a32fe4a8af
2020-10-20 13:13:23 +02:00