77 Commits

Author SHA1 Message Date
James Page
cf44e1c835 Add missing update-status hook
Charm is missing the symlink for update-status, which means that
its status is not re-evaluated periodically.

Change-Id: I77e4a1f23ad85ff3cd8fd637d8afbb141d55869a
2016-10-10 09:36:04 +01:00
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
Liam Young
0afe956f8c Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: I34939afb365c3e07fd8dfb41459cfdc5781e3c30
2016-07-21 14:18:52 +00:00
David Ames
a1725d2df3 Pre-release charm-helpers sync
To begin release testing get each charm up to date with lp:charm-helpers

Change-Id: I636fe36c3c4992b2b85d6895763d7a44120ece2f
2016-07-15 10:31:41 -07: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
c7cd8f13e3 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: I51306711dac86210d9b353ec9a0cfb6bad92675e
2016-07-06 16:32:53 +01: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
606f47c5d0 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: I05d8199238727ebca25666196cf9060a94d3e7b8
2016-06-17 11:42:48 +01:00
James Page
3e7e75641a Resync charm helpers
Add support for OpenStack Newton and Ocata.

Rework version detection code to just match on major version for
OpenStack projects using semantic versioning.

Provide fallback version detection based on major.minor versions
for swift packages.

Rework config-flags support helpers.

Fix is_ip function to correctly detect both IPv4 and IPv6 addresses.

Change-Id: Ic8428f4240422f39cc98f303181cb9808d64b131
2016-05-27 12:26:06 +01:00
James Page
079a781e38 Resync charm-helpers
Avoid use of 'service --status-all' which is currently
broken on trusty for upstart managed daemons; the change
moves to detecting how the daemon is managed, and then
using upstart status XXX or the return code of service XXX
status to determine whether a process is running.

Fixes for IPv6 network address detection under Ubuntu
16.04 which changes the output format of the ip commands
slightly.

Update the version map to include 8.1.x as a Neutron
version for Mitaka.

Change-Id: I96f804ddc62826e39b851a142c39f11953c71fee
Closes-Bug: 1581171
Closes-Bug: 1581598
Closes-Bug: 1580674
2016-05-18 14:04:34 +01:00
Chris Holcombe
adcd89e6fd Charmhelpers Resync
The fix to bug
https://bugs.launchpad.net/charms/+source/glance/+bug/1565120
requires a resync of all charms that use the ceph charmhelpers code.

Change-Id: Ied9d10ef9ffaac049caf525dc431da4e8e0d6358
2016-04-14 08:20:40 -07:00
Liam Young
1169b8d060 Charmhelper sync before 1604 testing
Change-Id: I71ad491c59addb1410f30008294a737de75b34e7
2016-04-13 08:36:28 +00:00
James Page
4d1d17dfef Resync charm-helpers
Change-Id: I2f6debf44b5b35d272fe15847ba9257417cf5c8a
2016-03-02 12:07:12 +00:00
Edward Hope-Morley
6647c3eb70 [trivial] charm-helpers sync 2016-01-17 21:19:14 +00:00
Corey Bryant
09c7e0bb38 [corey.bryant,r=trivial] Sync charm-helpers. 2016-01-04 16:26:40 -05:00
James Page
9cd5acc5d6 Add support for unit status 2015-10-08 16:44:50 -07: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
Liam Young
aaad5f2708 Charm helper sync 2015-09-10 10:30:40 +01:00
James Page
ecba1f60e1 Fixup tests 2015-09-10 10:23:56 +01:00
James Page
8d70fea693 Set stateful flag on storage-backend relation 2015-09-10 10:17:58 +01:00
Liam Young
88650e76aa Fix unit tests 2015-09-07 09:36:20 +01:00
Liam Young
04d5b68be2 Charm helper sync 2015-09-07 09:24:22 +01:00
Liam Young
c614d329b9 [gnuoy,trivial] Charmhelper sync (+1'd by mojo) 2015-09-03 10:44:48 +01:00
Liam Young
292ea3f9a3 Update unit test 2015-08-27 15:43:08 +01:00
Liam Young
6178c824b8 Switch to using shared ceph broker code 2015-08-27 10:33:17 +00:00
Liam Young
c27e04ad0c [gnuoy,trivial] Charmhelper sync (+1'd by mojo) 2015-08-19 14:53:01 +01:00
Corey Bryant
30fc98cb6e [corey.bryant,r=trivial] Sync charm-helpers to pick up Liberty support. 2015-08-18 13:34:34 -04:00
Liam Young
6ec47fca7d [gnuoy,trivial] Pre-release charmhelper sync to pickup leadership election peer migration fix 2015-08-03 15:01:12 +01:00
Liam Young
e7c2da2e8e [gnuoy,trivial] Pre-release charmhelper sync to pickup cli module 2015-07-31 14:11:44 +01:00
Liam Young
b90bbf2bd2 [gnuoy,trivial] Pre-release charmhelper sync 2015-07-29 11:50:52 +01:00
Ryan Beisner
a688267cfc resync hooks/charmhelpers 2015-06-29 14:28:46 +00:00
Ryan Beisner
30ec8191f4 sync hooks/charmhelpers 2015-06-25 16:07:45 +00:00
Ryan Beisner
47a6211e99 add amulet tests 2015-06-25 16:05:55 +00:00
Edward Hope-Morley
8c3d98b1b1 fix import mixup 2015-06-01 11:09:05 +01:00
Edward Hope-Morley
bc05578bab [hopem,r=]
Ensure cinder-volume service is restarted when we recieve
ack from ceph broker request so that we are sure it is
able to connect to newly created ceph resources.

Closes-Bug: 1450543
2015-05-23 20:17:25 -07:00
Liam Young
008cd1765e [gnuoy,trivial] Pre-release charmhelper sync 2015-04-23 15:56:00 +01:00
Ryan Beisner
6528c51aca auto sync charmhelpers 2015-04-16 21:33:21 +00:00
Liam Young
37e18f9866 [gnuoy,trivial] Pre-release charmhelper sync 2015-04-16 11:29:35 +01:00
James Page
87118dc1ea Automated resync of charm-helpers 2015-03-04 09:54:23 +00:00
Edward Hope-Morley
ebb96f8927 [trivial] charmhelpers sync 2015-02-24 11:03:24 +00: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
Liam Young
5ae1ca0b8e [gnuoy,trivial] Pre-release charmhelper sync 2015-01-26 09:48:49 +00:00
James Page
ff1d812914 [trivial] Resync helpers 2015-01-13 10:08:29 +00:00
Edward Hope-Morley
29e1ebc150 minor cleanup 2014-12-15 10:46:02 +00: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
James Page
65b278a04b [trivial] Resync charm-helpers 2014-12-15 09:25:18 +00:00
Corey Bryant
b8fcffcf66 Sync charm-helpers and actually pick up charmhelpers/__init__.py this time. 2014-12-11 17:47:26 +00:00