Commit Graph

322 Commits

Author SHA1 Message Date
Zuul a8152b789c Merge "separate rndc.key file per application" 2024-03-25 17:06:11 +00:00
David Negreira ab565c71bd separate rndc.key file per application
This change fixes an issue that when the charm-designate is
related to two different designate-bind applications, the same
rndc key file is used for the two different applications.

We fix this by writing an rndc_key_file per application rather than in
a single rndc.key file for all the units.

Closes-Bug: #1995975

Change-Id: I5dafeb2b4dcf9549260081d3674038f836d29f0f
Signed-off-by: David Negreira <david.negreira@canonical.com>
2024-03-25 09:24:08 +00:00
Alex Kavanagh d875ad61f0 Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.

Change-Id: I6f21a215e8149880c0e16ed747f1fc378359189e
2024-02-24 20:11:30 +00:00
Alex Kavanagh 5790a8052a Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: I466bebb1bf7574b21ed5db45e88ad1801df767c9
2024-02-12 18:19:24 +00:00
Alex Kavanagh 14f11a1812 Ensure get_requests_for_local_unit doesn't fail on incomplete relation
This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix
any inadvertant accesses of ['ca'] in the relation data before it is available
from vault in the certificates relation.  Fix in charmhelpers is in [1].

[1] https://github.com/juju/charm-helpers/pull/824
Closes-Bug: #2028683

Change-Id: I380e012bee8c415aaf1929d06d64552319d6356b
2023-08-14 10:11:16 +00:00
Zuul 83514aaaf8 Merge "Add 2023.2 Bobcat support" 2023-08-04 21:37:28 +00:00
Corey Bryant fd30d13f53 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic
* update charmcraft_channel to 2.x/edge

Change-Id: I2f30ad69aececc1acd9400d772fe9e6a5145347e
2023-08-03 13:57:55 -04:00
Peter Matulis 73a39d4c14 Add docs key and point at Discourse
Add the 'docs' key and point it at a Discourse topic
previously populated with the charm's README contents.

When the new charm revision is released to the Charmhub,
this Discourse-based content will be displayed there. In
the absense of the this new key, the Charmhub's default
behaviour is to display the value of the charm's
'description' key.

Change-Id: I2836aadfe6b9a035c6838b144e3f65436e4c184e
2023-07-25 16:18:12 -04:00
Corey Bryant b657a63abd Enable jammy-antelope voting and drop kinetic-zed tests
* Voting was turned on for jammy-antelope in the
  project-template for charm-functional-jobs in zosci-config
* Voting for jammy-antelope bundles with non-standard names
  is turned on in individual charms
* Kinetic-zed bundles/tests are removed

Change-Id: I3f9c253a89906b8f1dde4f60f1fdc30119a8d31c
2023-03-29 21:01:48 +00:00
Zuul f1846c8393 Merge "Add Antelope support" 2023-03-14 13:06:31 +00:00
Corey Bryant bbefc1ecf3 Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: Ibdb020b7aa563b67c85f8a0922898f157c5599b7
2023-03-08 15:53:06 +00:00
Gabriel Cocenza 6711b12054 Add support for HAProxy L7 checks
This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default).

Closes-Bug: #1880610
Change-Id: Ibadd5648cdf69eef42b05e29772dcae9897d668b
2023-02-17 10:23:56 -03:00
Olivier Dufour-Cuvillier f84cee2634 Prevent update-status to run unrequired handlers
Before, the update-status hook would run many handlers
that would have been normally done only during
configuration changes.
Consequently it creates an impact on the service and
apply changes every time the hook is triggered, which is
in most deployments every 5 minutes.
This prevents the DNS zones managed by Designate to be
updated constantly and potentially avoid race conditions
within designate components.

Closes-bug: #2003528
Change-Id: I0d4fea182da1316c0c30c143e64fcd2ca682afff
2023-01-30 11:19:04 +00:00
Liam Young ea0c1da551 Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I6dba64157cc7ad9468d15921f259b045a735341d
2023-01-17 14:56:01 +00:00
Tiago Pasqualini 8a4940bbb1 Add check to expose internal endpoints
Currently, the charm ignores the use-internal-endpoints config
option that is being inherited from the Openstack Layer. This
patch adds a check to ensure that the internal endpoint is exposed
if this is set to True.

Closes-bug: #1995188
Change-Id: I48a04ac619204ba109d87ca05de7cbe308592486
2022-11-22 11:33:49 -03:00
Billy Olsen f87d01015b Use the default source origin for mysql & rabbit
The functional test bundles specify that the mysql and rabbit
services should use the openstack-origin reference field, but this
is not actually relevant to the rabbit/mysql charms (e.g. it doesn't
make sense to install rabbit from cloud:jammy-zed as rabbit is from
the distro).

Change-Id: I50693d6e85b2ce427ff184555cdfae66096f3f6c
2022-11-11 08:46:11 -07:00
Corey Bryant 66c5f42350 Build separately for each supported series and use binary builds
Charms for OpenStack Yoga supports both Ubuntu Focal and Jammy
which means Python 3.8 and Python 3.10.  Managing dependencies
across those two versions is non-trivial and we need to build
the charm on the series the charm is supposed to support.

Switch to using a binary build which allows pip's dependency
resolution to work.

Change-Id: I1bf4aac08cf7388fec4550d40887a8df45927589
2022-09-30 16:53:55 +00:00
Corey Bryant 1dc253a098 Ensure services are not started while unit paused
Closes-Bug: #1983594
Change-Id: Ib05687d0146fee7609f36ca8692dafe0082846bc
2022-09-06 19:29:11 +00:00
Corey Bryant 13211f092c Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I2c98ab0f82aa6d6d0a43365cee04d6da34a39ce4
2022-08-31 19:57:31 +01:00
Francesco de Simone 1fef3793f5 Disable designate-mdns service until the configuration has been rendered
As per the bug report, designate-mdns service appear to restart multiple time.
This patch disable the service until the configuration has been rendered.

Closes-Bug: #1925233
Change-Id: Ib9843bda9c6967ce50cec8d721079bd70f7f3040
2022-07-18 13:35:00 +00:00
Zuul fc616b48c0 Merge "Add *.charm to gitignore" 2022-05-10 13:48:57 +00:00
Alex Kavanagh 1578fcda4a Add *.charm to gitignore
This patch adds *.charm to the .gitignore to ensure that any built
artifacts are ignored.

Change-Id: Iedd404a0d075e80857d0f9517fae49679a52dad1
2022-04-18 21:06:24 +01:00
Nicholas Malacarne 3fce0cb6c0 Add NRPE service checks for upstream DNS
Added NRPE checks to detect when upstream DNS servers
are unreachable. We had a case where a customer changed
settings on their DNS servers which caused an outage.

The added check will allow our alerting to capture
cases where the upstream DNS servers become unreachable.

One service check is generated for each value found
in the 'nameservers' charm config params. The checks
use the 'check_dns' command with a host value of
'canonical.com', and each command checks a corresponding
nameserver value from the 'nameservers' config params. All
other optional flags for 'check_dns' are using the default
values.

Closes-bug: #1850216
Change-Id: Iea601977851d5c4ea2b9b79071d94b2385637d57
2022-04-15 15:25:57 -04:00
Zuul b53106c714 Merge "Updates to enable jammy and finalise charmcraft builds" 2022-04-08 14:29:33 +00:00
Alex Kavanagh 19a65851c1 Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga

Change-Id: I3b005253025fa7ba2b0cdb918fe4134c44316cf0
2022-04-04 15:49:28 +01:00
Zuul c0e1e44a22 Merge "Drop unused nova-designate provides entry" 2022-03-31 10:30:25 +00:00
Alex Kavanagh dc2b12cc33 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

Change-Id: I8768cf21899108de80aa9f6cb7da9a91b91cdf9f
2022-02-01 19:55:42 +00:00
Edward Hope-Morley bd69d11eb8 Drop unused nova-designate provides entry
Change-Id: I6e80fd3ec115e407891bd589aa76e5b4bf513c46
Closes-Bug: #1756852
2022-01-30 02:23:03 +00:00
Alex Kavanagh 73f2b01690 Migrate charm to charmhub latest/edge track
Change-Id: Ia1e6b6c989f0d31b9b6766eb5d51493f7596a2a9
2022-01-27 20:12:03 +00:00
Hervé Beraud f6121b5691 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: I7b12f467e329e2693e4c7349f328133a1ec3cb00
2021-12-15 10:28:37 +00:00
Zuul cdd9a7a4dc Merge "Stop to use the __future__ module." 2021-12-14 11:41:11 +00:00
Felipe Reyes 81c8cbf4a6 Add final dot when missing in nameservers
The configuration option nameserver expects each value to have a dot (.)
at the end, currently when this dot is missing the servers creation
fail, the error doesn't bubble up. On the neutron-api charm adds the dot
automatically when it's missing in the dns-domain config option, this
change makes the Designate charm behave in the same way.

Change-Id: If335c9b5b1b2adca3e39fa4f1d182dfbe362f874
Closes-Bug: #1952656
2021-11-29 15:43:22 -03:00
Zuul 1e7035e2f0 Merge "Additional test updates" 2021-11-18 23:05:32 +00:00
Corey Bryant bd4ac52168 Additional test updates
* drop trusty/xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: Icf909b3d01fdf374ab172fca2766fadd112b40bf
2021-11-17 14:44:19 -05:00
Alex Kavanagh 1d27b38c37 Remove 'jammy' metadata - unblock gate
The charmstore doesn't accept charms with jammy metadata yet.

Change-Id: I2cecfdfa847eb7eaf996c18bf10687d277c481c3
2021-11-12 10:58:52 +00:00
Corey Bryant a0b16b9058 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: Ia5771347736c27f3ebde2b08eec94252800dd91a
2021-11-09 10:27:03 -05:00
Alex Kavanagh 39be2957f7 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- drop groovy-victoria bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I2b8492b39c0f16d3b8646f4eb2b2211ec9f576a1
2021-09-28 18:18:17 +00:00
Zuul ff985f9111 Merge "Allow Set managed_resource_email on designate config." 2021-09-04 03:02:53 +00:00
Jose Phillips 0ac8aefbb8 Allow Set managed_resource_email on designate config.
With this patch managed_resource_email can be set via charm
with juju config managed-resource-email = email@domain.com
functional for auto generated SOA records. that came from
Floating IP.

Closes-Bug: #1940864
Change-Id: I9f55564316fdb559481909dd7b196ef8fd9fe612
2021-09-02 03:15:14 -05:00
Jose Phillips 0e1e3e89b6 Allow set managed_resource_tenant_id.
With this patch will allow to set the configuartion parameter
managed_resource_tenant_id that is required on some setups.

Closes-Bug: #1926659
Change-Id: Id76b798ef23f528f3440b6b33ce4bb9b4e680b0d
2021-09-02 03:13:35 -05:00
Xav Paice 3ae0be599b Add NRPE checks for services
Adds the nrpe-external-master layer and checks for services managed by
this charm.

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

Change-Id: Ice5eada838626059f8cb2c427f7b9b0884317660
Closes-Bug: #1897809
Related-Bug: #1933643
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-08-26 11:18:24 +02:00
Zuul fa48d3d7cf Merge "Add config options to handle SOA records." 2021-08-04 09:33:40 +00:00
Zuul 6734b495fd Merge "Moving to OFTC" 2021-08-04 09:31:57 +00:00
Felipe Reyes b090388242 Add config options to handle SOA records.
New configuration options:

- default-ttl
- default-soa-minimum
- default-soa-refresh-min
- default-soa-refresh-max
- default-soa-retry

Change-Id: I2ad0aec7d50a36e9e5227a08295aef4e99130d78
Closes-Bug: #1902923
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/457
2021-08-03 18:16:33 -04:00
Aurelien Lourot 3f1ae3b8cc 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: Iae88c66fcb21f82bdce127f8cb405d8bb9ebc2e1
2021-07-22 14:53:49 +02:00
David Ames 4e9d4756a2 Clear shared-db.setup when departing shared-db
When shared-db is rejoined the charm will reconfigure the DB IFF DB
related flags are cleared.

Change-Id: Ieb575d6aa220f10c519425f1e1a6f59e29c512f1
Closes-Bug: #1887265
2021-07-20 10:28:15 +00:00
Zuul 0d3eac5b17 Merge "Add impish to metadata.yaml" 2021-06-07 09:43:33 +00:00
Aurelien Lourot c765df8705 Add impish to metadata.yaml
Change-Id: I69bb50af882e9aaef99cdff0e92ff00e93008934
2021-06-03 11:11:20 +02:00
Nicolas Bock 9e3552417a
Moving to OFTC
Change-Id: I863b565efd26ad1e22fd48562d08df5676ee3779
Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
2021-05-27 06:24:45 -06:00
Corey Bryant ed1c6c5021 rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: Ibf5f1b4d284b9040740ad24d442ee4a46cb69db4
2021-05-13 09:08:43 -04:00