Commit Graph

39 Commits

Author SHA1 Message Date
Alex Kavanagh ba3ac4a1dc 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: I5d15739f7f0804323ec61629fea53fc13f638f34
2024-02-12 18:18:57 +00:00
zhhuabj 8b366fbf6b Support disabling apache wsgi socket rotation
Bug LP 1863232 introduced a new Apache configuration option called
WSGISocketRotation which allows users to disable wsgi socket
rotation. This patch makes this configurable with a new
wsgi-socket-rotation config option that defaults to the Apache
default and can optionally be set to False.

Closes-Bug: #2021550
Change-Id: Ieca45a470e7f827194780b2fee9f8c6049b94da3
2023-09-04 18:41:43 +08:00
Alex Kavanagh 2e2fff4253 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: I1fe688bf595520f876d0c15c591ee8cac34d00f2
2023-08-14 10:09:12 +00:00
Corey Bryant d06c3a5e9f 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/stable

Change-Id: Ied0a22bcd255d9dd2d253db2a64e549963ce942d
2023-08-02 14:20:26 -04:00
Corey Bryant 43ff5e66e7 Use service_domain in [service_user] section
Sync from charm-helpers to update [service_user] config to use the
service domain.

The keystone charm currently creates two service users, one for the
service domain (for v3 authentication), and the other for the default
domain (for v2 authentication). The [service_user] config needs to
use the service domain.

Closes-Bug: #2026202
Change-Id: Ice5953fb7e926fd8dcf48c895a1dc36210da1dfc
2023-07-05 16:00:52 -04:00
Jorge Merlino 739aed0a14 Sync with charm-helpers
This sync includes this patch to charm helpers:

https://github.com/juju/charm-helpers/pull/757

which is an extension of this one:

https://github.com/juju/charm-helpers/pull/740

and both are meant to include templates to configure service tokens
in juju charms as shown in this lp bug:

Related-Bug: #1992840
Change-Id: Ib273f50d620160f62cbb3d6f5789bf334a7d6333
2023-05-15 15:07:49 +00:00
Corey Bryant 14f6801933 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: I57e1fec8537d95b1035aa809ab30378fb44973da
2023-03-07 20:07:52 +00:00
Corey Bryant cdc2fc738f 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: Ie133bc41bf789e07d4d777e128617b21d822de30
2022-08-26 18:40:29 +00:00
Alex Kavanagh f5ec72dac8 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
- sync charmhelpers

Change-Id: I359df29fb7c86caf0c29c7f35c3e4b68392ba5ad
2022-04-06 18:43:26 +01:00
Corey Bryant dcbce12bef 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: If7019d54b67c10407c0db5fac098aa9cee993f1c
2021-11-19 08:25:29 -05:00
Alex Kavanagh e0dc05f247 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Iff97425a8d0c9bd6db4bfb821cfb74467db78a47
2021-09-22 10:31:35 +01:00
Corey Bryant 5760b1fd6f c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I115644f4c9bbc9b5b7501d85806e7419e5b8f0f6
2021-05-13 08:45:59 -04:00
Alex Kavanagh 702b5dd604 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: Ie7f45e3c6fe62deda81acde0107371697398153b
2021-04-11 16:51:46 +01:00
Alex Kavanagh a95f4fa83f 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: I3741b0cabb03c39a950f1d807f7ff89b2855b5a3
2021-04-03 20:23:04 +01:00
Alex Kavanagh f4e552de22 Hotfix charmhelpers sync for local_address() fix
The network-get --primary-address juju-info fails on pre-2.8.?
versions of juju.  This results in a NoNetworkBinding error.
Fallback to unit_get() if that occurs for local_address().

Change-Id: Id18634579d221aa2d501188975119c5c4f05c47f
2021-01-20 12:22:00 +00:00
Alex Kavanagh 14e29e8d89 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
* Replace unit-get mock with local_address due to c-h sync changes.

Change-Id: Iec48d0ee3f8bc8f26939c8562fd93a98db06670a
2021-01-18 19:59:02 +00:00
Aurelien Lourot 33110e8192 Add Groovy to the test gate
Change-Id: I9460ea2d117ad5630fb8826b5a4e5417c0635757
2020-11-05 12:45:13 +01:00
Chris MacNaughton cf09d59bca Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: Ib4f8c9bead66a977880a448c440083d31c90de17
2020-10-12 11:21:45 +02:00
Alex Kavanagh 5a3bea35c4 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: I6027b4bb12dce36a7b10df2e14cafd5dc6ee963b
2020-09-28 13:07:05 +01:00
Alex Kavanagh 1229920fbe 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: Ie522412cd7f3aebf52d32b6e4d76a15b221a7fef
2020-07-27 20:50:44 +01:00
Corey Bryant 68da263c6f Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: Ia47eb3fb8b10cadf2c42ff166b81dfcd85eb41ee
2020-07-13 18:54:52 +00:00
Liam Young a16c55ca04 CH Sync for rabbit relation bug fix
Charmhelper sync to pick up the fix to the AMQP context.

Change-Id: I8058e367de158ae6e9da3a695318404453215d57
Closes-Bug: #1796886
2020-06-25 10:04:16 +00:00
Alex Kavanagh e5a0b4196a 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: I0070da73f4f55a389e6df3c32d190adc3ec9185d
2020-06-02 14:29:08 +01:00
Ryan Beisner 60c4b3a24b Resync charm-helpers
Change-Id: Id8709936047a4464eff6f3fc3551484c5976e84d
2020-05-11 15:16:42 +02:00
Alex Kavanagh ab2959b14f Enable focal testing and support
This patchset adds support for focal to the charm, enables the
bionic-ussuri and focal-ussuri bundles which verify that the charm works
and tests on focal with ussuri.  In order for the tests to land,
serveral dependent changes to other charms are needed (see links) just
so that the charms will run on focal.  Also, cinder needs to use local
block devices, and due to the related error, a change to
charm-test-infra model-defaults is needed for the charm to pass its
tests.

Links:

 - disable vdb in charm-test-infra
 - placement charm focal support
 - neutron-openvswitch charm focal support
 - rabbitmq-server charm focal support

Change-Id: I99ce6888a9570b34e1a171242a787ed93abdf82d
charm-test-infra: https://github.com/openstack-charmers/charm-test-infra/pull/42
Depends-On: If43d096c6bd5c57d00d92c54bc0ce464ba50bfa1
Depends-On: Ie744c1ff4c6651633d12dcd4de28d5e7a3e8646f
Depends-On: Ia239b7c2f0ed2383e220cf0fa4ade443149a3b32
2020-04-09 14:12:47 +01:00
Liam Young 9d02a3c2b5 Charmhelper sync for 20.02
Change-Id: I2abca60fd270dc0dd9750aab2b6a41efb63db7d5
2020-02-04 16:38:39 +00:00
Liam Young 605352cfe0 When resuming, exclude haproxy
When resuming services exclude those managed by hacluster, in
this case haproxy. If pacemaker lacks quorum it may shut haproxy
down which will cause this charm to error.

Charmhelper sync included to bring in required
get_managed_services_and_ports method.

Change-Id: I00fa695edb7651098d9c7afdd4df823d66a01aef
2020-01-25 07:45:19 +00:00
Corey Bryant 2894865a34 Sync charm-helpers for Ussuri/Focal release and version details
Change-Id: I2f66fb5655e04d6b30b3349106b2000e0aee05d7
2020-01-17 14:18:16 -05:00
Stamatis Katsaounis a41c913ccf Sync charm-helpers
Change-Id: I0c18c1ec44cf2d8a59a3ad2c814ef801183ccc4b
2019-12-18 12:48:31 +02:00
Alex Kavanagh 6ee32006e5 Policyd override implementation
This patchset implements policy overrides for cinder.  It uses the
code in charmhelpers.

It also fixes several bugs in the bundles where the actual version of
cinder that was being installed was the distro default rather than the
one that the bundle described.

Change-Id: Ic979dcb96ddb931fadb1fa4a4b36108244ddf306
Closed-Bug: #1741723
2019-10-14 15:11:13 +01:00
Ryan Beisner cbff05ee1a
Sync charm/ceph helpers, tox, and requirements
Change-Id: Ia983450e480ab6811a67034e5503ef3a476b6cbb
2019-09-30 22:09:55 -05:00
Corey Bryant b5d20a0718 Sync charm-helpers and use "rabbit_use_ssl" for ocata
Ensure "rabbit_use_ssl" is specified in the [oslo_messaging_rabbit]
config section instead of "ssl" for Ocata, since "ssl" was not yet
introduced.

Change-Id: I070b8bbebed4e53fa524047599c71f73dc1c79fc
Closes-Bug: #1838696
2019-08-01 23:00:16 -04:00
Chris MacNaughton b0c758a466 Sync charm-helpers
Change-Id: Iaf76a655e96386608f01d7eba2281ac94d1e85b8
2019-07-16 07:06:03 +00:00
Chris MacNaughton f09e6cc157 Sync charm-helpers to enable Ubuntu Disco
Change-Id: Id34149e65283a0368616a289cf844155400685d4
2019-04-05 17:12:50 +02:00
Chris MacNaughton ec1f933f6b 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: Ice230232c8e2a6c31a1bbd2ed16d3290b59d36e9
2019-04-05 11:52:44 +02:00
Chris MacNaughton 9a68a10e7f Latest charmhelpers audit update fixes file permission check
Change-Id: I4164eded9addb407713246e1706b2549896e76ad
2019-03-22 13:28:35 +01:00
Corey Bryant efb1a1e2d9 Update rabbit driver config options
The stein version of python-oslo.messaging (9.0.0+) has removed
the following config options from the [oslo_messaging_rabbit]
section:

rabbit_host, rabbit_port, rabbit_hosts, rabbit_userid,
rabbit_password, rabbit_virtual_host rabbit_max_retries, and
rabbit_durable_queues.

The above change requires a sync from charm-helpers.

Additionally the transport_url directive has been moved to the
[DEFAULT] section.

These have been deprecated since Ocata, therefore this change
will be provided to pre-Stein templates in order to drop
deprecation warnings.

See release notes at:
https://docs.openstack.org/releasenotes/oslo.messaging/index.html

test_300_cinder_config is also removed in this change as amulet
tests no longer need to confirm config file settings.

Change-Id: Ia93be49430e8d95c38ed521d08bbb62f47e13e59
Closes-Bug: #1817672
2019-03-05 15:26:24 -05:00
David Ames 8577da90f5 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: I46b4174540b8a2ec4644a77d1c7c8e7e2278cbd1
2019-02-12 15:56:10 -08:00
Alex Kavanagh 834cde35ec Migrate to python3 only charm
Change-Id: Ia4bcf570d40083625358fdd4fea14202ff3d89af
2019-01-30 12:36:21 +00:00