Commit Graph

77 Commits

Author SHA1 Message Date
Corey Bryant e3091504fe Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove groovy bundles

Change-Id: I7d9f44bd0dbff25a6c2b0649aa3a86c1869cd7d8
2021-11-05 13:53:31 -04:00
Alex Kavanagh e1ca4001ac charm-helpers sync for 21.10 release
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: If2397cf401d1bcec3ff7c622fa9e3477291fc7eb
2021-09-28 13:02:13 +01:00
Corey Bryant bc762294c6 c-h sync - restore proxy env vars for add-apt-repository
Change-Id: Id512e0c6684ec4ccab7f917b0a4bb6caf4f78222
2021-05-13 08:47:36 -04:00
Alex Kavanagh 4f51930798 21.04 sync - add 'hirsute' in UBUNTU_RELEASES
The 'hirsute' key in c-h/core/host_factory/ubuntu.py:
UBUNTU_RELEASES had been missed out, and is needed for
hirsute support in many of the charms.  This sync is to
add just that key.  See also [1]

Note that this sync is only for classic charms.

[1] https://github.com/juju/charm-helpers/pull/598

Change-Id: Ia190032a975de9bd242c724e54407918be817bc5
2021-04-11 17:00:13 +01:00
Alex Kavanagh cc72eee482 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I520e34a35b250954c0691250c779eee6e804c749
2021-04-03 20:37:28 -07:00
Alex Kavanagh af9c467e35 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
* Include NoNetworkBinding late fix.

func-test-pr: https://github.com/openstack-charmers/zaza/pull/409
Change-Id: I1a97004410c5cf4ef98164281137bce46756b12c
2021-01-20 10:19:14 +00:00
Alex Kavanagh e586074e60 Updates for testing period for 20.01 release
* 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: I99b9f3570549921b40c937a983c2624e254bc677
2021-01-12 15:43:19 +00:00
Chris MacNaughton a197911d6c Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: I6896ca04c10468466d2956909bc9a8df69319f03
2020-10-12 11:23:57 +02:00
Alex Kavanagh a4635c13a8 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: I1bf6a834b3678f631f6335af9f0e8b779f863c66
2020-09-27 19:39:08 +01:00
Alex Kavanagh f2916a4f09 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: Ib42a0228f299acbd9dc6a9b9c6c232f0fedbfc16
2020-07-27 20:59:12 +01:00
Alex Kavanagh 9f90f8803b 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: Id9e0319806471fa4d074c77bff105e2083313e19
2020-06-02 14:36:53 +01:00
Aurelien Lourot 654d4bfc4c Sync helpers for 20.05
Change-Id: Ibc49348b236c1b7dd4dc4ab2408940180b60cff0
2020-05-18 14:49:55 +02:00
Aurelien Lourot b475200016 Pre-freeze 'make sync'
Change-Id: Ia5ed17eb7a0e58d5ebabf329b915ba8a23ef4a35
2020-05-07 16:37:04 +02:00
Aurelien Lourot 31fe0059f2 Remove Amulet leftover and support Python 3.8
Support Python 3.8 by pulling a version of charm-helpers containing https://github.com/juju/charm-helpers/pull/423

Change-Id: I1167c67fa23482862900989d5105162af2599309
Closes-Bug: #1828424
2020-03-05 12:36:27 +01:00
Liam Young 1cf3fa1ac1 Charmhelper sync for 20.02
Change-Id: I714b35f97c7736012702916fcb038540279434c1
2020-02-04 16:39:53 +00:00
Liam Young 8443c165f9 Notify clients of series upgrade
When the percona cluster is undergoing a series upgrade, clients
should suspend db activity in their hooks (like db migrations).

This change sents a notification of upgrade down the shared-db
relation which clients can then react to.

Change-Id: I5d8ed7d3935db5568c50f8d585e37a4d0cc6914f
2020-01-29 12:56:23 +00:00
Corey Bryant f5ee53234b Sync charm-helpers for Ussuri/Focal release and version details
Change-Id: I9b34dfdc141338f7c80065b6d1853ce651ba15ed
2020-01-17 14:22:57 -05:00
Ryan Beisner 9b68baa799
Sync charm/ceph helpers, tox, and requirements
Change-Id: I340623964d1d016fb8425803bf963394a27935e5
2019-09-30 22:10:15 -05:00
Chris MacNaughton 7fe6fcf647 Sync charm-helpers
Change-Id: Id32602540f81dfe1840db4d7053c95d71c600063
2019-07-16 07:06:03 +00:00
Chris MacNaughton 16c0f4480b Sync charm-helpers to enable Ubuntu Disco
Change-Id: Ia01028c45546f2130f1b660e8ca6977b84b2821e
2019-04-05 17:17:03 +02:00
Chris MacNaughton e0e59083e2 Sync charm-helpers for Stein release
As a part of the Stein release, we need to ensure
that charmhelpers is up to date.

Change-Id: I2dc2febdaa4a6c4a5b815f95b772cf4c0dda2606
2019-04-04 10:18:02 +02:00
David Ames 8bc44a9fde Update charm-helpers-hooks.yaml and sync ch
Using the new version of the sync tool which removes the charmhelpers
directory before syncing, run charm helpers sync to find any unexpected
missing dependencies.

Change-Id: Iff046c2fbcf35cc44845a432b8ca2dfcfe257dde
2019-02-12 15:58:27 -08:00
Corey Bryant 7ac7991b64 Sync charm-helpers
Change-Id: I3bc67f04f1652ddec34a9b6efec47e7c56ae90ee
2019-01-11 14:39:55 +00:00
Corey Bryant 8ab66fcb16 Sync charm-helpers
Change-Id: Ia68f9f03c10fc747dca8aabe487eea021df907dd
2019-01-08 15:25:45 +00:00
Liam Young 29b586c61b Use chelper to configure vip and dnsha settings
Use helpers from charmhelpers to generate the data to send down the
relation to the hacluster charm.

This results in a few changes in behaviour:

1) The charm will no longer specify a nic name to bind the vip. This
   is because Pacemaker VIP resources are able to automatically
   detect and configure correct iface and netmask parameters based
   on local configuration of the unit.
2) The original iface named VIP resource will be stopped and deleted
   prior to the creation of the new short hash named VIP resource.

Change-Id: Id3804fb7913662b8c573f59d84e663561a687b1f
2018-12-12 09:55:45 +00:00
Tytus Kurek 117f2bd290 Sync charm-helpers
Change-Id: I2c0a2003528eb025fec7c62b0de9b9f8fcb42923
2018-11-20 09:22:01 +01:00
Ryan Beisner 0d56328256
Sync charm-helpers
Change-Id: I0a2d9b05edf098b0a9fb303cb7b7a1905b91932f
2018-11-07 15:35:51 -06:00
Ryan Beisner 9b6f192ed9 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: I182314eee702cf4bf842b26cb2f2a5c0ee03dcc7
2018-09-19 13:33:21 +02:00
Ryan Beisner 960e2ac18e Update functional test definitions
Change-Id: Ib0fe0304761729d6df494cbe6cae42ebd9300a12
2018-08-27 18:17:49 -05:00
Chris MacNaughton e49f780083 Sync charm-helpers to ensure Rocky support
Change-Id: Ibf2bbd56a06deda4770781edaeb61340b774b3c1
2018-07-13 15:59:09 +02:00
David Ames caadf6cd7a Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I137ad6fad748f751da53efa21931f9f7fcda9616
2018-05-08 12:57:33 -07:00
David Ames 801c2e7829 Redesign cluster buildup process
In order to fix bug#1756928 the whole cluster buildup process needed to
be redesigned. The assumptions about what is_bootstrapped and clustered
meant and when to restart on configuration changed needed to be
re-evaluated.

The timing of restarts needed to be protected to avoid collisions.
Only bootstrapped hosts should go in to the
wsrep_cluster_address=gcomm:// setting. Adding or removing units should
be handled gracefully. Starting with a single unit and expanding to a
cluster must work.

This change guarantees mysqld is restarted when the configuration file
changes and meets all the above requirements. As a consequence of the redesign,
the workload status now more accurately reflects the state of the unit.

Charm-helpers sync to bring in distributed_wait fix.

Closes-Bug: #1756308
Closes-Bug: #1756928
Change-Id: I0742e6889b32201806cec6a0b5835e11a8027567
2018-03-29 09:24:05 -07:00
Corey Bryant 7d835b8674 Add support for PXC 5.7 and xtrabackup 2.4
Bionic will ship with Percona XtraDB Cluster 5.7 and a newer
version of Percona XtraBackup; the majority of charm changes
are associated with the use of native mysql{@} units for
bootstrap and startup of mysqld.

Co-Authored-By: James Page <james.page@ubuntu.com>
Change-Id: I50c5642e11393da3bc03de0ef0b9af4c32e9a0c9
2018-03-09 11:55:43 +00:00
Ryan Beisner c54685d8e1 Sync charm-helpers
Change-Id: I6beeb8282d1ab1b7b1dd9ae280f2373d320912f9
2018-02-21 14:10:33 -06:00
Ryan Beisner b68d29ce6c 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: I542fe7ac3f407f607f9ed03865f5919de883ae5c
2018-01-19 12:10:51 +00:00
Ryan Beisner 0abe0c4b92 Sync charm-helpers
Change-Id: Iaa2708cd9c067f57442d3116d1f962cda5c4ea27
2017-11-22 18:49:39 +00:00
Andrew McLeod f75b58ea4a Enable artful amulet test
Rename tests to align with ubuntu releases;
Remove explicit openstack release amulet tests
Make default func27-smoke xenial
Charm-helpers sync

Change-Id: I6de9d3f052536827157b191f75e5d8f9b271f80e
2017-11-15 11:21:32 +13:00
Ryan Beisner 1e4cc0bc8f Sync charm-helpers
Change-Id: Ifab2cdced938fc17ff0661742cd7c872cca97859
2017-08-24 17:15:25 -05:00
Felipe Reyes 62ed38b7b2 Resync charm-helpers for support to change passwords
Change-Id: I1337096eb32250285e4a4a5d2b1975f91993816a
Partial-Bug: 1436093
2017-07-28 16:23:05 -04:00
Ryan Beisner df0bb60803 Resync charm-helpers for sources repo ports fix
Change-Id: I9c562c0e23fcde2745794fca221c210223874241
Closes-bug: #1611134
2017-05-25 11:06:06 -05:00
James Page 3facb32aff Correctly quote all MySQL syntax
Resync charm-helpers to ensure that MySQL syntax is correctly
quoted with single quotes, supporting use of the db-{admin} relation
with services containing a dash.

Change-Id: I859133263a8200e82e73d74837bcb91a18b3e0ff
Closes-Bug: 1675220
2017-05-15 12:21:46 +01:00
David Ames 45f5a8a9a6 Enable Zesty-Ocata Amulet Tests
- Turn on Zesty-Ocata Amulet test definitions.
- Standardize test-requirements.txt
- Sync charm helpers for various fixes

Change-Id: I22d7f8f37bf53635cb689803eb6e9b5170181bb1
2017-05-02 16:04:45 -07:00
Alex Kavanagh 00b5990e74 Fix alphanumeric comparisons for ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: I61a6831f381664f9378a1b6a7a119cf3a2c026c2
Related-Bug: #1659575
2017-04-04 20:39:18 +01:00
David Ames 81f1142b6a Enable Ocata Amulet Tests
- Add Zesty as a supported series to metadata.yaml.
- 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 test failures.

Change-Id: I8f8ccdaf283ba1fa3d3a0efc0014ce49199ddb2a
2017-03-21 17:43:53 +00:00
James Page fd6097fcb2 Redux amulet tests
Refactor to support direct use of BasicDeployment test class
in all gate tests.  As hacluster now defaults to using unicast
transport, the configuration for multicast device address is
no longer required and can be dropped, removing the need to
specialize tests on a per series basis.

Use min-cluster-size in tests to ensure that pxc clusters
build out correctly.

Refactor specific test cases into BasicDeployment test
class so they get executed against all series, including

    kill mysqld test
    pause/resume tests

Closes-Bug: 1546577

Change-Id: I239946808f68a0225b49c0327da2b4d35715b837
2017-03-07 15:56:33 +00:00
James Page bda27479a4 Add tuning-level configuration option
Inline with the mysql charm, add a tuning-level configuration option
that allows end users to change the configuration profile for PXC.

This option supports three values

   safest (default): use configuration options with best data
                     integrity guarantees.
   fast:             compromise some data integrity guarantees
                     to improve performance.
   unsafe:           pretty much throw away all data integrity
                     guarantees to maximise performance.

In clustered deployments, 'fast' and 'unsafe' may be appropriate to
use but should be considered carefully before reconfiguration away
from the default 'safest' option.

Right now, this option tweaks the innodb_flush_log_at_trx_commit
value for PXC:

   safest (default): 1
   fast:             2
   unsafe:           0

but should be used for other tuning optimizations that come along
in the future.

Also add direct configuration options for:

   innodb-change-buffering
   innodb-io-capacity

to allow end users to tweak other performance optimizations that
we can't yet do automatically using charm options.

This commit also includes a resync of charm-helpers, which includes
the fix to flush priviledges after adding grants to resolve bug
1513239.

Change-Id: I7c31e3bfbb825ae7091913e678dd1b7893892d1d
Closes-Bug: 1599222
Closes-Bug: 1513239
2017-03-03 15:00:56 +00:00
James Page 55154de2ee Ensure sane default memory configuration
Cap default memory consumption at 512MB or 50% of system memory -
whichever is the lowest - to ensure that deployments in containers
on large server infrastructure don't end up consuming silly
amounts of memory by default.

Update tests to not explicity configure dataset-size, and to
remove the constraint for a larger VM for testing - with the
performance schema disabled by default things should fit into
a default instance size in the gate.

Change-Id: Ifb9bd7e28e160190913f6bd03b84073a2857e4d7
2017-03-01 11:10:01 +00:00
David Ames 2efdae7dad Pre-release charm-helpers sync 17.02
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I96082b8e448bc9c17451f0c6e5c98b6d174e8bf5
2017-02-14 11:59:53 -08:00
Ryan Beisner 23a76721f9 Update Amulet defs, series metadata and c-h sync
- Remove problematic tests from gate, place in dev-* re:
https://bugs.launchpad.net/bugs/1546577

- 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.

- Add Newton tests.

Change-Id: I50e72c026fa3e62fcd29a04572c18b5bcaa59a85
2016-12-06 11:30:52 -08:00
David Ames 9d81bcdd80 Pre-release charm-helpers sync 16.10
Get each charm up to date with lp:charm-helpers for release testing.

Change-Id: I2be9f6440620694e95e415b9ee6e4c77ff191fca
2016-09-30 09:20:13 -07:00