Commit Graph

28 Commits

Author SHA1 Message Date
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
Ryan Beisner 734f3fcdd5
Sync charm-helpers for py38, distro, and other updates
Change-Id: I0a21ed8ad4bf740308bd822c9fe36872e78c9ee5
2020-03-05 13:30:31 +01:00
Liam Young 5335fda89d Tests dir no longer need copy of charmhelpers
Charmhelpers is now installed via pip for unit tests so stop
'Make sync' from pulling it down.

Change-Id: I65cb2ffc3ac78215c1a3daba067d28241c090c57
2018-10-10 12:39:10 +00:00
Frode Nordahl 2f588bdb9e Update repo to do ch-sync from Git
Change-Id: Ib1577abe79449d5e085dc29021ce1aaefe0cc3e7
2017-09-26 08:56:31 +02:00
Chris MacNaughton 86fef6c00b Update Make jobs to separate out ceph lib sync
Change-Id: I5e1fe4a913f1baaa22ea73e34f3d1ba8edf82c5a
2016-12-01 12:14:23 -05:00
Chris MacNaughton 9db9a2a1db update top Canonical owned repo
Change-Id: Id423ea2762fe6b356913e800e9b25dd35223dde2
2016-10-07 11:04:32 -04:00
Chris Holcombe 5b47647af7 Update charms.ceph location
Change-Id: Id5e45cf7ebd5836a05b856f1bc25706b487eca7c
2016-09-23 10:27:54 -07:00
Chris MacNaughton 1287b0c9c6 Clean up dependency chain
This includes a resync of charms_ceph to raise the directory one level
    The charms_ceph change that we're syncing in changes the
    name of the ceph.py file into the __init__.py file to remove the
    second level of namespacing

Change-Id: I0122752fa2882d98d47e14ac50bfa6d14a08a50c
2016-08-11 11:01:13 -04:00
Chris MacNaughton 8a95ece7e7 Migrate to shared lib
This change moves our ceph.py and ceph_broker.py into
a seperate repository that we can share between various
ceph related Juju projects, along with a Makefile
change to use a new git_sync file to partially sync
a git repository into a specified path

Change-Id: I2a6907890965b57d56167e1c73add6532792746d
2016-08-01 15:16:35 -04: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
Billy Olsen 3ba6011ddc Use tox in Makefile targets
Modify the Makefile to point at the appropriate tox targets
so that tox and Make output can be equivalent. This involves
mapping the lint target to the pep8 target and the test target
to the py27 target.

Change-Id: I9fc18109335953f2354fd2797da11c9979824d4b
2016-03-15 20:12:02 -07:00
Chris Holcombe 38c868b048 Add support for cache tier management
This change will add two new actions to the ceph-mon charm. These
actions will allow the user to create and remove cache tiers from
existing pools.  Both writeback and read only mode are supported.

Limitations of this patch include not having fine grain control
over the cache tier properties.  Things like hit_set_count,
bloom filter control or cache sizing are not supported yet.

Change-Id: I5a37e79d0d23d35295a8ae97177c940af66b0485
2016-03-10 08:29:12 -08:00
Ryan Beisner 004baff83c Move 00-setup to prevent extra, unnecessary bootstrap in test runs. 2016-01-08 21:44:49 +00:00
Ryan Beisner c49ad78a92 update makefile unit test target 2015-10-06 14:36:46 +00:00
Ryan Beisner 600b414967 Update publish target in makefile; update 00-setup and tests.yaml for dependencies. 2015-06-29 18:39:56 +00:00
Ryan Beisner 3fa86c1ba7 set ch sync yaml and makefile 2015-06-15 20:42:45 +00:00
Ryan Beisner 04a9d52d4d Update README, Makefile and amulet test dependencies
Remove unsupported release logic
Add nova, cinder and glance rbd config inspection
Enable Vivid tests, prep for Wily
Add debug logging
Add osd pool inspection
Add functional tests for ceph-backed cinder and glance
Add basic cli functional checks.
2015-06-15 20:40:45 +00:00
Ryan Beisner 814c4915b3 auto Makefile test target (amulet): bump juju test timeout to 2700s (same value as the juju-deployer default). Also remove explicit test names, which will cause all +x files in ./tests to be executed (as bundletester does by default). 2015-04-16 21:32:00 +00:00
Ryan Beisner 2d7be9659a auto add AMULET_OS_VIP to preserved env vars in makefile 2015-04-16 21:31:51 +00:00
Edward Hope-Morley 8000bd0d4a Added Ceph broker support to allow clients to request
resources e.g. pools as opposed to creating them
themselves. This hopefully simplifies the logic at
the client side and reduces the risk of race
conditions by shifting execution to the ceph
charm itself. Backwards-compatibility with
clients that don't want to/yet support this approach
is maintained.
2014-11-07 14:16:26 +01:00
Corey Bryant e4997e2eb8 Amulet test fixes:
* Makefile: Only run precise-icehouse and trusty-icehouse tests by default
    and increase test timeout
  * t/00-setup: Add more required dependencies
  * t/README: Mention charm-tools dependency
  * t/basic_deployment.py:
    - Specify unstable charm deployment
    - Use dicts in add_services
2014-09-27 18:15:47 +00:00
Corey Bryant 2dc736192c Add Amulet basic tests 2014-08-26 02:06:25 +00:00
Corey Bryant b92c0aa461 Automatically pull down charm_helpers_sync when 'make sync' is called. 2014-08-25 18:40:17 +00:00
Corey Bryant 77af37a023 Move charm-helpers-sync.yaml to charm-helpers-hooks.yaml and
add charm-helpers-tests.yaml.
2014-08-25 18:26:04 +00:00
James Page 3a9554622a [trivial] Add publish target to Makefile 2014-05-21 11:09:21 +01:00
James Page e563f959db Resync helpers from trunk 2013-07-03 10:03:26 +01:00
James Page 5f09a0fad1 Add sync target for charm-helpers 2013-06-24 10:14:42 +01:00
James Page 068b8b05a4 Add flake8 and charm proof target for Make 2013-06-24 10:13:52 +01:00