Commit Graph

24 Commits

Author SHA1 Message Date
Peter Sabaini 9debe75064 Rewrite the get-erasure-profile action with the ops framework
Change-Id: I07cb5838c446ba08469e1d0f22d75d74c40ef29c
2022-10-26 11:28:42 +02:00
Chris MacNaughton efcd98746b Update tox.ini for charmcraft 2
Also, this fixes an issue with pyopenssl

Change-Id: I8cb2d6ffeb27f58d97a2d4f8b32ced3c527a5f5e
2022-09-28 12:50:47 +00:00
Luciano Lo Giudice 1ee3d04fda First rewrite of ceph-mon with operator framework
This patchset implements the first rewrite of the charm using the
operator framework by simply calling into the hooks.

This change also includes functional validation about charm upgrades
from the previous stable to the locally built charm.

Fix tempest breakage for python < 3.8

Co-authored-by: Chris MacNaughton <chris.macnaughton@canonical.com>

Change-Id: I61308bb2900134ea163d9e92444066a3cb0de43d
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/849
2022-08-19 19:00:56 -03:00
Juan Pablo Norena d3b2494ee8 Add get-or-create-user and delete-user actions for ceph auth
The get-or-create-user action allows to create and get user,
with its mon and osd capabilities, and retrieve the related
keyring.
The delete-user action allows to delete users.

Closes-Bug: 1899215
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/765
Change-Id: I2bd148e442990b6ff978624023bd85a741c6259a
2022-06-09 07:11:08 -05:00
Billy Olsen d72e8db254 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
- Resync charmhelpers and charms.ceph

Change-Id: Ib62d7f882f22146419dfe920045b73452f9af2cb
2022-04-07 14:16:20 +01:00
James Page e2d8f32d31 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.

Change-Id: Idffdcf1153821c3d9514f3410e5609ea8c99fe74
2021-12-16 09:37:23 +00:00
Corey Bryant 7cd789601d 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: I214c0517b223da5fce9e942269fd8703422d1a2b
2021-11-17 13:46:05 -05:00
Aurelien Lourot 35b2ed1a43 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: I012eea8b5f7211fd4302e22bccd518f3b80481c1
2021-07-22 14:52:15 +02:00
Alex Kavanagh 54dce1d24c 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: Idf99f5b51c66285d384e25797db029513367736c
2021-05-03 16:02:44 +01:00
Alex Kavanagh f180a2e729 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: I7de7b61d63aef57c3242631b969d5bb54fe76ab1
2021-04-03 20:21:50 +01:00
Alex Kavanagh 65d23459da 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: Ieb501893e211e442398a03b338072705a9d8b51a
2021-01-12 15:28:24 +00:00
Aurelien Lourot 644a3ee900 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: I9f52fe90d44a95446d8a005d6cb1c98ea73a70e0
2020-12-11 13:54:01 +01:00
Alex Kavanagh f318c00671 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: I9c2419e39899f02e99b07d5dbd0b4cd0f51e03ba
2020-09-26 18:30:12 +01:00
Frode Nordahl c0113217bf Unpin flake8, fix lint
Change-Id: Iab73f1127bfbdf11626727f3044366d2e5745439
2020-08-24 10:54:54 +02:00
Ryan Beisner 05a9dc6309 Sync charm/ceph helpers, tox, and requirements
Also fix for bug where the mgr daemon is not ready.  A wait is
introduced if it is not ready before trying to assert pg-autotune.

Closes-Bug: #1848576
Change-Id: Ic3c1e1f7902f7e2052dc4cf432303f874369238d
2019-10-17 22:37:39 +01:00
Chris MacNaughton 01fb37ebee Migrate charm-ceph-mon testing to Zaza
Closes-Bug: #1828424
Change-Id: Ie46129f02566f17eabbf2eb0cae217fa0e886a4f
2019-05-16 11:34:57 +00:00
Pete Vander Giessen ab068db29d Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: Id8d098f97ffc8b0cfcf9a1f76e6240dc51e0eed3
2019-03-07 17:10:27 -05:00
Ryan Beisner 425e6f4c3f Update requirements
Change-Id: Ia6247cc24aeb906b8f76cc9bf553e60a73952e0b
2018-10-03 11:15:01 -05:00
Alex Kavanagh 7586815401 Migrate charm to work with Python3 only
Various changes to migrate the charm to work with Python 3.  The tox.ini
has been modified to inlcude py35 and py36 targets for testing against
Python 3.5 (xenial, zesty), and Python 3.6 (artful+).

Change-Id: I009de528428aaca555b49f3fc17704dcf5f2a28c
2017-11-17 10:22:30 +00:00
David Ames 82de23c42e Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: Iae05c0767b09f455a479dd781bdb7baf9a645c7b
2017-04-28 08:41:54 -07:00
James Page 8c1ab254eb Use bundletester for amulet test execution
Switch to using bundletester for execution of functional tests,
leveraging tox to build out test virtualenvs.

Rename amulet tests inline with gate-* and dfs-* naming standards.

Update README to refer to functional testing section of the charm
guide.

Change-Id: I0d378cdffdc2eaa5c34578e85aba6acb7a47a41d
2016-07-20 14:53:55 +01:00
James Page 5904a7aa04 Update to charm-tools >= 2.0.0
The new release of charm-tools no longer ships the charm
command; update minimum version requirement and switch
to using charm-proof instead, unblocking current pep8
failures across all charms.

Also pin the version of requests to 2.6.0 until theblues
(indirect dependency of charm-tools) sort out its
requirements versioning.

Change-Id: I29210e210b90aa81bf6ee9a020bd6de656750a77
2016-03-23 09:30:16 +00:00
James Page 23c54210bb Resync tox integration 2015-10-30 15:04:43 +09:00
James Page 89398bd217 Make things alot simpler 2015-10-30 12:30:49 +09:00