Commit Graph

45 Commits

Author SHA1 Message Date
Alex Kavanagh 959752f48c 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: Id88fe1d5e3b177099966c659d11b96e6d1fb4c4f
2024-02-12 18:21:35 +00:00
zhhuabj 5c34112030 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: I671f4b7f655f12cc558fc64116e31f16560dd2e7
2023-09-04 18:30:45 +08:00
Corey Bryant b56c411c48 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: I59aba33be9d8031f437e860200c6e6a1902630dd
2023-08-02 14:19:50 -04:00
Corey Bryant ea6ad355bd Add package-upgrade action
The package-upgrade action performs package upgrades for the current
OpenStack release.

The code path used is similar to the openstack-upgrade action, with the
difference being that package-upgrade will not execute if an openstack
upgrade is available (based on the openstack-origin setting).

This change includes a charm-helpers sync.

Change-Id: I7a36e0f5f47423ae8601d6ca86aa0fe311ecb735
2023-05-26 16:55:30 +01:00
Corey Bryant dd8c4453b2 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: I236864fef58fb9b69a5298643a5c095fbfe2ca8e
2023-03-07 20:31:30 +00:00
Corey Bryant 448daa6fdf 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: I2cb698f719106e54b06009f24ea47259419e9cad
2022-08-26 18:40:42 +00:00
Zuul b27c840785 Merge "Validate X509 certificate inputs" 2022-05-10 14:10:56 +00:00
Alex Kavanagh 1749801238 charmhelpers sync for yoga release
Change-Id: I9d1b8667c6049d2337072aea863492bd3d30d3ed
2022-04-07 12:29:23 +01:00
Ksawery Dziekoński fc2fc81ed5 Validate X509 certificate inputs
Related: LP#1772674
Change-Id: Ia6f44eb7aa0b37b0efa961d1ae48ac69c688b592
2022-04-07 12:38:53 +02:00
Corey Bryant d94662f374 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: Ie287d7462b5e2cfcb1f91f25117eb61d93f59a1f
2021-11-19 15:49:59 -05:00
Alex Kavanagh 287126edf5 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: If3843b99a968f7cd55fd33a79fc8365ff0913256
2021-09-27 19:50:40 +01:00
Corey Bryant 80f808f4c0 c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I7b8a01658837a0c1b8d61a38198e5c92fa101198
2021-05-13 08:47:30 -04:00
Alex Kavanagh c5c8196566 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: I0a87d6014cb84576a511d8a1f82b03d441ac1c4e
2021-04-11 16:59:23 +01:00
Alex Kavanagh 9c21a1b41a 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: I2a64ef1ea1545601edb106a22c954467105dec24
2021-04-03 20:32:28 +01:00
Alex Kavanagh 360a678d1f 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: I1283293c200d46651834bf27fbb9c3bd654a2901
2021-01-20 12:26:05 +00:00
Alex Kavanagh b9bd214c23 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

Change-Id: Iff850983594aa550a7e4e4b4c0412845790b2aae
2021-01-15 16:34:09 +00:00
Liam Young 8eb0864696 Charm helper sync for Bug 1898032
Charm helper sync to bring in fixes for Bug #1898032

Change-Id: I9b36331127e474440358f98dcced80751836dfa2
Closes-Bug: #1898032
2021-01-04 13:43:46 +00:00
Chris MacNaughton 21bed7c2a2 Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: I73046d4f9716e7b6edffcbba8347949f192fcf80
2020-10-12 11:23:45 +02:00
Alex Kavanagh 5dd04dac31 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: I179fd55a49bf07515e4fad64dd0a4719b58ac4ca
2020-09-27 19:45:00 +01:00
Alex Kavanagh d566af19a2 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
- fix PEP8 issues from new W504 param

Change-Id: I3d1ea2cea971b364001a53d35f2b3bbcaed8361d
2020-07-31 15:41:45 +01:00
Corey Bryant 8d1223146a Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: I77df39919c7e77764d8c2f81eb8e5973f0c50230
2020-07-13 19:00:48 +00:00
Aurelien Lourot b8c1f99397 Sync helpers for 20.05
Change-Id: If3be63141786d44c917da295fef806341d339fb7
2020-05-18 15:29:10 +02:00
Aurelien Lourot 4159b9bbd2 Pre-freeze 'make sync'
Change-Id: I0d8e1acabcd9dddbc37788ea66bf595ec383ceb3
2020-05-06 17:49:38 +02:00
Alex Kavanagh 700ebb14c7 Enable focal and ussuri as part of the gate tests
Add bionic-ussuri and focal-ussuri (with mysql8 support) bundles.

Also, for focal, switch the install and upgrade-charm hooks to install
python3 modules rather than python2 modules.

Change-Id: I75dbf72eb4c2d7d2986730e0ada9a6c359f825d3
2020-04-03 16:50:58 +01:00
Corey Bryant 09614163a7 Charmhelper sync to update ussuri major version for horizon
Change-Id: I5b3e70715799624202e7c51560ad45c5f2871fec
2020-02-20 18:40:42 +00:00
Liam Young b33a77a6a8 Charmhelper sync for 20.02
Change-Id: Ib6ef3bb40a790762fef42f1a65138ab38bb545fd
2020-02-04 16:39:47 +00:00
Liam Young de4e9ec338 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: I6f997df31922b6090e5b4b1daeec342a044be5c3
2020-01-26 07:47:02 +00:00
Corey Bryant 0496ab77ed Sync charm-helpers for Ussuri/Focal release and version details
Change-Id: I4e9ca451157527ca0f19ef981970c5447d510e92
2020-01-17 14:22:51 -05:00
Alex Kavanagh 1b1e7c583c Policyd override implementation
This patchset implements policy overrides for octavia.  It uses the
code in charmhelpers [1] which has been modified to support the richer
and more complex approach to handling policy overrides.

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

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

Change-Id: Ib51fd2c7c540c680083c2928eab4ce4df0d43e23
Closed-Bug: #1741723
2019-11-20 14:40:03 +00:00
Ryan Beisner e220d069b7
Sync charm/ceph helpers, tox, and requirements
Change-Id: I25256dfc4e4029c99c0e612142ec857980f902c6
2019-09-30 21:43:41 -05:00
Chris MacNaughton a0600b286e
Sync charm-helpers
Amend functional test for Stein onwards.

Change-Id: I2cfdee91a09809ab3037184b11142a67908ecc02
2019-07-17 09:19:16 +02:00
Chris MacNaughton 39a03b72f7 Sync charm-helpers to enable Ubuntu Disco
Change-Id: I11b0a03c65efcdb0c21ea08587f58df0415c6b94
2019-04-05 17:16:44 +02:00
Chris MacNaughton 7f4b5f2ac4 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: I684d7c3999c8e91ed2bece344dc6d30b7b9f50ee
2019-04-04 10:17:47 +02:00
David Ames f80b94b9a3 Sync charm helpers for NoNetworkBinding fix
Please review and merge CH change first:
https://github.com/juju/charm-helpers/pull/298

Change-Id: I6960e6860cdaf6f7c293558aadea557a227357dc
2019-03-13 11:52:10 -07:00
Chris MacNaughton 865e961067 Add security-checklist action
Change-Id: Ib9376aef02e1c8a53098a8bf6942cc71d78ea45d
2019-03-13 10:11:25 +01:00
Frode Nordahl 19915f6806
Use common ApacheSSLContext
Remove the custom ApacheSSLContext class and use the common
one from ``charmhelpers.contrib.openstack`` instead.

Update ``default-ssl`` template so we can make use of multiple
endpoints with SNI.

Sync required changes to charm-helpers.

Change-Id: Icc990448d2c7469c5253d04ad43371d01d5580d9
Related-Bug: #1816621
2019-02-22 10:56:14 +01:00
David Ames 32b0be7ce1 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: If052423eace5bba7531e05cb7a43ddd94a9692f9
2019-02-12 15:58:19 -08:00
Corey Bryant 903cbfdb2f Sync charm-helpers
Change-Id: Ibb59da4addda1ec9feb75c5839e695e49c23a543
2019-01-11 14:39:39 +00:00
Zuul 4be5d25d01 Merge "fix typos in the docstring" 2019-01-09 09:10:25 +00:00
Corey Bryant 40b511a95b Sync charm-helpers
Change-Id: I71ac2ca2e32445c539d7fa36fe6cc6e2441b0950
2019-01-08 15:25:33 +00:00
melissaml 37e505e8ef fix typos in the docstring
Change-Id: I1119f0b38ed4f78123af99ab6e7d8e06030db2ac
2018-12-22 04:01:31 +08:00
Liam Young cf60952fab Use chelper generate_ha_relation_data for ha rel
Use the generate_ha_relation_data helper 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: Ia27738d4e88386b435eae94f70c9d7b939ab96d8
2018-12-04 15:31:42 +00:00
Alex Kavanagh 882e78c5ad Sync c-h nrpe.py file to fix nrpe files copy issue
Due to a change to PY3, the charmhelpers directory is not in the
CHARMDIR rather than in CHARMDIR/hooks. This broke the
copy_nrpe_checks() function in c-h. c-h has been updated, to look in
both CHARMDIR and CHARMDIR/hooks for the charmhelpers directory, and
this patchset includes the new function definition.

Change-Id: I95250d6624827eb159a450523e05284c9248ba07
Closes-Bug: #1796830
2018-11-23 16:04:44 +00:00
Ryan Beisner 44924c6feb
Sync charm-helpers
Change-Id: Ie65865c0965e94d6c41b425a3a8a6cb6142d2d05
2018-11-07 15:35:44 -06:00
Alex Kavanagh eca37a1dad Update charm to PY3 only code
This change upgrades the charm to PY3 only mode.
Note the changes to charm-helpers has also been made to support
Apache auditing code in PY3.

Change-Id: Idd347de5818ec57cb05f38170fe0d6536157a0da
2018-10-02 12:11:08 +01:00