Set default branch for git review/gerrit.
Switch amulet tests to stable.
Switch to using stable charm-helpers branch.
Change-Id: I7ca47c8ff68a8a8c8bcbd6c3ad523ddc7d852409
This patch also updates the smoke test to run train.
Change-Id: I3112cf697922237ba719d183f2d94b6f92237ebc
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
Previously the default ``certificates.available`` handler was
enabled without the charm authors intervention, this was changed
in I12f45236632b608e07fdd35d31b90b84ca92eb1f.
Change-Id: I85e82273f9a423ce0fe9d8462c82de608e3922f7
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.
Other small additions:
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.
LP Related-Bug: #1823718
Change-Id: Ie3d970ffde85b8f447ec7d2a95041ef59a747d8c
Also explicitly set ``include_system_packages`` to False.
While that setting is now the a default we consume from
``layer-basic`` it is more clear for the causual reader
of the charm source code.
Remove redundant entries from ``wheelhouse.txt``.
Change-Id: Ibc2d91afd0e49eb9120eacbb1d6260a159c5f2db
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata. Dev release tests are enabled separately
because of chickens and eggs.
Change-Id: I855e6e2565e0898974c13c4ee4a8e956482154b0
Do not rely on system installed Python packages but distribute the
direct charm dependencies as part of the charms wheelhouse.
As the span of distributions we need to support with reactive
charms widens we will run into compability problems with the
current model.
For further reference see juju/charm-helpers#341 and
juju-solutions/layer-basic#135
Change-Id: I0f136f7c1e0e5509f5f2aa5904f89dbd4a227682
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html
Note that python35-charm-jobs is retained since this charm is supported
on Xenial.
Change-Id: I62dabc049b8730ad6a22e863c65136a82cc8e62c
Story: #2005924
Task: #34228
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata. Dev release tests are enabled separately
because of chickens and eggs.
Change-Id: I02a876c313201d5e19fa95cef0cb22fa48224852
The barbican charm was missing a configure_ha_resources call when the ha
relation is connected. This led to HA deploys missing a VIP resources.
This change enables barbican to run configure_ha_resources when the ha
relation is connected as the other OpenStack reactive charms do.
Change-Id: I92121af2621b9f7d9a7b2eb993abe522d4b0f1a5
Closes-Bug: #1820290
Unit tests generally will all be executed, and measuring them will
skew the overall coverage numbers. Thus, I'm excluding the unit_tests
folder.
Change-Id: Id819ecd1c02d82ef9ef41e95e1923801a13f6452
This technique was borrowed from the tox "cover" environment in
openstack/nova's tox.ini. This leverages the fact that stestr lets
you override the python executable via the PYTHON environment
variable. Doing this allows us to easily generate coverage for our
unit tests.
An important caveat is that this does not provide any coverage for
tests via zaza, amulet, etc. It is purely focused on the unit tests.
Note that this replaces the previous .coveragerc; coverage
configuration is instead pulled from tox.ini.
Change-Id: I81c0bc6de21394540b67a954d0034af6ca96cfc5
Switch to using [DEFAULT]transport_url for configuration of
oslo.messaging connectivity to RabbitMQ.
Use section-oslo-messaging-rabbit to set [oslo_messaging_rabbit]
sectional configuration options for HA and SSL.
Change-Id: Ib0c4d68d76593dc29853354ee2a3815f87789caa
Closes-Bug: 1817672
Rebuild charm to pickup latest changes to charms.openstack to
resolve issues with haproxy being restarted due to random
dict iteration.
Change-Id: I4af99978ca18015530026cb99702e4abd6dde6b7
Closes-Bug: 1800980
Switch to using the default upgrade-charm handler as provided
by charms.openstack and associated layers.
This ensures that the payload execution switch from py2->py3
at OpenStack Rocky is implemented during the charm upgrade
process.
Change-Id: Id2ab577f65c1937bcbbc06a704a8385655de3c57
Closes-Bug: 1803451
Secrets configuration will be provided from a subordinate charm
utilizing the barbican-secrets interface.
Switch to .stestr.conf
Depends-On: I9d52243ab0ccc60eade6c8023d9c5831a1637338
Change-Id: Ibac7465f30c9a6d3e838d38b80df4092b737251b
At present the ``barbican`` charm is released as a Development /
Preview charm.
When it was first developed the upstream project had a separate
workflow for configuring Keystone authentication and authorization
which involved customization of the API paste configuration.
Since then the upstream project has gained support for standard
authentication and authorization configuration through the
``keystone_authtoken`` section in the configuration file.
We are bringing the charm into full support and do not want to
carry forward the legacy API paste configuration support, we also
want to integrate the charm with pluggable secrets support which
dependencies first are available in OpenStack ``rocky``.
Remove support for OpenStack versions prior to ``rocky``.
Remove surplus configuration options either provided through
charm layers or deemed unnecessary.
Change-Id: I4f0bbca5bbafa40d8bd6036a0743da642cab3d99
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I1f71d6641d4c9bf93266e75f5f39ba3297f89869
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Ie937c9719585d6077a60bd01cf22fbe00650af94
Story: #2002586
Task: #24317
Recent changes in charms.openstack write configuration files with perms
0640; however without a group attribute on the client charm class, these
will root.root owned and this prevents the barbican-worker service from
starting.
Ensure that config files are written using root.barbican for this charm.
Change-Id: Iedce27a14b4a1adee30825274832ad3a3b606634