Commit Graph

25 Commits

Author SHA1 Message Date
Alex Kavanagh 9c12812735 Switch the charm to support py3
Some major changes:
* the charm has been rebased (from a Python perspective) to be rooted in
  the charm directory.  This is a single root.
* Imports have been changed so that the don't add lots of imports to the
  namespace of the module doing the import.
* The code that used to run at module import time has been made lazy
  such that it only has to run if the relevant functions are called.
  This includes restart_on_change parameters, the harden function and
  the parameters to the guard_map.  Appropriate changes will be
  submitted to charm-helpers.
* Several tests had to be re-written as (incorrect) mocking meant that
  text fixtures didn't actually match what the code was doing.  Thus,
  the tests were meaningless.
* This has had a net positive impact on the unit tests wrt to importing
  modules and mocking.

Change-Id: Id07d9d1caaa9b29453a63c2e49ba831071e9457f
2018-10-18 15:43:03 +01:00
Liam Young 57d13c665b Add support for tls-certificates relation
Add support for the charm to request and receive certificates from
the tls-certificates relation.

Change-Id: I54995aefbb31a845dbb46800d0444697ed057da7
2018-05-15 14:56:53 +00:00
David Ames 794b8ed0bb Charm-helpers sync to fix CA cert comparison
The comparison of bytes vs string of the CA certificate produces a
false negative. This leads to rewriting certificates and affecting
connectivity to services.

Read in the certificate as bytes as well for a bytes vs bytes
comparison.

Closes-Bug: #1762431

Change-Id: Ie2348a83671b9636bd94227e903b1a50bff7aecc
2018-04-11 14:26:49 -07:00
Liam Young f427dc5a48 Resync charmhelpers for py3 fixes.
Change-Id: I28457389a65a835204729c5070b420715664aa26
2017-11-13 16:13:50 +00:00
James Page a05c9c6beb 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: I8746721aea508fa01d2b616d580b38f84197759b
2016-07-06 16:39:15 +01:00
David Ames eba53c3d55 DNS HA
Implement DNS high availability. Pass the correct information to
hacluster to register a DNS entry with MAAS 2.0 or greater rather
than using a virtual IP.

Charm-helpers sync to bring in DNS HA helpers

Change-Id: I073770d3900b4948c4cceb440f90407128558c8f
2016-06-23 09:19:06 +01:00
James Page 8e3d71ea82 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: Ia4cbe14575851c0f54cbb5845ffd6b8669fb7fa2
2016-06-17 11:52:35 +01:00
Corey Bryant a794fc0e38 Sync charm-helpers 2015-06-19 15:10:20 +00:00
Liam Young d4b768f673 Resync le charm helpers 2015-06-04 09:45:01 +01:00
Edward Hope-Morley b74dfcaf68 synced charm-helpers 2015-03-26 10:36:30 -07:00
Liam Young 696d32ae02 Charmsync Leadership election 2015-03-09 12:00:56 +00:00
Edward Hope-Morley 8eb78b49aa [trivial] charmhelpers sync 2015-02-24 11:07:04 +00:00
Liam Young c63649ac21 [gnuoy,trivial] Pre-release charmhelper sync 2015-01-26 09:44:11 +00:00
Edward Hope-Morley f9c8a1297d charmhelpers sync to get fix for LP #1396246 2014-12-18 11:26:04 +00:00
Corey Bryant 430f26f7f6 Sync charm-helpers. 2014-12-10 20:28:55 +00:00
James Page 44e161ab6e Ensure all helpers are synced 2014-09-22 17:12:12 +01:00
James Page e74e0f74a1 Rebase on trunk helpers 2014-07-24 11:31:19 +01:00
James Page dfb1b3425d Resync helpers, drop surplus vip config 2014-07-16 14:42:38 +01:00
James Page 58a9e396e8 Resync helpers 2014-06-27 14:52:06 +01:00
James Page c25bd9dedf Add cluster helper to sync 2014-06-25 16:30:08 +01:00
Ante Karamatic fdd6ad41ba Update charm-helpers 2014-02-17 13:10:27 +01:00
Ante Karamatic a8eaa92af8 Cleanup before MP 2014-02-16 20:17:42 +01:00
Ante Karamatic d7afa5ad96 First go on rearranging haproxy and apache. Needs some refactoring. 2014-02-14 21:56:58 +01:00
Adam Gandelman 0d668bc455 Sync helpers. 2013-08-14 09:14:10 -07:00
Adam Gandelman f7b057ca60 Check in start of py redux. 2013-08-01 20:42:16 -07:00