24 Commits

Author SHA1 Message Date
James Page
cc7256b305 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 os_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 and contrib.openstack support for this
feature.

Change-Id: Ie8c969718b8e34f4b27e7d75f2b58167bf04c14d
2016-09-20 12:06:15 +01:00
Billy Olsen
2e5c583a93 Add ceph-pool-weight option for calculating pgs
Provide the weight option to the Ceph broker request API for requesting
the creation of a new Ceph storage pool. The weight is used to indicate
the percentage of the data that the pool is expected to consume. Each
environment may have slightly different needs based on the type of
workload so a config option labelled ceph-pool-weight is provided to
allow the operator to tune this value.

Closes-Bug: #1492742

Change-Id: I844353dc8b354751de1af5d30b6d512712d40a62
2016-07-14 08:02:03 -07:00
James Page
1012eedc3f 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.

Change-Id: Ibaa7c300be9d7de7d227f56b3ea85f2bfbd0470b
2016-07-01 17:22:51 +01:00
James Page
2fb135098d Add tox support 2015-11-03 14:16:36 +00:00
Liam Young
dee39ad6e7 Add workload status support 2015-10-08 15:46:16 +00:00
Edward Hope-Morley
5f62672af8 [gnuoy,r=hopem]
Update cinder-ceph broker code to scale-out bug.

Closes-Bug: #1453940
2015-09-16 03:07:56 +02:00
James Page
227abac9b5 Switch to stateless rather than stateful for flag 2015-09-10 10:34:26 +01:00
James Page
ecba1f60e1 Fixup tests 2015-09-10 10:23:56 +01:00
Liam Young
88650e76aa Fix unit tests 2015-09-07 09:36:20 +01:00
Liam Young
292ea3f9a3 Update unit test 2015-08-27 15:43:08 +01:00
Corey Bryant
ea788a1b84 [corey.bryant,trivial] Patch out service_restart() in unit test. 2015-07-02 11:31:25 -04:00
Liang Chen liang.chen@canonical.com
26a67b7013 Clean up stale ceph keyring
[cbjchen,r=]
Clean up the keyring after ceph relation is broken. So when next
time ceph relation is joined, ensure_ceph_keyring will not ignore
the new key because of the existance of the old one.
2015-02-04 14:24:05 -05:00
Edward Hope-Morley
f933f81dee synced ch and fixed tests 2014-12-15 10:40:21 +00:00
Edward Hope-Morley
68e425023b synced /next 2014-12-15 10:19:03 +00:00
Corey Bryant
be8adf17ff Mock out config(). 2014-12-11 02:37:26 +00:00
Edward Hope-Morley
80a19dc6a1 Added ceph broker support 2014-11-20 10:29:40 -06:00
Edward Hope-Morley
42a0253172 [hopem] fixed unit test error introduced by previous commit 2014-10-08 11:55:35 +01:00
James Page
5dde575dc6 Resync helpers, tidy lint 2014-07-15 16:41:42 +01:00
James Page
0f977121e3 Add some units tests for the storage-backend relation 2014-04-09 14:08:54 +01:00
James Page
fb23fca9f7 Add some more tests 2014-04-02 09:31:50 +01:00
James Page
a44090317d Fixup icehouse driver handling, add test case 2014-04-02 09:13:47 +01:00
James Page
16eda8c99f Fixup hook use of CEPH_CONF 2014-02-12 10:48:29 +00:00
James Page
2eefa60332 Update unit tests to cope with alternatives use 2014-02-12 10:40:54 +00:00
James Page
74e831c061 Initial version of charm 2014-01-23 16:14:44 +00:00