Commit Graph

74 Commits

Author SHA1 Message Date
Liam Young 92b3c383ae Add required build packages
Change-Id: Icc221196efa8f02302499626af2a788537520387
2022-10-28 13:09:46 +00:00
Liam Young a27764024b Switch to binary builds
Change-Id: I56c6a5371c191f110f24c0dbdeec7c3f8730792c
2022-10-24 20:38:27 +00:00
Zuul 2eb9b5f0ab Merge "Add nbd kernel module for snapshot mounts" 2022-09-27 12:57:13 +00:00
Liam Young 95d4db18d1 Charm needs to run on bionic
Change-Id: Ica5a4093b6f28eabfff6eb337776abc2c9cf5e3c
2022-09-14 07:50:47 +00:00
Liam Young f674bcd4fa Add nbd kernel module for snapshot mounts
Add nbd kernel module for mounting snapshots.

Closes-Bug: 1961149
Change-Id: I59a8a02db3326026f58a775649b63935254b6cf6
2022-09-13 09:53:34 +00:00
Liam Young f13d1bf9e6 Add Focal Wallaby functional test
Add Focal Wallaby functional test and switch bundles to use edge.

Change-Id: I6319d408c3588b069a4cec953e99910844716c7a
2022-07-29 13:52:21 +00:00
Liam Young b996353310 Enable Trilio 4.2
Add new config options and use 4.2 ghostshare class

Change-Id: I1721984e262c643bc99f4491feff7bd7749825ac
2022-07-05 05:08:38 +00:00
Liam Young 710a728ee1 Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI
- Pin everything in wheelhouse.txt for bionic and focal support.
  This will need updating when the charm channels are created.

Change-Id: Ieb8cae3653380b7364bdbc128216bd27f924293a
2022-06-15 08:15:50 +00:00
Billy Olsen c9d4c4d368 Fix white space in config files
The tvault-contego.conf and tvault-object-store.conf files have jinja
templating to remove whitespace before and after the endif control
segments, which lead to invalid ini style config files. Correct the
white space removal directives.

Closes-Bug: 1949608
Change-Id: Id6634fb3825b9d6b9e003f8c477e21d798dfe046
2021-12-22 12:55:04 -07:00
Corey Bryant 4550a20201 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39

Change-Id: I3f5192f348164fdaed124519704fcb2f00871ab8
2021-11-24 16:28:25 -05:00
Liam Young e6c0e146e8 Add update-trilio action
Add update-trilio action which can be run after a Trilio
upgrade.

Trilio sometimes updates packages in package repositiories that
require DB migrations or config file changes. Since these package
updates are not applied by the charm as they would be by changing the
openstack-origin or triliovault-pkg-source the charm has no event to
react to to automatically perform the post package upgrade actions.
This change adds an action `update-trilio` which can
be run to apply the changes.

Change-Id: I4c12bc9ff9b8b20a5ddc16a040f70b87f4cac30b
2021-08-17 11:25:55 +00:00
Aurelien Lourot d3a9cd4668 Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: I0f206b52c2c4a746c028ef00fd22759a8cb31427
2021-07-22 15:01:17 +02:00
Liam Young c7874e862a Remove experimental from s3 options
Remove the experimental status from the S3 options. Update the
README documentation to provide information on configuring the
appropriate backend to use for NFS or S3 storage.

This change is mainly copied from the corresponding change to
trilio-wlm ( I7836754529a8b5d067a86077e1e004fa2f53ec6e ). Bug
1933809 *1 is tracking the consolidation of duplicate code.

*1 https://bugs.launchpad.net/charm-trilio-data-mover/+bug/1933809

Change-Id: I868240fee4f5e767c9dac2d41ddc128bc307e4ae
2021-06-28 08:57:09 +00:00
Zuul 1506f53f60 Merge "Add config option to specify S3 cert" 2021-06-17 15:39:16 +00:00
Zuul f80811c1a0 Merge "Add new option for 4.1 hotfix" 2021-06-16 02:23:41 +00:00
Liam Young d9cdd971f9 Add new option for 4.1 hotfix
Add new option, cinder-http-retries, for 4.1 hotfixa

Change-Id: Ic40a1722d0225024c2d78c62cf03c07b8a6ab8d5
2021-06-14 13:25:02 +00:00
Liam Young e9328de170 Add config option to specify S3 cert
Depends-On: I2351baa89b3f9d33eb2f9ad6bf4f82d044b2d330
Closes-Bug: 1930622
Change-Id: I535c3840e4bc0a624bca2a5231c104cbddd4490d
2021-06-14 13:20:02 +00:00
Zuul 61f746fe8e Merge "rebuild - restore c-h proxy env vars for add-apt-repository" 2021-06-04 23:36:04 +00:00
Liam Young 2ca2102c83 Add Focal Ussuri S3 test
Change-Id: Ia68e3bd58fedc5b4cb73230988530e3bb73b822d
2021-05-25 16:14:24 +00:00
Corey Bryant 7d5b872dfd rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: I7125d61c06641a9791e1ddb478ca847a44a5a6bb
2021-05-13 09:13:33 -04:00
Liam Young 8e36f135e6 This patch add experimental s3 support for Trilio
This patch allows an s3 backend to be used to store Trilio artefacts.
Connection auth and endpoint are set via the s3 charm config options.
To use an s3 backend the backup-target-type should be set to
'experimental-s3'.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/516

Change-Id: I1dab03d25e6e583d88d69ea15e5b5119151c9676
2021-05-13 09:22:20 +00:00
Zuul cb2e78c437 Merge "Add new relation in README" 2021-03-16 08:34:05 +00:00
Peter Matulis 67013e5869 Add new relation in README
There was a new relation introduced in the 4.1 release.

All the Trilio charm READMEs will need to be updated for
MySQL8 soon.

Change-Id: Iaf06af27a1cef780983ec75e4c136c6aaf2a00ea
2021-03-15 13:08:23 -04:00
Liam Young 2a95df2a9e Extend gate tests for Trilio 4.0 and 4.1
Change-Id: I1179c776b06e173e4dc59bfedfc13ef7d0e315f5
2021-03-15 11:35:38 +00:00
Zuul 42358bdee5 Merge "Add new osci.yaml" 2021-03-11 17:28:46 +00:00
Chris MacNaughton 3febc431a8 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: Id44d2037d5743bc882388141d726194c51d82fbf
2021-02-18 08:38:20 +01:00
Alex Kavanagh f81738644e Updates to pin charm-tools to 2.8.3
* Update requirements.txt to pin charm-tools to 2.8.3
* Update tox.ini to change the build parameters.
* This upgrades from <2.7 which adds reproducible charms
* Bug was fixed that controlled the default output directory
  doesn't get 'builds' appended.  The tox change puts it
  back so that stable & master both build to the same
  directory.  This may be reviewed in the future.

Change-Id: Ia30cf05bbbdfa28fbb87d0b0435c33a540796c99
2021-02-17 12:18:54 +00:00
Alex Kavanagh bb884ac468 Ensure that the Trilio charm for rocky onwards is py3
The linked bug indicates that the charm fails to install on Focal which
needs python3.  This fix ensures that the Rocky onwards charm support is
python3.

Change-Id: I54db2f0f2f5b720b9d6e3695f0d84947c667aab5
Closes-Bug: #1914452
2021-02-03 20:09:19 +00:00
Alex Kavanagh d1a0122ecc Rebuild to use charm-tools pre 2.8 release
Reverting to an earlier version of charm-tools to
resolve some building issues seen with latest 2.8.2
version.

Change-Id: I86d0ce48deb00c9274471e7df6c6849d3c25f065
2021-02-02 17:13:51 +00:00
David Ames 13889822da Rebuild with udpated charm-tools 2.8.2
Validate the newest version of charm-tools: 2.8.2
https://github.com/juju/charm-tools/pull/598

Change-Id: I116f695fff73260901f17dee0f1ec0757cace030
2021-02-01 14:13:16 -08:00
Alex Kavanagh 3e58de9110 Updates for testing period for 20.01 release
Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: I98b6c3292cf1e5f694882ce3c77b81e24062d519
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-01-29 16:09:44 +01:00
Zuul 88ebd38cdd Merge "Add support for Trilio 4.1" 2021-01-13 14:12:38 +00:00
Liam Young d56c6fb448 Add support for Trilio 4.1
Change-Id: I667c606b97a683b74a4d8fdd8b048e5f8e9a56f4
2021-01-12 13:54:51 +00:00
Aurelien Lourot b1fadc5f71 Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: If853844206465a8c5352e1f72f2b15edceee58ae
2020-12-11 14:05:18 +01:00
Alex Kavanagh f09fa9c5df Rebuild reactive charms to pick up latest charm-helpers release.
v0.20.18 has been released and needs incorporating into the reactive charms.

Change-Id: Iea115d6e11aacd27cbc1bf6e8c5f416f228b1f1f
2020-10-14 16:40:03 +01:00
Alex Kavanagh 77636e2af3 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: If0a78625ddbe903d45b7cd017bb0d00da110e4c6
2020-09-26 18:40:37 +01:00
James Page efcee2b9df Support multiple NFS shares for bind mounts
Rebuild to pickup changes to charms.openstack classes to support
use of nfs-shares configuration options containing multiple
comma separated nfs shares.

Update description of action to reflect this change.

Change-Id: If03387fa06ecf546a640b20415497800f7ef7d9d
Closes-Bug: 1894817
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/410
2020-09-09 10:52:42 +01:00
Aurelien Lourot 50c11d0e99 Fix ceph-relation-changed error
TypeError: 'str' object is not callable
After recent interface change

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/400
Change-Id: I7a45b1ffe7d71bd44201a72510d6b56a1e1a4824
Closes-Bug: #1893445
2020-09-07 09:36:16 +01:00
Zuul e0bcefcd9d Merge "Release sync for 20.08" 2020-07-30 13:41:33 +00:00
James Page 9444234ef6 Add focal and groovy to metadata
Enable deployment with focal and groovy for testing.

Change-Id: Id4c1f4ab2085409fb300d5a26e23599403538210
2020-07-29 11:15:07 +01:00
Alex Kavanagh 5bf9d13cad Remove groovy from metadata
The charm shouldn't support it as the vendor's system doens't support
it.

Change-Id: I8b74199d9267f3a2c43d06555026d285f2a4f421
2020-07-28 11:00:14 +01:00
Alex Kavanagh 62d5a50125 Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt

Change-Id: I7ba3dfe49440c474d43bda1fa8f7664581050fc8
2020-07-27 21:00:16 +01:00
Zuul 62ad8e54da Merge "Updates for 20.08 cycle start for groovy and libs" 2020-06-16 11:10:55 +00:00
James Page c94151463d Trigger upgrades on source change
Ensure that a change to the triliovault-pkg-source option forces
an upgrade of any previously installed packages.

Refactor codebase to use TrilioVault plugin classes from
charms.openstack.

Change-Id: I0c1e7880bb08997275efa28c7cc53a1e3a573259
Closes-Bug: 1879904
2020-06-11 15:53:17 +01:00
Alex Kavanagh d9cbd393f5 Updates for 20.08 cycle start for groovy and libs
- Adds groovy to the series in the metadata
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild

Change-Id: I96cecf7c9ef7efe02bcfa03054ec485f13f06a70
2020-06-02 14:38:00 +01:00
James Page 4655abc835 Update for Trilio 4.0 RC
Update trilio-pkg-source configuration option for 4.0 repository.

Change-Id: Ife9d95d7c1126ca66442da2af8278d9db61a2b04
2020-05-21 08:32:58 +01:00
James Page 51627ad5aa Misc tidyup ready for release
Mark python version option as deprecated as it has no effect.

Drop Trilio package source from bundles.

Set correct default in charm for trilio-pkg-source.

Change-Id: I0ca5bb22938db99dd4c486807aafe59ce4b7e5f5
2020-05-14 08:36:50 +01:00
Alex Kavanagh d2def3907a Rebuild for sync charm-helpers for 20.05 release
Change-Id: I9d206baa30a2237d171d03e6220705d7b265f973
2020-05-11 13:05:15 +01:00
James Page 59bd917906 Add functional testing
Trilio supports Ubuntu 18.04 LTS + OpenStack Queens -> Train.

Add function testing bundles and configuration to cover these
combinations.

Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/258
Change-Id: I2feedf94862e7e7972fc87f2d0f8acefbc754dca
2020-05-05 12:56:38 +01:00
James Page 25908441f7 Add support for snapshots from ceph
The data-mover service requires direct access to the ceph cluster
in order to snapshot volumes etc.

Add support for the ceph-client interface; configuration and keyring
are writen to a charm specific location to avoid interference with
any other ceph services that may be deployed in the same unit.

TrilioVault requires some slight specialised ceph keyring and conf
placement - see code for notes.

Change-Id: If6998d668fc3e7bd164069ba01a157e136133706
2020-05-04 12:05:19 +01:00