Commit Graph

97 Commits

Author SHA1 Message Date
James Page 536c22a6a2 Retire project
Leave README around for those that follow.

Change-Id: I34f8092296c70cd1b51de7c48d7ee589f410d55d
2018-09-14 11:53:08 -06:00
Ryan Beisner 485726e527 Update amulet test definitions
This change requires the following charm-helpers change
to land first:

- https://github.com/juju/charm-helpers/pull/32

Change-Id: I7c1c2399cb38fd48139f3d42854442796e0d3a3b
2017-12-08 10:02:05 -08:00
Ryan Beisner 3d6fddbc76 Sync charm-helpers
Change-Id: I94fb2e6b7a4362e414583be7016ba208056c9922
2017-11-22 18:22:20 +00:00
Frode Nordahl fc14a5f51d Update functional test model to use cinder-ceph subordinate
Change-Id: I521fd8d8da4daec509a7d370a5b21611cdf332cd
Related-Bug: #1719742
2017-10-24 00:53:31 +02:00
James Page 71390fe0cf Add support for ceph-mon bootstrap
Add new relation to support bootstrapping a new deployment
of the ceph-mon charm from an existing ceph charm deployment,
supporting migration away from the deprecated ceph charm.

Each member of the existing ceph application will present
the required fsid and monitor-secret values, as well as its
public address so that the related ceph-mon units can
correctly seed from the exisitng MON cluster.

Provide stop hook implementation, which will leaves OSD
services running but will remove the ceph.conf provided
directly from this charm, falling back to ceph.conf provided
by other charms installed on the same machine. MON and MGR
services will be shutdown and disabled.

Closes-Bug: 1665159

Change-Id: I9bd1d7630a8eff53c65cb0f07d17e095fc7f32a9
Depends-On: Iac34d1bee4b51b55dfb3d14d315aae8526a0893c
2017-10-09 06:48:00 -04:00
James Page f936367cac Drop configuration for global keyring
Drop explicit global configuration of keyring, supporting
installation of the ceph/ceph-mon/ceph-osd charms in the
same machine.

Change-Id: I7e537e7b1c19f2cf675262bf3315868ddc634005
Closes-Bug: 1681750
2017-09-14 13:09:20 -06:00
Ryan Beisner 1bd97e22df Sync charm-helpers
Change-Id: I0337a519d6171e90ca1effbb65a1038b13cbb7f4
2017-08-24 16:46:07 -05:00
Ryan Beisner 090f5f9a51 Remove deprecated series metadata and tests
Change-Id: Ie4930cd9c2793e876818709854ccd3d27e732040
2017-08-23 09:51:23 -05:00
Andrew McLeod 8267dc4bcc Modify tests.yaml which specifies bundletester config params
with the following key:value pairs:

- reset_timeout: 600

Change-Id: I374171882b6d356aac848f0085b8ff1440ca0a9f
2017-08-09 14:20:52 -06:00
James Page f4ddf01f32 Updates for pike b1
Resync charmhelpers for pike versioning.

Add tests for pike targets, but disable until all charms support
pike.

Change-Id: I513acf13ceec8b9b4446d8c3292b18e7b9760e4a
2017-05-12 06:56:36 +02:00
David Ames 6febe7dd68 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: Idb614ceb9ad045e53a3f886fbf1e6e2fcfc0f5d3
2017-04-28 08:41:48 -07:00
David Ames 9e020aac19 Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- Turn on Xenial-Ocata Amulet test definitions.
- Sync charm helpers to get Juju 2.x amulet compatibility.
- Keeping Zesty-Ocata Amulet test definitions turned off until the
  metadata.yaml changes propagate to the charm store.
- Resync tox.ini to resolve amulet test failures.

Change-Id: Id0c204f273caa9f0f585dcf505975ba685349ad0
2017-03-23 09:15:51 +00:00
David Ames 8baceb31eb Pre-release charm-helpers sync 17.02
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I9374ef558153401e0f5d57aa0d2247fcbb749c17
2017-02-14 14:49:55 -08:00
Chris MacNaughton 4aecaa7159 Remove /var/lib/ceph from updatedb
This stops updatedb from indexing the storage locations

Change-Id: I98caae42a16c31d0e9942150449f8937ab721291
Closes-bug: 1520226
2017-01-25 09:22:28 -05:00
Ryan Beisner 9e2aa03289 Update Amulet defs, series metadata and c-h sync
- Sync charm helpers if applicable.

- Fix test executable hashbags for virtualenv prep.

- Add Yakkety-Newton Amulet test definitions.

- Prep Xenial-Ocata Amulet test definitions (not yet enabled).

- Prep Zesty-Ocata Amulet test definitions (not yet enabled).

- Remove Precise charm series metadata if present.

- Remove Precise Amulet test definitions if present.

Change-Id: Ic32eba6b28007101965bd2caec9ca6e5369ab379
2016-12-03 16:42:16 +00:00
Ryan Beisner d52053e3e4 Update amulet test definitions for Newton
- Remove Precise-Icehouse Amulet test definitions if they exist.

- Add Xenial-Newton Amulet test definitions.

- Add Yakkety-Newton Amulet test definitions.

- Use the percona-cluster charm in tests instead of the mysql charm.

Change-Id: I74764b639dad616060c7fa7c2ccbad1e283e1f9d
2016-10-11 13:25:49 -05:00
David Ames daa475a8c5 Pre-release charm-helpers sync 16.10
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I9f0aad6d212fb18d88924a6144540def4b30f995
2016-09-30 08:47:04 -07:00
James Page a980e1c7d6 Add support for application version
Juju 2.0 provides support for display of the version of
an application deployed by a charm in juju status.

Insert the application_version_set function into the
existing assess_status function - this gets called after
all hook executions, and periodically after that, so any
changes in package versions due to normal system updates
will also be reflected in the status output.

This review also includes a resync of charm-helpers to
pickup hookenv support for this feature.

Change-Id: I22763c26a28d397688f02845f0acb8021320a5ae
2016-09-21 09:11:37 +01:00
James Page 9b37f57e45 Resync charm helpers for PG calc fixes
When the Ceph RADOS Gateway is used with small OSD configurations
(3 OSDs), the light pools consume 0.1% of storage by default; this
results in PG counts below or equal to 0; enforce a minimum PG count
of 2 as specified in the official Ceph PG calculator.

Change-Id: I44748807540ddde1ac76493bd85bb0f1c708e16c
Closes-Bug: 1607961
2016-08-02 11:02:36 +01:00
Liam Young 31aae0b984 Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: If16e81f8eb03472bb4f9c8263428f8be15307b10
2016-07-21 14:25:27 +00:00
James Page 0c7107a291 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: I80e650993cc452d2a138646ad147ebdda59d8217
2016-07-20 14:53:07 +01:00
David Ames 67492bd84a Pre-release charm-helpers sync
To begin release testing get each charm up to date with lp:charm-helpers

Change-Id: Iccd6ad37fd98e3b76f2afe4a287da785b0b39180
2016-07-15 10:51:43 -07:00
James Page bdcb3fe1df Resync charmhelpers for licensing change
The charm-helpers project have re-licensed to Apache 2.0
inline with the agreed licensing approach to intefaces,
layers and charms generally.

Resync helpers to bring charmhelpers inline with charm
codebase.

Change-Id: I1892c43d52cf7474596f5896c210961ee735e8aa
2016-07-06 16:29:05 +01:00
James Page 473439ab65 Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

In order to make this change, this commit also drops the
inclusion of upstart configurations for very early versions
of Ceph (argonaut), as they are no longer required.

Change-Id: I5e5db16b6f04ee8282275e9fa63a8d864c5b51ec
2016-06-28 11:48:06 +01:00
James Page ec5c5d394b Switch to using charm-store for amulet tests
All OpenStack charms are now directly published to the charm store
on landing; switch Amulet helper to resolve charms using the
charm store rather than bzr branches, removing the lag between
charm changes landing and being available for other charms to
use for testing.

This is also important for new layered charms where the charm must
be build and published prior to being consumable.

Change-Id: Iad8888761d1016b833585bd33ca3758e8ade769f
2016-06-17 11:31:31 +01:00
Liam Young e6ae3e1b34 Charmhelper sync before 1604 testing
Change-Id: Ia41bfa6fd96dbc09152d41c27a13fdcb21faa837
2016-04-12 14:10:39 +00:00
Alex Kavanagh d82e89ea20 Pause/resume for ceph charm
This changeset provides pause and resume actions to the ceph charm.
The pause action issues a 'ceph osd out <local_id>' for each of the
ceph osd ids that are on the unit.  The action does not stop the
ceph osd processes.

Note that if the pause-health action is NOT used on the ceph charm then the
cluster will start trying to rebalance the PGs accross the remaining OSDs.  If
the cluster might reach its 'full ratio' then this will be a breaking action.
The charm does NOT check for this eventuality.

The resume action issues a 'ceph osd in <local_id>' for each of the
local ceph osd process on the unit.

The charm 'remembers' that a pause action was issued, and if
successful, it shows a 'maintenance' workload status as a reminder.

Change-Id: Ic5b5b33e59e72e13843d874a08e3d142a1befde3
2016-04-08 14:48:56 +00:00
James Page dda294951d Check for Keystone apache2 process for liberty+
The keystone charm recently changed to run keystone as a wsgi
process under Apache2; refactor amulet test to ensure that
apache2 is checked instead of keystone for >= liberty.

Change-Id: If0767f27d669c073d48f12179bbbe9256cbc0247
2016-04-07 15:06:21 +01:00
Edward Hope-Morley 080685d831 Add hardening support
Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks. Also
add new config option to allow one or more hardening
modules to be applied at runtime.

Change-Id: I230b8c11ba32395b708b9300d6b91dad728194e8
2016-03-30 11:48:16 +01:00
Chris Holcombe 7b36210bac Add ceph-osd to ceph
This change adds ceph-osd back into ceph for amulet testing.

Change-Id: Ice4aaf7739e8c839189313d3f6175a834cf64219
2016-03-18 15:37:44 -07:00
Ryan Beisner e87e0b7bd2 Update amulet test to include a non-existent osd-devices value
The osd-devices charm config option is a whitelist, and the
charm needs to gracefully handle items in that whitelist which
may not exist.

Change-Id: I5f9c6c1e4519fd671d6d36b415c9c8f763495dad
2016-03-16 17:47:26 +00:00
Ryan Beisner a7c5e85c40 Enable Xenial-Mitaka amulet test target.
Change-Id: I0c386fc0c052cc1ac52c0a30f7a39fa914a61100
2016-03-04 14:36:59 +00:00
Chris Holcombe 092368d646 Merge upstream 2016-02-23 08:19:56 -08:00
Edward Hope-Morley 414e5195c9 fix amulet 2016-02-22 15:21:00 -05:00
Chris Holcombe de98010f6f charmhelpers sync 2016-02-22 08:05:32 -08:00
James Page f16e3fac52 Add pause/resume cluster health actions
Add actions to pause and resume cluster health monitoring within ceph for all osd devices.

This will ensure that no rebalancing is done whilst maintenance actions are happening within the cluster.
2016-02-18 11:02:17 +00:00
Ryan Beisner afd390b3ed No need to not wait for nonexistent nrpe 2016-02-12 21:24:20 +00:00
Ryan Beisner 9721ce8006 Disable Xenial test re: pending lp1537155 2016-02-12 21:02:36 +00:00
Ryan Beisner d12e2658f5 Update test target definitions; Wait for unit status. 2016-02-12 20:57:08 +00:00
Chris MacNaughton 7709b7d538 rename actions 2016-02-12 08:26:13 -05:00
Chris MacNaughton faa7b3ad95 remove regex 2016-01-22 16:42:58 -05:00
Chris MacNaughton 1e3b2f5dd4 lint fix 2016-01-22 16:10:15 -05:00
Chris MacNaughton 620209aeb4 use search instead of match 2016-01-22 16:05:15 -05:00
Chris MacNaughton 2f47939fa8 fix line length 2016-01-22 15:16:22 -05:00
Chris MacNaughton f203a5bdfc modify regex to not care about order 2016-01-22 15:02:10 -05:00
Chris MacNaughton 706b272fc9 try with sleeping 2016-01-22 14:16:46 -05:00
Chris MacNaughton fc714c96f4 fix variable name 2016-01-22 11:10:34 -05:00
Chris MacNaughton 8cb53237c6 update to use correct(?) commands 2016-01-22 10:47:26 -05:00
Chris MacNaughton b762e9842c update tests.yaml 2016-01-22 08:01:03 -05:00
Ryan Beisner 81f7eb40cc Fix typo in mitaka amulet test definition 2016-01-19 12:47:41 +00:00