Commit Graph

95 Commits

Author SHA1 Message Date
Peter Sabaini 86a9e6942a Functests: pin support channels, cleanup
Change-Id: Ied88fe505855bcc0f0e01d00e5f671f629002e1c
2023-11-15 18:11:19 +01:00
Peter Sabaini 0661f1d85c Functest: don't use LTS image
To make tests faster and more robust, avoid creating an additional LTS
image. Also remove obsolete test bundle options

Change-Id: Icea61ae71980a7fcc18b3898c2913d47339e05f6
2023-11-14 17:30:42 +01:00
Zuul c1ed38c14b Merge "Add docs key and point at Discourse" 2023-08-10 08:06:11 +00:00
Corey Bryant b8a8961173 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

Change-Id: I2cc4d9bb350d86b356d9ffe2bc62987c23f747fd
2023-07-24 17:35:04 -04:00
Jadon Naas 3ac0351978 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: Ia36919df21c55bfc40497f7c174ba5919f44a394
2023-07-18 14:20:54 -04:00
Chris MacNaughton 9e6128f46d 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: Ic9c1aef2b8c81bf53be3a18ca2806c69ce618f90

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1074
Change-Id: Ie39cef6965c30f2adb78b4be568ced17a140115b
2023-06-14 13:02:58 +02:00
Luciano Lo Giudice d448514464 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
* fix poetry-core addition in wheelhouse

Change-Id: Ia2ad44152cf620e9812bfbd58276735a7491949c
2023-06-02 17:59:05 -03:00
Chris MacNaughton f5965a81bd Bypass charm going into blocked due to a bug
After Octopus, the reporting about image states fails because of a
permission issue in Ceph. This change disables that status reporting
to allow a deployment to be healthy even when some tools cannot query
status.

Also modernize build and func testing: remove python 3.9 and xena from
tests

Related-Bug: #1879749
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1063
Change-Id: Id86fc043495b89609cf6873ec58aee1e2e388578
2023-06-02 10:49:27 +02:00
Alex Kavanagh dce627f8f5 Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: I8a3ee884ad82d935165c725b38c01cdd25656f49
2022-04-18 21:06:06 +01:00
Alex Kavanagh 418bd85392 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

This change also switches away from directory backed OSD devices
in the test bundles, as they are not supported anymore.

Change-Id: I57d1b47afbbeef211bb777fdbd0b4a091a021c19
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-04-12 12:05:59 +02:00
Hervé Beraud a0781dafff 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: I6cf34358b919d4ab568a329395207676bd2e531d
2021-12-15 11:02:05 +00:00
Corey Bryant 356ad6d541 Switch to yoga unit jobs and add py39
Change-Id: I94a2ecc844a5aff7b4bc40dc62699b5098618f92
2021-11-17 14:46:23 -05:00
Corey Bryant 60e243dbf0 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 trusty, xenial, and groovy metadata and tests

Change-Id: I3d5670334344384fb8be5855926f2c9441f793ba
2021-11-12 11:13:56 -05:00
Aurelien Lourot c1eac8ea68 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: I3e5148aabf2dbeb71b94de9c63d0d8ada29293fc
2021-07-22 14:52:53 +02:00
Zuul c54fb303a5 Merge "Test bundles for focal-wallaby and hirsute-wallaby" 2021-06-15 12:29:07 +00:00
Aurelien Lourot 392c01dc32 Add impish to metadata.yaml
Change-Id: I12925554fa90c97e8d6bdee46ad953cd7c516b7f
2021-06-10 12:08:36 +00:00
Corey Bryant 4d194c7482 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I538683f77566b3719dfd0c6d7b4782bfa72be0d4
2021-05-13 09:08:18 -04:00
Alex Kavanagh 1845ed2f50 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Change-Id: I53d0b42b43731ac06d96932f3dcf72c116f360f3
2021-05-06 10:29:01 +00:00
Alex Kavanagh 3fd0c78116 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: If26550f2a6aca4f2e7b8a532e924f640d967950f
2021-05-03 16:03:39 +01:00
Alex Kavanagh 34cc9fb9a4 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: I388df195df1294f0fc92bcf06e49e1a207fc6510
2021-04-03 20:22:50 +01:00
Zuul 7656e0878d Merge "Add new osci.yaml" 2021-03-18 15:06:06 +00:00
Chris MacNaughton ea493089e4 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I16e82e0f295a9c0f6f21e4ff343e2f1afda1d82d
2021-03-18 07:24:15 +01:00
Ionut Balutoiu c2a27dc336 Cinder Ceph Replication tests
* Add optional parameter `pools` to the Juju actions: `resync-pools`,
  `status`, `demote`, and `promote`.
* Add `bionic-train-image-mirroring` to the `gate_bundles`.

Change-Id: I9df77be628718bb60a1bdc65078c94d0b7bda9d4
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/486
2021-03-10 14:31:25 +00:00
Alex Kavanagh 8c7e471615 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: I7fce00f968b540d0a5824a2df262f0195bae8739
2021-03-02 20:53:41 +00:00
Billy Olsen 98a7d07e24 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: Ic1f970e727b8d738c859ddeb619929c9ce795c9f
2021-02-19 17:00:12 -07:00
Alex Kavanagh 1242bafaf6 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: If47116b4cd9ef9b857ad1c9366631ba1b0562ce2
2021-02-17 12:08:41 +00:00
Alex Kavanagh 18880c11c2 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: I791e637ac6242eac8a7a2cb06ce6a65d31bdbaa9
2021-02-02 17:06:05 +00:00
Alex Kavanagh 7abbb663d9 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: I0cf6408ad65a46a7eb0dbcaf461cc67b13d31172
2021-01-18 14:11:28 +00:00
Alex Kavanagh f64dd67c1b 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: If51c83b121eb90308d2e87ca06c73f826a5ce359
2021-01-15 15:27:58 +00:00
Aurelien Lourot afee819c75 Remove Disco and Eoan bits
Change-Id: I81abbe4446a8bb702a8c05815cb253aa3389254d
2021-01-13 12:20:13 +00:00
Aurelien Lourot 979c39c532 Fix ambiguous relation
cinder-ceph/ceph-mon could now refer to:
- ceph/client
- ceph-replication-device/client
- juju-info/juju-info

Change-Id: Id39640c0084992284a976c3cb02233e3ae6e20fb
2021-01-12 10:54:49 +01:00
Ionut Balutoiu 3562e11bda Handle RBD mirroring mode set in the relation
Change-Id: I423eb38f5197879c5f8f7999acb11ece3d26a6a4
Co-authored-by: Marius Oprin <morpin@cloudbasesolutions.com>
Signed-off-by: Marius Oprin <moprin@cloudbasesolutions.com>
2020-12-15 15:52:01 +02:00
Aurelien Lourot 3b1527df25 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: I45ff5385a905bd5f6aa635d0920de5326abb7b24
2020-12-11 13:54:44 +01:00
Frode Nordahl 85e33607d1 Add BlueStore Compression support
Drop support for forwarding requests for manually created Erasure
Coded pools. The initial implementation was based on a incomplete
implementation of EC support in the supporting libraries.

Make use of the forwarding of broker requests to support both
BlueStore Compression and Erasure Coded pools created through
the broker request protocol by charms in the source model.

There is currently no support for forwarding or influencing these
properties for manually created pools.

Depends-On: I0d4ed457e1d59eabed3340f5dc7d8353d5d66f04
Depends-On: I16196053bee93bdc4e5c62f5467d9e786b047b30
Change-Id: I19f66f8594b9bdada5365582ce98365039235f9d
2020-11-12 09:06:46 +01:00
Zuul 939c6b64ac Merge "Do not execute handlers in update-status hook" 2020-11-05 09:42:17 +00:00
Corey Bryant aaf6b40c2b Add missing openstack-origin to test bundles
Change-Id: Ia2544d044aef0848319284fe2a87fa85d66eb3da
Closes-Bug: #1901036
2020-10-22 14:52:53 +00:00
Alex Kavanagh ea71c24d56 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: I61d670cdbfe28a02f13045a77b720684e28dd0af
2020-10-14 16:26:51 +01:00
Frode Nordahl efb995a78a Do not execute handlers in update-status hook
Change-Id: I9093f83bd5ef642ad5da7d56543254ca9804b80b
2020-10-08 22:06:47 +02:00
Alex Kavanagh 8832c7432e 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

Add master branch charm-helpers to wheelhouse.txt to support bluestore
changes in charms.openstack.

Change-Id: I1cb0d616a3d3033d6948677326062e0eb785c2a0
2020-10-06 19:05:02 +01:00
Peter Matulis 308220f9da Refresh README
The removed content was placed in the CDG.

Apply README template.

Change-Id: Ib5bb2c03b5332d8bd39664e72170fc0683f7e8a8
2020-08-28 20:48:45 -04:00
Alex Kavanagh 5199c76713 Add focal and ussuri bundles to the charm
This patch updates the bundles to include up to focal-ussuri.
The focal-ussuri bundle is in the dev bundles as it can't pass at the
moment due to LP: #1865754.

The bionic-ussuri bundle is in the dev bundles (i.e. not gate) as it
fails due to LP: #1892201

Also deal with the related bug where cinder-ceph requires the relation
with a nova-compute unit.

Related-Bug: #1881246
Related-Bug: #1865754
Related-Bug: #1892201
Change-Id: I0a6f1de82ecc601509822277d657485e08dc893d
2020-08-20 11:33:58 +01:00
Zuul 206700b083 Merge "Remove inherited configuration options invalid for charm" 2020-08-14 09:47:12 +00:00
Aurelien Lourot 82caaf4fb1 Add focal Victoria and groovy test bundles
Change-Id: I743232ff41b651e0aaa9ae2e9681f3c4a9b3ad78
2020-08-12 18:07:12 +01:00
Frode Nordahl 3f11c3850a Remove inherited configuration options invalid for charm
A side effect of adding a config keyword in layer.yaml is that
any deletes done by upstream layers are overridden, so we
add the complete set of configuration options inherited that
should not be included in the built charm.

Change-Id: I91e4e52600e7d632bbcf62402e57ebf69b6a3ea5
Closes-Bug: #1879088
2020-08-07 14:10:19 +00:00
Alex Kavanagh d7bec5f8b8 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: I6147ebe469e3227f4d5b59374ab0262255b17a79
2020-07-27 20:50:32 +01:00
Alex Kavanagh 280a034fd0 Updates for 20.08 cycle start for groovy and libs
- Adds groovy to the series in the metadata
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild

Change-Id: I6772e104b883b79cf85b5c19dc401b431c087878
2020-07-08 11:22:01 +02:00
Frode Nordahl 43a209d09b
Remove duplicate requirement
Change-Id: I6ecc780ce05ad7e9d392888139f80678e2b343f5
Closes-Bug: #1885935
2020-07-01 18:52:23 +02:00
Frode Nordahl 5dc1773425
Rebuild to fix service start while paused
Change-Id: I7495960fe920807cd92419d18e158cae4f23b15b
Closes-Bug: #1885121
2020-06-26 14:50:49 +02:00
Alex Kavanagh a2ef0f4207 Add glance/nova-compute to bundles
This is to resolve the associated bug where cinder-ceph has grown the
capability to block if it doesn't have an appropriate relation to
nova-compute.

Change-Id: I7c47c5d8db06ce2a206eed9f617a2eff86088a9f
Closes-Bug: #1881246
2020-06-05 12:48:04 +01:00
Ryan Beisner ed01b67190
Add focal series metadata
Change-Id: Iebe13d3b86a07b5eb4c9e174f88931b5b7ea3291
2020-05-19 14:36:47 -05:00