Commit Graph

24 Commits

Author SHA1 Message Date
Corey Bryant 3c9e6f10ba 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: Ibb97b427f29a061adc2d67e55ae3976387d332c7
2023-08-08 11:59:35 +02:00
Corey Bryant 62482b50db Add kinetic support
Add 22.10 run-on base and add kinetic to metadata.yaml.

Additional changes:
* change CHARMCRAFT_* vars to CRAFT_* and add entrypoint
* pin tox < 4.0.0 for now
* switch to charmcraft pack
* add standard bindep.txt
* switch charm-tools to 2.8.4 to remove py310 ruamel requirement
* use charmcraft_channel 2.0/stable

Change-Id: I549e8382e4c079eb9eefec13f2a72e994e2b86f0
2023-02-03 10:00:04 -05:00
Alex Kavanagh 62a5f93079 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: I1bbdebb22fcd6cac4ceae74d90d70a8d94f3c769
2022-02-01 19:41:05 +00:00
Corey Bryant b455c46541 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
* drop bluestore model alias to simplify osci.yaml

Change-Id: I1df6bb74fd96d934aa97cce18307a3227b165882
2021-11-18 16:07:37 -05:00
Alex Kavanagh bee914c6bf 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: I1a8c12dc00e05d5d01606f68eb151d86acf61815
2021-09-21 13:52:56 +01:00
Aurelien Lourot 2f234a8911 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: I1eb0e1b428c1b850326202af03747826f2029336
2021-07-22 14:52:05 +02:00
Alex Kavanagh 46797fc986 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

* Manual fix to build.lock to work around bug [1]

[1] https://github.com/juju/charm-tools/issues/603

Change-Id: I6be25d404436647a19e18231ccd0985dd49bb858
2021-04-07 18:47:42 +01:00
Alex Kavanagh 5b4afdcf0d 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: Ie689cc96f5458c3622cb3752f2dffd5cf8e5499d
2021-02-17 12:07:50 +00:00
Alex Kavanagh 9c9b3f0aa5 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: I3f7c0bce48a37fa71fe9c5445b06892f649243aa
2020-09-29 19:26:15 +01:00
Alex Kavanagh 458af8aaf6 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: If1bf8dbceba3aff96aeee6e5bf710185d1ed9612
2020-07-27 20:49:28 +01:00
Frode Nordahl ff7ff85779
Fix Ceph upgrade issue by porting charm to common framework
Move helpers as-is from reactive handler module to charm class.

Set default of ``source`` configuration option to 'distro' to be
in line with other reactive charms and the expectations of the
``openstack.utils.get_source_and_pgp_key`` function.

Unpin flake8.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/313
Depends-On: I6fbde855ba8f83ef5e265bd5b5dfb0d01eae830b
Change-Id: I2d8e8b244db935673406d2cce9ef34e7252cb50b
Closes-Bug: #1879072
2020-06-12 08:24:57 +02:00
Chris MacNaughton 4dfe62d344 Migrate CephFS tests to Zaza
Change-Id: I36d3d58d8f5c15475460997cce20fe442978eeed
Closes-Bug: #1828424
2019-12-05 16:10:05 +01:00
Ryan Beisner ec4bdb67d5
Sync charm/ceph helpers, tox, and requirements
Change-Id: I1be6d121b470729c150f060d4e970f58d28fc13d
2019-09-30 22:41:33 -05:00
Camille Rodriguez 31393b50ad Add disco-stein bundle to gate tests
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.

Other small additions:
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

LP Related-Bug: #1823718

Change-Id: I2844aaa42ea4b51c2bb162d17a9c1c308b5d8be8
2019-08-26 15:40:13 -04:00
Corey Bryant e8da8c3b6c Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Note that openstack-python35-jobs is added since this charm is supported
on Xenial.

Change-Id: Ie5a0ac7be4ecb95c109564368710c892f085a844
Story: #2005924
Task: #34228
2019-07-30 10:31:11 -04:00
Ghanshyam Mann c60affa980 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I940661f000d558539caf9264a9dab1e9f55307f7
2019-05-24 09:14:42 +00:00
Chris MacNaughton be3b27586e Remove deps installation in py27 job
Change-Id: I297f20e7f400fef191c164d3d22be8cfc3e9c514
2019-05-24 11:14:22 +02:00
Pete Vander Giessen bec0cfaff2 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I8d24df7c6baa225f79501024c1872a07ae022e1a
2019-03-07 17:10:21 -05:00
Paul Goins cd26877d2b Excluding unit_tests from coverage
Unit tests generally will all be executed, and measuring them will
skew the overall coverage numbers.  Thus, I'm excluding the unit_tests
folder.

Change-Id: I5ce51441f78624bd93ca18aa5901c555ca8a39ac
2019-03-01 15:03:17 +01:00
Paul Goins 30c723e711 Added tox environment for gathering coverage
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini.  This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable.  Doing this allows us to easily generate coverage for our
unit tests.

An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc.  It is purely focused on the unit tests.

Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.

Change-Id: I0f85b328488743361b6070febef80008efab1358
2019-03-01 11:09:02 +01:00
Doug Hellmann ca0d9dc6bd fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ic34183ed3ea23c8151909da52498c3f6b44c5c2a
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:37:27 -04:00
Ryan Beisner caff36e33d Add .gitreview and clean up repo
Several updates to make this consistent with other OpenStack
charms repos, and to enable Gerrit + OSCI test gates.

- Update .gitignore.

- Add .gitreview for gerrit.

- Add copyright file, and copyright headers.

- Add tox.ini and src/tox.ini

- Add tests README

- Fix layer.yaml

- Add unit tests.

- Add amulet tests.

- fixed lint.

See running bug/TODO list:

- https://bugs.launchpad.net/charm-ceph-fs

Change-Id: Iaec5f25706387f9b59b36e307e954318b23c9417
Depends-On: I3f78a5a3231377f5542b81cec27dd4531144cfd1
Closes-Bug: 1640895
Closes-Bug: 1640896
Closes-Bug: 1640898
Closes-Bug: 1640900
Closes-Bug: 1640902
Closes-Bug: 1653767
2017-01-06 08:29:43 -08:00
Chris Holcombe 55093d7e4b Add ceph_api 2016-08-03 09:15:07 -07:00
Chris MacNaughton 0fe84902e4 initial commit 2016-06-30 13:06:08 -04:00