139 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
James Page
a1a9b1cbfc Add charm series data to metadata.yaml
This optimizes the publication process to the charm store, and
ensures that the charm code and version is consistent across all
supported Ubuntu series.

Change-Id: Ic7501e75e2f7a4ffe830ac6df5209ceaad21464e
2016-09-14 09:21:30 +01:00
Ryan Beisner
d9e0ba7a7f Update tox.ini files from release-tools gold copy
All OpenStack Charms now contain identical tox.ini files,
not to be modified or made unique within each charm repo.

This is to ensure consistency across charm repos in tox
target naming, approach and purpose, also giving the
charm dev and test experience additional consistency.

Also create empty dirs with .keep files where necessary.
Some classic charms have actions and/or lib dirs, and some
do not. In all classic charms, flake will now check those
dirs to ensure lint coverage of existing or future content.

Change-Id: I671077fbafb38bd4d2005fb2236bec416f79593f
2016-09-09 19:22:05 +00: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
Ryan Beisner
695848f0ba 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-*, dev-* and dfs-*
naming standards.

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

Also remove brittle auth conf checks which are failing at
cinder-ceph master. Even without those explicit checks, if auth
fails, functional tests will still fail and block.

Change-Id: I91e638f98f70c7098f089c7e60c1181632b39222
2016-07-20 03:34:22 +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
92f69b1444 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: I9ffc23d111d35833dc44fc33a27111bed55b6577
2016-03-23 09:30:16 +00:00
Billy Olsen
5a9a365141 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: I868a0555fe3d042a3c1620d0d296a28f9bf58737
2016-03-15 20:12:34 -07:00
James Page
4d1d17dfef Resync charm-helpers
Change-Id: I2f6debf44b5b35d272fe15847ba9257417cf5c8a
2016-03-02 12:07:12 +00:00
uoscibot
0f3210e930 Adapt imports and metadata for github move 2016-02-29 10:46:36 +00:00
James Page
8d2bc34018 Add gitreview prior to migration to openstack 2016-02-24 21:53:30 +00:00
James Page
085c29b2f9 Update amulet test definitions; Wait for workload status before testing. 2016-02-17 11:31:44 +00:00
James Page
cc49cfa67c Tidy tox targets 2016-02-16 07:01:31 +00:00
Ryan Beisner
8196a2f304 Update amulet test definitions; Wait for workload status before testing. 2016-02-12 21:28:36 +00:00
James Page
80e7811882 [trivial] charm-helpers sync 2016-01-19 15:00:17 +00:00
James Page
209ffc82e5 Fix liberty/mitaka typo from previous test definition update batch. 2016-01-19 14:34:14 +00:00
Ryan Beisner
2c3da40c9c Fix typo in mitaka amulet test definition 2016-01-19 12:47:42 +00:00
Edward Hope-Morley
6647c3eb70 [trivial] charm-helpers sync 2016-01-17 21:19:14 +00:00
Liam Young
f3c68f97e8 Update test combo definitions, remove Vivid deprecated release tests, update bundletester testplan yaml, update tests README. 2016-01-12 07:42:27 +00:00
Ryan Beisner
1254496784 Update bundletester testplan yaml file 2016-01-08 21:45:50 +00:00
Ryan Beisner
942347def2 Update tests/README 2016-01-08 21:45:35 +00:00
Ryan Beisner
539d7f171e Re-number amulet test file names; add missing combos as not-executable for now. 2016-01-08 21:45:12 +00:00
Ryan Beisner
9f4e870235 Move 00-setup to prevent extra, unnecessary bootstrap in test runs. 2016-01-08 21:44:52 +00:00
Ryan Beisner
1b3618aaf7 remove amulet tests for unsupported releases 2016-01-08 21:44:28 +00:00
Corey Bryant
09c7e0bb38 [corey.bryant,r=trivial] Sync charm-helpers. 2016-01-04 16:26:40 -05:00
James Page
834891e7f4 Update maintainer 2015-11-18 10:32:38 +00:00
James Page
c2b3f4d3a8 Add marker to avoid empty directory problem for git migration 2015-11-06 12:37:56 +00:00
Corey Bryant
78ae957aab [james-pages,r=corey.bryant] Add tox support for lint and unit tests. 2015-11-03 15:58:03 +00:00
James Page
2fb135098d Add tox support 2015-11-03 14:16:36 +00: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
Corey Bryant
aca8aae199 [beisner,r=corey.bryant] Add Amulet test dependencies and run unit tests with -v. 2015-10-07 09:44:22 -04:00
Ryan Beisner
2b6104696b update amulet test dependency setup file 2015-10-06 15:12:12 +00:00
Ryan Beisner
ae69513905 update bundletester test plan yaml file 2015-10-06 14:11:40 +00:00
Ryan Beisner
200822be0c update amulet test dependency setup file 2015-10-06 14:11:40 +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
Liam Young
b3d3597cd8 More amulet fixes for ceph broker conversation 2015-09-14 09:36:00 +00:00
Edward Hope-Morley
d6c44127e5 [jamespage,r=hopem]
Set 'stateless=True' on storage-backend relation so
notify relation that this backend may be handled as
a stateless backend.

Closes-Bug: 1493931
2015-09-13 16:26:13 +01:00
Liam Young
4a2041cb88 Fix amulet tests 2015-09-12 09:38:41 +01: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