Commit Graph

121 Commits

Author SHA1 Message Date
Alex Kavanagh 004576e82b 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: If3fd48454e7959fdd6e2e1708b80a97c76576063
2024-02-12 18:19:56 +00:00
zhhuabj b4ee292bb6 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: Ia5852c3ebe84bd0355670f262cbe5e1cd433a08d
2023-09-04 18:33:51 +08:00
Alex Kavanagh b65d861ae3 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: I3117e17bc89254031ac244842d868ed1ed5af9ba
2023-08-14 11:03:41 +01:00
Corey Bryant 16b009d743 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: I6893deebdd105fb794dc06907b9366354d3e4ce0
2023-08-02 14:18:10 -04:00
Corey Bryant ac87b4bce5 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: Ifd99ea307a6e4d1d034d7c1e494e2cd8abd894e9
2023-06-02 11:23:25 +01:00
Liam Young 23e2642b41 Charmhelper sync for https() pending request fix
Sync charmhelpers to pull in fix to https() so it returns false
if there is a pending certificate request

Change-Id: I6e79570070fb3b6aa85485bbb40a820cb352c68e
Closes-Bug: #2015103
2023-05-04 11:50:00 +00:00
Corey Bryant 645ee87686 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: Iae257f880194aebfd8ba3002b7cf74a84fcfb9c9
2023-03-07 19:07:12 +00:00
Zuul dafc5c7292 Merge "Add Kinetic and Zed support" 2022-08-30 03:52:39 +00:00
Corey Bryant 29d03fc673 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: Idf4a6cd1e0888576f890b00aa5b343936900d6dd
2022-08-26 18:40:36 +00:00
sudeephb 965d292bd4 Validate vip address
Validates if the provided vip address(es) are in the subnet that the unit is in. If not, shows the message with invalid vips along with 'blocked' status.

Closes-Bug: #1958178
Change-Id: I6bb3e21f3934d6d2483564fba9216504a62d15dc
2022-07-13 21:27:03 +05:45
Alex Kavanagh a76a3d9599 charm-helpers sync for yoga release
Change-Id: Ib21e44b375ff7bb307908ba9f1c6bd51075e843e
2022-04-07 12:18:30 +01:00
Corey Bryant 18afefd965 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: Ie5d197e42c8c1fff5a757400ed3edadb07caaa5f
2021-11-09 10:27:03 -05:00
Alex Kavanagh faeb5e7825 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
- Note that this depends on I7f17acb4cc4a83fc15655bf6e15c8ff3b3fe92ff
  to be able to land this as glance needs xena support to run in this
  charms functional tests.

Change-Id: Ieaed39e06a7454f71b1422c46c4fccd72fbe04af
2021-09-28 15:39:00 +01:00
Corey Bryant abeaf7bc4a c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I69d391eceb24eac874d3438a499ccffcf111d9b2
2021-05-13 08:41:21 -04:00
Alex Kavanagh 836bd433cf 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: I448a2a01152e733068ddb3a2d9ccca6cf8ba780e
2021-04-11 16:54:23 +01:00
Alex Kavanagh 9d221a54f1 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: Ie9e790547d9ec532677a6d94b0379798e2f09528
2021-04-03 20:26:14 +01:00
Frode Nordahl e9fc1de43b
Process subordinate releases packages map
For principal - subordinate plugin type relations where the
principal Python payload imports code from packages managed by a
subordinate, upgrades can be problematic.

This change will allow a subordinate charm that have opted into the
feature to inform its principal about all implemented release -
packages combinations ahead of time. With this information in place
the principal can do the upgrade in one operation without risk of
charm relation RPC type processing at a critical moment.

Also sync c-h.

Closes-Bug: #1806111
Change-Id: I95567d5d047eb64842436e671b74a633e6f509f4
2021-03-24 14:49:31 +01:00
Alex Kavanagh 31649bee99 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

* Fixes to unit tests due to removal of unit_get from context.

Change-Id: I83f12c9e010468be34637056e645f2bfc732f2df
2021-01-18 15:23:07 +00:00
Chris MacNaughton ef0921e5e1 Batch update to land Ubuntu Groovy support into the charms
Cherry-Pick from 09752a1527

Change-Id: Ia1bab5f43af395718f765a36e4e0e7b499d117d6
2020-10-12 11:22:45 +02:00
Alex Kavanagh 07212a211b 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: I04b35ca8ba26c04d30a9d017b56cc700365c66a5
2020-09-26 18:33:40 +01:00
Alex Kavanagh 217ac0e4bd 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: If3113f1b09776c5964aba92045d80153e5d0ce45
2020-07-27 20:53:18 +01:00
Corey Bryant e70499004c Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: Ibc9d1d62cbd57c46ef09b566856b5d2efb2f8afc
2020-07-22 17:39:24 +00:00
Aurelien Lourot 8b46dfd637 Fix peer readiness detection
Sharing the admin password with peers over the 'cluster' relation
was needed in case the leader would die and the next leader would
then need that information. This was implemented years ago when
the leader DB didn't exist.

This led to a race condition described in the mentioned bug and
can now be safely removed.

Validated by deploying several keystone and glance units, then
removing the keystone leader, then adding a glance unit and
checking that this new unit gets its service credentials.

Also added useful traces, made linter happy and increased fernet
token expiration to avoid spurious test failures.

Closes-Bug: #1818113
Change-Id: I004903e50f51e190467d71691982de26518d7149
2020-07-16 22:56:46 +02:00
Aurelien Lourot 8296fa4e29 Pre-freeze 'make sync'
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/262
Change-Id: I0adbdd08ce59c1853b8609a94c56bf9cc16cfd00
2020-05-07 22:18:41 +00:00
Liam Young 53bcfd0a06 Check peers before emitting identity data
The checks that keystone was performing before emitting identity
data were applicable to any Openstack api charm so the check
definitions have been moved to charmhelpers so other charms can
use them. The checks as they were are encapsulated in
`check_api_unit_ready` *1

Bug 1818113 was caused by keystone emitting identity data
as soon as the leader was ready but ignoring the state of the
peer units. This is now covered by a new check
`check_api_application_ready` which performs all the local
unit checks and then checks that all peers have reported
as ready too.

In addition `check_api_unit_ready` is now used when
setting the units workload status and `check_api_application_ready`
is used when setting the application workload status.

*1 https://github.com/juju/charm-helpers/blob/master/charmhelpers/contrib/openstack/utils.py#L2289
*2 https://github.com/juju/charm-helpers/blob/master/charmhelpers/contrib/openstack/utils.py#L2330

Change-Id: I99830ab2c2482e8beef174424820907ce96fd5d7
Closes-Bug: #1818113
2020-04-24 11:25:55 +00:00
James Page 917c8edf70 Resync charmhelpers
Update Makefile to use python3, supporting use in focal
development release.

Change-Id: I5a34777c84698396b4c8e68ff9f8fc50effe2904
2020-03-05 10:50:11 +00:00
Liam Young 755818526b Charmhelper sync for 20.02
Change-Id: I43ecd06dd4242a4d016d6dd525f38c7304bb6c6f
2020-02-04 16:39:16 +00:00
Liam Young fca036ba24 Use get_managed_services_and_ports from ch
Switch to using get_managed_services_and_ports from charmhelpers.

Charmhelper sync included to bring in required
get_managed_services_and_ports method.

Change-Id: Ib2b1f3dead1dbb613591bdf3903ed56e8c14f45c
2020-01-29 08:02:13 +00:00
Corey Bryant d9bd264324 Sync charm-helpers for Ussuri/Focal release and version details
Change-Id: I05ce14f8a66525877a0710ef3c164981bd72f35d
2020-01-17 14:22:17 -05:00
Alex Kavanagh 186769cc05 Policyd override implementation
This patchset implements policy overrides for keystone.  It uses the
code in charmhelpers.

Closed-Bug: #1741723
Change-Id: I187f4493392178d87ef7dbd67de841bbeae0c65d
2019-10-07 20:31:02 +01:00
Ryan Beisner 965aa3283e
Sync charm/ceph helpers, tox, and requirements
Change-Id: I6216604292a41c0a65509716d5ead0bb022247d2
2019-09-30 22:10:09 -05:00
Chris MacNaughton 35b4fc4a5f Sync charm-helpers
Change-Id: Iad76ecbb4850941bc9b184f4d0327f1a18b3770a
2019-07-16 07:06:04 +00:00
Frode Nordahl 0faecdf97a Defer processing of certificates until cert present
When ``certificates-relation-changed`` hook is called before the
certificate data is present on the relation do not attempt to
configure apache.

Change-Id: If915451d4b0846023355edcf3a49f643e12c7522
Closes-Bug: #1822952
2019-04-09 12:05:42 +02:00
Chris MacNaughton 093c36b9da Sync charm-helpers to enable Ubuntu Disco
Change-Id: Iaa7db0b453c7697ad10347721d1005d816562be6
2019-04-05 17:14:43 +02:00
Chris MacNaughton 56e29eddad 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: I151549108c53572868c796e452c5dc3dd7f8133d
2019-04-04 10:14:51 +02:00
Chris MacNaughton 0e345d5431 Sync charmhelpers for audit updates
The latest audit updates allow Keystone to pass the
file-ownership and file-permissions audits.

Change-Id: Ib274ba7fcf8c4a299cda3509cc87a10bff990142
Func-Test-PR: https://github.com/openstack-charmers/zaza/pull/204
2019-03-22 08:30:13 +01:00
Chris MacNaughton 3bd0997bf4 Add security checklist to Keystone
This charm adds the general ownership audits, as well
as keystone specific security checklist audits.

Change-Id: Iee093b36c54081f14a07c95e677ea08c72d72ca4
2019-03-07 06:54:40 +00:00
David Ames 9725a73a06 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: I3ba0142a09966c3cf61bec547668db6d357a916e
2019-02-12 15:57:13 -08:00
Corey Bryant 5a18adffbd Sync charm-helpers
Change-Id: I88636002d5038c6a5b4f87635a15393f8f1d8910
2019-01-11 14:37:41 +00:00
Zuul 949ddd4018 Merge "fix typos in the docstring" 2019-01-09 09:30:41 +00:00
Corey Bryant c65f1a76d0 Sync charm-helpers
Change-Id: If60057b137f1eea7059dff87c089e6ebd098ea9c
2019-01-08 15:17:42 +00:00
melissaml 12119b9637 fix typos in the docstring
Change-Id: Id77f0e887afb781ca8602eb41888e607f25bb6e8
2018-12-22 03:54:11 +08:00
Liam Young 0423950c76 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: I906e96ad8cbcf2ca2d1cdbfd091070c21427214c
2018-12-04 15:39:59 +00:00
Ryan Beisner eb0bbc965d
Sync charm-helpers
Change-Id: Ieb4af8c1d48c009232905506c102f5e0df67c24f
2018-11-07 15:34:45 -06:00
Zuul d3aa1dc449 Merge "Gate initial update of relations on having reached expected scale" 2018-10-17 06:18:48 +00:00
Corey Bryant 9cb5636eba py3: Switch to using Python 3 for rocky or later
Switch package install to Python 3 for OpenStack Rocky or later.

When upgrading, remove any python-* packages that were explicitly
installated and then autoremove --purge any dependencies that are
no longer required.

Also drop the python2 shebang from hooks/manager.py in favor of
specifying the interpreter on the subprocess call. The python
interpreter version must match the python version of the OpenStack
payload due to the keystoneclient library imports.

Depends-On: I18996e15d2d08b1dacf0533132eae880cbb9aa32
Change-Id: If973ebc2be3b32ee3ff2122b5874dad96cda9fec
2018-10-10 09:20:51 -04:00
Frode Nordahl a449a53885
Gate initial update of relations on having reached expected scale
At present the Keystone charm frequently initiates updates to its
relations before it has reached a stable state.

Make use information from ``juju goal-state`` to predict scale and gate
initial update of relations on having reached expected scale.

Depends-On: https://github.com/juju/charm-helpers/pull/226
Change-Id: I96d4aff7c4ec9fb9ea160c7e294581bab3103df8
2018-10-04 10:15:42 +02:00
Ryan Beisner 48f1ea4dff Add cosmic
Add a tactical change which is already merged into charm-helpers.

This needs to go into all charms to solve the chicken:egg issue
where cosmic is untestable until this change exists.

Reference:

4835c6c167

Change-Id: If4c1f27b7e5da8dbd8352aed629e9b483f67d8c1
2018-09-19 13:27:18 +02:00
David Ames f104f3625d Series Upgrade
Implement the series-upgrade feature allowing to move between Ubuntu
series.

Change-Id: I77aebf205cb88ae4da4cdbb33b9336b21c31ee32
2018-09-14 20:57:32 -07:00
Frode Nordahl 8da8061687 Sync charm helpers and enable Rocky func test
Change-Id: I4429687492dbac75dcbf9310d2144f8f6dcf9c79
2018-08-27 14:54:37 +02:00