Commit Graph

50 Commits

Author SHA1 Message Date
Ryan Beisner 72b7a5b16f Update requirements
Change-Id: Ic9e43835bcc84441414f93dfd851c571c611fb19
2018-10-03 11:15:05 -05:00
Ryan Beisner a0a82b50f4 Add cosmic
Add a tactical change which is already merged into charm-helpers.

This needs to go into all charms to solve the chicken:egg issue
where cosmic is untestable until this change exists.

Reference:

4835c6c167

Change-Id: I0dfc8408eca5105828e71477cb736eceed8f7148
2018-09-19 13:24:20 +02:00
Ryan Beisner eef2a8be2c Update functional test definitions
Change-Id: Ib8c7ccae838d4d79a5f9cf737fa8fd3478afadc4
2018-08-28 17:23:01 -07:00
Chris MacNaughton 43d868dc21 Sync charm-helpers to ensure Rocky support
Change-Id: Ib1fb899fbbe89158b0b5309b7fa8cb78229c9e40
2018-07-13 15:51:58 +02:00
Corey Bryant ec8bcd5f9d Sync charm-helpers for Rocky series support
Change-Id: Iec56fb9c4a2bfd79c3580dca54c5ba68d64fc4c0
2018-06-21 18:51:42 +00:00
Ryan Beisner 22ce311b0b
No reformat
Do not reformat devices.  A subsequent change will be necessary
to account for conditions where a reformat is still desired,
such as a set of blocking states and user-driven actions.

Partial-bug: #1698154

Depends-On: I90a866aa138d18e4242783c42d4c7c587f696d7d
Change-Id: I3a41ab38e7a1679cf4f5380a7cc56556da3aaf2b
2018-06-04 12:40:47 +02:00
James Page 2069e620b7 Add support for vault key management with vaultlocker
vaultlocker provides support for storage of encryption keys
for LUKS based dm-crypt device in Hashicorp Vault.

Add support for this key management approach for Ceph
Luminous or later.   Applications will block until vault
has been initialized and unsealed at which point OSD devices
will be prepared and booted into the Ceph cluster.

The dm-crypt layer is placed between the block device
parition and the top level LVM PV used to create VG's
and LV's to support OSD operation.

Vaultlocker enables a systemd unit for each encrypted
block device to perform unlocking during reboots of the
unit; ceph-volume will then detect the new VG/LV's and
boot the ceph-osd processes as required.

Note that vault/vaultlocker usage is only supported with
ceph-volume, which was introduced into the Ubuntu packages
as of the 12.2.4 point release for Luminous.  If vault is
configured as the key manager in deployments using older
versions, a hook error will be thrown with a blocked
status message to this effect.

Change-Id: I713492d1fd8d371439e96f9eae824b4fe7260e47
Depends-On: If73e7bd518a7bc60c2db08e2aa3a93dcfe79c0dd
Depends-On: https://github.com/juju/charm-helpers/pull/159
2018-05-15 08:28:15 +01:00
Felipe Reyes 644dea83de Sync charm-helpers
Change-Id: I8e565d86b15c959ba224136b15e9db037892f6f5
Closes-Bug: #1765805
2018-05-02 16:06:36 -03:00
James Page b6dca11a1b luminous: ceph-volume switch
Switch to using ceph-volume + LVM for managing block devices
for Luminous and later; this is the upstream preferred approach
to managing OSD devices, allowing for more flexibility in terms
of use of crypto and logical volumes.

Change-Id: I30c4d29e6f568ac2e30a45b1a7bc0e68685c3707
Depends-On: I1675b67d364ae6042129a8a717d4bdffff5bde92
2018-04-10 09:17:38 +01:00
Ryan Beisner 921b99875c Sync charm-helpers
Change-Id: I6b3a8b4f97e42d820792db6533874405d3625364
2018-02-21 14:07:25 -06:00
Ryan Beisner 3728254e8b Sync charm-helpers
Notable issues resolved:

openstack_upgrade_available() broken for swift
https://bugs.launchpad.net/charm-swift-proxy/+bug/1743847

haproxy context doesn't consider bindings
https://bugs.launchpad.net/charm-helpers/+bug/1735421

regression in haproxy check
https://bugs.launchpad.net/charm-helpers/+bug/1743287

Change-Id: I86b23f0be2e5098696833996ca807d354fe72751
2018-01-19 12:07:41 +00:00
Andrew McLeod ed84524e3b Enable xenial-pike amulet test
Make default func27-smoke xenial-pike
Charm-helpers sync

Review and merge https://github.com/juju/charm-helpers/pull/69 first.

Change-Id: I32a04dfc995929840f8c544e1d5ed58066515210
2017-12-06 19:10:14 +00:00
David Ames da51f91680 Py3 Fixes
Charm-helpers sync for python3 fixes.
Update Exception.message to use str(Exception)

Change-Id: I0e354d0d07f220e3285eb3e863498918c82df2ca
2017-12-05 18:55:28 +00:00
James Page 1efade7f7c Resync charmhelpers for py3 fixes
Includes fix for failed sysctl tuning with lxdbr0.

Change-Id: I53de0d6dd9e9c4035f02405d172e1e2e5224daf0
Closes-Bug: 1735070
2017-11-29 09:20:12 +00:00
Ryan Beisner 7cc0308d5e Sync charm-helpers
Change-Id: I7521ba297ab6a9d23246ca39b7cf508fd0b50f48
2017-11-22 18:23:35 +00:00
Alex Kavanagh 4e1ecd55b8 Bring ceph-osd to Python 3
* Synced version of charm-helpers
* Synced version of charms.ceph to bring in Py3 compatible library
  methods.

Change-Id: I5ac45740f48a71d9cb0c5943472fc8590a723514
2017-11-17 12:13:54 +00:00
Frode Nordahl 8ba8bce657 Update functional test model to use cinder-ceph subordinate
Change-Id: I2d441da31e8e3b6570bf237661bf22c294d8ee73
Related-Bug: #1719742
2017-10-23 17:17:43 +02:00
Ryan Beisner 4189b4f8ee Sync charm-helpers
Change-Id: I12b0ba1b814cbba2dbb3474de5c0b180df03628a
2017-08-24 16:47:32 -05:00
Xav Paice 70eac013d8 Update ceph and charmhelpers
Straight update using the Makefile to update helper libraries.

Change-Id: I820118b6cc8a0482e609ccbc7ed3c312b2277fdd
2017-06-28 10:02:37 +12:00
James Page 0aa8e01af3 Updates for pike b1
Resync charmhelpers for pike version support.

Add pike tests but leave disabled until all charms support
pike.

Change-Id: Iafcbca139ca18afd3243ba05cf5170dd1ca57214
2017-05-12 07:08:45 +02:00
David Ames fff16b0059 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I20bd84a97d741c4303a60ef40568e59f6fc54f1b
2017-04-28 08:41:57 -07:00
Billy Olsen 2c5406b6b3 Upgrade OSDs one at a time when changing ownership
Some upgrade scenarios (hammer->jewel) require that the ownership
of the ceph osd directories are changed from root:root to ceph:ceph.
This patch improves the upgrade experience by upgrading one OSD at
a time as opposed to stopping all services, changing file ownership,
and then restarting all services at once.

This patch makes use of the `setuser match path` directive in the
ceph.conf, which causes the ceph daemon to start as the owner of the
OSD's root directory. This allows the ceph OSDs to continue running
should an unforeseen incident occur as part of this upgrade.

Change-Id: I00fdbe0fd113c56209429341f0a10797e5baee5a
Closes-Bug: #1662591
2017-03-28 12:45:42 -07:00
David Ames 42b71274d6 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 unit test failures.

Change-Id: Ia14904339099d84d09a2fce171740459a76a8367
2017-03-23 09:29:00 +00:00
David Ames 9af76790d5 Pre-release charm-helpers sync 17.02
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: Ia20542863ece59ee93d9883af83250b0d3208b60
2017-02-14 14:47:30 -08:00
Chris MacNaughton 618fb25a8c Remove /var/lib/ceph from updatedb
This stops updatedb from indexing the storage locations

Closes-bug: 1520226

Change-Id: I3370af6c31689392b915f402e53a328f061ef4b0
2017-01-25 09:22:14 -05:00
Ryan Beisner 3a3cbcb37b 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: I367b6e9e22464c0b85e71ad330234477699835e0
2016-12-03 16:41:49 +00:00
Ryan Beisner b6f4efa89e 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: Icb3adfbe08c9db339499f69523f7b223dda94c0c
2016-10-10 20:53:52 -05:00
David Ames 6ba551b13e Pre-release charm-helpers sync 16.10
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I93569f02dad733e75869df21dc125429b17ec2e5
2016-09-30 08:49:58 -07:00
James Page 5e506b8c50 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: If1ec3dcc5025d1a1f7e64f21481412ad630050ea
2016-09-21 09:47:09 +01:00
Liam Young 1f64623e80 Pre 1607 release charm-helpers sync
Sync charmhelpers to pick up bug fixes for 1607 release

Change-Id: I3bfa157e548f5a60ade8ae943178c0de8ccfcf58
2016-07-21 14:25:49 +00:00
David Ames ab5de8087a Pre-release charm-helpers sync
To begin release testing get each charm up to date with lp:charm-helpers

Change-Id: I671fa63c665337295c1c448709fcc38123d4508d
2016-07-15 10:48:51 -07:00
James Page 107291ea84 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: I9ab9a5d8801536e68e3ee672be0cc9accdb5fd9a
2016-07-06 16:29:43 +01:00
James Page 2cc4e952a0 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: Ib0c1da50750027f343bd3b77dcd6b85a059435dd
2016-06-17 11:37:15 +01:00
Liam Young 828ae40f59 Charmhelper sync before 1604 testing
Change-Id: I688e367fa758cf9f052e85de13b3c549876807a7
2016-04-12 14:06:49 +00:00
Edward Hope-Morley 62cc614573 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: Ic417d678d3b0f7bfda5b393628a67297d7e79107
2016-03-24 11:14:47 +00:00
James Page d938364366 Resync charm-helpers
Change-Id: Ibbfcc6d2f0086ee9baf347ccfdf0344ed9c0fb82
2016-03-02 12:06:15 +00:00
Ryan Beisner e8d7bc59fe sync charmhelpers for mitaka cloud archive support 2016-01-22 22:29:34 +00:00
Liam Young effb78693f [gnuoy,trivial] Charmhelper sync (+1'd by mojo) 2015-08-19 14:50:42 +01:00
Ryan Beisner cb96ab2a3c resync tests/charmhelpers 2015-06-29 14:24:05 +00:00
Ryan Beisner 7ab345fb05 re-sync tests/charmhelpers for cinder/glance helper updates 2015-06-23 23:35:27 +00:00
Ryan Beisner d68d9a9f67 Refactor osd pool checks for flexibility and reusability in other ceph-related charms (radosgw). 2015-06-22 16:11:44 +00:00
Ryan Beisner 4232f473ed update tests for process checking on systemd systems; misc cleanup. 2015-06-20 15:27:28 +00:00
Ryan Beisner 7e5855acdb sync tests/charmhelpers 2015-06-17 16:33:37 +00:00
Ryan Beisner 111e186e38 auto sync charmhelpers 2015-04-16 21:32:48 +00:00
Edward Hope-Morley 9d5016a007 [trivial] charmhelpers sync 2015-02-24 11:00:08 +00:00
Liam Young c1e7833dbd [gnuoy,trivial] Pre-release charmhelper sync 2015-01-26 11:51:28 +00:00
James Page 499164e52d [trivial] Resync charm-helpers 2014-12-15 09:56:18 +00:00
Jorge Niedbalski 15fbd7b3a1 [all] make sync for charmhelpers 2014-11-25 13:52:35 -03:00
Corey Bryant c1a7b3b285 Sync charm-helpers to pick up lint fix. 2014-09-29 20:39:40 +00:00
Corey Bryant 1383cf6c5c Sync charm-helpers. 2014-09-27 17:18:26 +00:00