Commit Graph

134 Commits

Author SHA1 Message Date
Alex Kavanagh e65eaf3151 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: If2944411e04d21448f518b701f74a35ae39cd20e
2024-02-12 18:19:33 +00:00
Alex Kavanagh e78568ebb2 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: I071037fbef7940e447d6aaefa61e38b988b37e66
2023-09-15 15:51:12 -04:00
Corey Bryant bc8ee3ef8e 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

Depends-On: https://review.opendev.org/c/openstack/charm-ceph-radosgw/+/890700
Change-Id: I6136bff2e755afbd50c607782351d1d720a525fa
2023-08-14 17:23:52 +00:00
Corey Bryant f6212eac8b 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
* Sync charm-helpers to pick up fix for os_requires_version()

Change-Id: I9d44ab27409530e4690121e6ab7e3fdfeeda3071
2023-04-14 13:11:51 +00:00
Corey Bryant bc9c435dbc 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: I3840ac8ad4fd20978cf12e4a64fb4cf3fbc7f954
2023-03-07 20:07:26 +00:00
Corey Bryant 021c4256a7 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: Iff2f3d0e011b47d895136ab7376f0e7d9c3955fb
2022-08-26 18:40:33 +00:00
Alex Kavanagh be13489b15 charm-helpers sync to include pci
Change-Id: I566404ca79dca682183d412b985838097f61ab86
2022-04-07 12:13:35 +01:00
Edward Hope-Morley d2546d56be Sync charmhelpers to get fixes
Change-Id: I99007f5446fd930c23d10808dee9389c1f474f1c
Related-Bug: #1965967
2022-03-28 11:33:11 +01:00
Corey Bryant 7704576a46 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: I8226658c97575e3a0ccf0989a2690716afb2ac5e
2021-11-09 10:27:03 -05:00
Alex Kavanagh 99440f370f Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I5cf40c1d44ffac42f2a21615c2969ffcc9d1910b
2021-09-29 20:01:27 +00:00
Alex Kavanagh 638c9b6cb5 Sync charmhelpers for xena install support
This is a pre-xena-bundles sync so that other charms that
depend on this can be merged.

Change-Id: I7f17acb4cc4a83fc15655bf6e15c8ff3b3fe92ff
2021-09-14 10:45:54 +01:00
Corey Bryant cfc03e5b78 c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I7e70e466f0babe940f520cd4a240a06de61f51c0
2021-05-13 08:46:25 -04:00
Alex Kavanagh 6823beb7c3 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: Ifbb9b9b3a796881a3759f01f67124544ba1ce626
2021-04-11 16:53:02 +01:00
Alex Kavanagh 6db4303124 Charm-helpers sync for wallaby bundles
In order to get the ball rolling with keystone, glance needs to
know about wallaby so that it can install in keystone's functional
tests.   This sync just teaches glance about wallaby.

Change-Id: I23f286fd1175c01883a8eb19d3e52c2a30a38dda
2021-03-31 11:28:16 +01:00
Alex Kavanagh bd40cf2d9a 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
* Include fix for local_address()

Change-Id: Ie7d5df9d44f687303898d2568205285e645a6fcd
2021-01-20 11:45:49 +00:00
David Ames 4a1aa147d1 Charm-helpers sync for Bug #1893847
Change-Id: I5efe8e98c23f8660cb5d90286e685a4b5dde8aba
Closes-Bug: #1893847
2021-01-05 14:24:12 -08:00
Liam Young bc273a59e1 Send application name to ceph-mon
Send application name to ceph-mon as ceph-mon cannot derive it from
CMR relations.

Change-Id: I2bd1062b6aa05eab4eb3bd8d602a2d02f085f531
2020-10-01 10:32:35 +00:00
Frode Nordahl 8f3dfb184b
Add Ceph BlueStore Compression support
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/398
Change-Id: I997bb15c692c442db2db79d96882a2204186dbe1
2020-09-15 08:35:43 +02:00
James Page ed8bdede6f Add support for erasure coded ceph pools
Add standard configuration options for erasure coded pool
creation and profile configuration.

Update ceph relation joined handled to support erasure
coded pools - a replicated pool is created at 1% of the
total data weight alongside the erasure coding profile and
supporting erasure coded data pool.

Update ceph context to use the metadata pool name in the
glance configuration files when erasure-coded pool-type
is configured.

Resync charmhelpers to update Ceph Broker request support
for erasure coding.

Change-Id: If4a31a2adf8080af66885adb970fbb3cdd82f573
Depends-On: Iec4de19f7b39f0b08158d96c5cc1561b40aefa10
2020-08-07 10:41:40 +01:00
Alex Kavanagh 544bc37618 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: Idf6be388233fc6554cb83f6ee6cdae9b1ed29fb5
2020-07-27 20:52:13 +01:00
Corey Bryant 4a6500a7e0 Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: I7bc0b06abfe19b1783593ae10f384806c8334d29
2020-07-13 18:59:47 +00:00
Zuul cb52449546 Merge "Stop to use the __future__ module." 2020-07-13 05:35:38 +00:00
Liam Young 160ba6e252 CH Sync for rabbit relation bug fix
Charmhelper sync to pick up the fix to the AMQP context.

Change-Id: I50271150aa2d2ccc60cb0b7d5123d08c8e38eba4
Closes-Bug: #1796886
2020-06-25 10:04:17 +00:00
Hervé Beraud e2afb30f78 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I5d8e1d2320d75340fb802b4ef6a4f2a8fcafc8cd
2020-06-02 19:41:32 +02:00
Alex Kavanagh d13a5791b2 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: Ib453fa02467788d01392df427c0637f1060d9247
2020-06-02 14:30:31 +01:00
Aurelien Lourot 4f657278b2 Sync helpers for 20.05
Change-Id: Iab3324dbdb4fdc95b456870758ca22ce41fda7ae
2020-05-18 14:41:25 +02:00
Aurelien Lourot 7d8ea703e8 Pre-freeze 'make sync'
Change-Id: Iacfba2a3c195d8491b798da32adace398a1de48c
2020-05-06 15:54:42 +02:00
Alex Kavanagh fc589caaad Sync c-h for py38 support and add focal to metadata
Note that this is NOT the focal testing enablement for the charm.  This
is a sync of charm-helpers and a add of 'focal' to the metadata to
enable testing, and landing, of other charms' focal functional testing
enablement.  focal testing will be added soon.

Change-Id: I53c0923fe2f76a8808b4f0fa5245c73d376860bc
2020-03-06 14:08:30 +01:00
Liam Young 948a8a88a3 Charmhelper sync for 20.02
Change-Id: I148076530951496de48c3de7597fed401a6588e7
2020-02-04 16:38:55 +00:00
Liam Young 9d60f159e7 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: I9ede7d45e1d4da457d2228caf0367bf374bd51ea
2020-01-25 07:40:22 +00:00
Corey Bryant ecf87a2135 Sync charm-helpers for Ussuri/Focal release and version details
Also drop disco-stein test bundle now that Disco is EOL.

Change-Id: I34e9af5f75f1568b80c198fbfe81b7c37989b9ec
2020-01-22 14:20:01 +00:00
Liam Young f3aafbb182 Sync charmhelpers
Change-Id: I9544ecb2ecb5306be30d915835f60e48315858d3
2020-01-16 15:01:25 +00:00
Alexandros Soumplis b5e6a3e03a Remove deprecated glance-registry from nrpe checks
This patch removes the deprecated glance-registry service from nrpe
checks after an openstack upgrade to an openstack version greater than
Rocky

Closes-Bug: #1849896
Depends-On: https://github.com/juju/charm-helpers/pull/409

Change-Id: I274441966f15f66341adf30c07c625cc76b2ecb6
Signed-off-by: Alexandros Soumplis <soumplis@admin.grnet.gr>
2020-01-09 16:18:11 +02:00
Alex Kavanagh 97152f55a1 Policyd override implementation
This patchset implements policy overrides for glance.  It uses the
code in charmhelpers.

Change-Id: I0586326ff87fdf03f2c88e4c459627f4085c3367
Closed-Bug: #1741723
2019-10-07 22:04:00 +01:00
Ryan Beisner a018795929
Sync charm/ceph helpers, tox, and requirements
Change-Id: I798c3a2ecd7ef34951eea4f1e2c0f3adc31aa83d
2019-09-30 22:10:03 -05:00
Corey Bryant 557566e9d9 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: I192396dbd1ef96cab95e3958ae06fd86aa54ab46
Closes-Bug: #1838696
2019-08-05 11:48:13 +01:00
Chris MacNaughton b9a8aee3ce Sync charm-helpers
Change-Id: Ied5ffd31b488f45d062eec04ef61bf8f941d70f3
2019-07-16 07:06:04 +00:00
Chris MacNaughton b4f24991e5 Sync in CephContext fix
Change-Id: I6e77bba1d66ea08671d45c464d4e76796a4e6ab9
2019-05-29 15:03:22 +02:00
Nikolay Vinogradov 83b304ba18 Rework keystone_authsection generation for Queens+
Generate keystone_authsection section configuration option names
and values in Python code, and just iterate over it from Jinja
template. The idea is to have more flexibility in case of complex
branching logic (e.g. per OpenStack version), or to support option
deprecation.

Change-Id: I15d802d34de4a4b9319fd83a7063523df19cbe03
Related-to: https://bugs.launchpad.net/charm-glance/+bug/1786186
2019-05-07 17:39:29 +00:00
Chris MacNaughton 2347e2c742 Sync charm-helpers to enable Ubuntu Disco
Change-Id: I1129cbef394953dacf6756536cd0e3ea27458675
2019-04-05 17:13:40 +02:00
Chris MacNaughton a349d69354 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: Id89a61116a92f56e7faac1a48c11003547e169b7
2019-04-04 10:13:49 +02:00
Chris MacNaughton 634e1b31b1 Latest charmhelpers audit update fixes file permission check
Change-Id: I17b606fcabeb1aec3426d38196b4123b24915e31
2019-03-22 15:29:01 +01:00
Chris MacNaughton 35afe120af Add security-checklist action
Change-Id: Ie1f0dcc85c708d2e837d09c7472a35d5ffa7fd13
2019-03-14 16:49:11 +01:00
Corey Bryant 5ae43bb056 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_glance_api_default_config is also removed in this change
as amulet tests no longer need to confirm config file settings.

Change-Id: I02c02f71669433ea719dffae42073771a40f743a
Closes-Bug: #1817672
2019-02-26 13:35:10 +00:00
David Ames 211ac1ec6e 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: I8feaef641fc9c22ed47529ce91b011db5694a6f7
2019-02-12 15:56:37 -08:00
Pete Vander Giessen d2f87c3e02 charmhelpers-sync
Pull in fix for call to ceph-authtool when updating keys.

Change-Id: Ieccddef41091b5577b28528c7da1e26cb6c4eba6
Closes-Bug: #1810917
2019-01-17 17:43:08 -05:00
Corey Bryant 42b9ced7f3 Sync charm-helpers and corresponding amulet update
Change-Id: Ic112efef37125b0c47c92f3c168d041467409f3f
2019-01-12 14:21:28 +00:00
Zuul 52c4bd4448 Merge "fix typos in the docstring" 2019-01-09 09:33:06 +00:00
Corey Bryant e4d2334e91 Sync charm-helpers and corresponding amulet update
The amulet tests now explicitly specify the pymysql driver for the
mysql sqlalchemy dialect. The sqlalchemy package has switched back
to using mysqldb as the default driver for the mysql dialect in
Ubuntu Disco (Stein) and charm-helpers has been updated
accordingly to maintain the same behavior.

Change-Id: I5f1c3768eac53c8a9a5cdd43b393a6c7f9b14e4c
2019-01-08 13:04:48 -05:00
melissaml dbf5f1d56f fix typos in the docstring
Change-Id: Ie70438a949d1cc97395c88cfa7ef6c57784f37f5
2018-12-22 03:52:42 +08:00