Commit Graph

108 Commits

Author SHA1 Message Date
Utkarsh Bhatt 1a76572ebe Caracal-Squid Enablement
Change-Id: Ib5d16975cf4729a21ee91f7cb3d5f2bcbb522530
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
2024-05-02 16:30:06 +05:30
Peter Sabaini bd57a326e9 Sync charmhelpers
Prep for noble/caracal, unit test fix

Change-Id: I5ad6b618bb3a5660a61ac3c536430c8e380e655c
2024-04-09 13:26:14 +02:00
Nobuto Murata c4209b3965 Allow ceph device scrape-health-metrics
Ceph has a function to collect health metrics through smartctl or nvme
command out of the box. And it relies on sudo spawned from the ceph-osd
process so it needs to be considered in the apparmor policy.

[/etc/sudoers.d/ceph-smartctl in ceph-base package]
> ## allow ceph daemons (which run as user ceph) to collect device
> ## health metrics
>
> ceph ALL=NOPASSWD: /usr/sbin/smartctl -x --json=o /dev/*
> ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/*

Also sync charmhelpers and mock platform info

Closes-Bug: #2031637
Change-Id: I981a5db0fd49eca83aa8a619f0cbd0d34a533842
2023-11-06 20:18:36 +01:00
Luciano Lo Giudice e97890043c Sync charm libraries
Change-Id: Ie6ae6fa1369db537fa606fa04df538f9a5587a0c
2023-09-12 19:23:43 -03:00
Corey Bryant 986981c6f4 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to quincy
* 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

Change-Id: I7449eba63107b43525359fb92ae1a0ad9e648bab
2023-07-25 17:26:56 -04:00
Felipe Reyes 57d647005b Charm-helpers sync
Sync to get Antelope support.

Change-Id: I850bf37fa395949d6df9ad2c5157b75012ee8ba2
2023-03-28 09:01:40 -03:00
Corey Bryant 856dffb486 Sync charm-helpers for zed support
Change-Id: I266226c771282194f809120be0271012705cb4bd
2022-09-26 19:01:37 +00:00
Billy Olsen d4f3dd2ee6 Updates for jammy quincy and finalise charmcraft builds
- Update charmcraft.yaml for arch builds
- Remove impish-xena tests
- Update osci.yaml to include py3.10 default job
- Resync charmhelpers and charms.ceph

Change-Id: I41abace773d8926eaa00076dd83f52849c96150d
2022-04-07 16:47:55 +02:00
Corey Bryant f2d704a14d 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
* charms.ceph sync

Change-Id: I4d517c40a4450ef1395dd0240513eeebc069384c
2021-11-17 13:46:25 -05:00
Alex Kavanagh fe570c72f2 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Iaaef29dfd8e682121dc0256e5cf3d97293cf84b3
2021-09-21 14:34:05 +01:00
Corey Bryant 18bbada288 c-h sync - restore proxy env vars for add-apt-repository
Change-Id: Ic2b610be597fb6b84e8c8bb48409a4f080447474
2021-05-13 08:45:39 -04:00
Alex Kavanagh cf2948f8f0 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: I773d5f9f699af1a2ea7be543c4e58e0f7bc4433a
2021-04-09 08:42:26 -07:00
Alex Kavanagh da7953396f 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: I3a7d4e5093f15a1fb32310522229d0b4ebd61c59
2021-01-20 12:20:25 +00:00
Alex Kavanagh 22a8db4a2c 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: Ie6146da90c4adc38e817e644e1328ad6c41d678f
2021-01-19 12:22:08 +00:00
Alex Kavanagh 73a95c0887 Updates for testing period for 20.01 release
* 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: Iffb92ef062f307bc9b2b27e217431b2fc122acfc
2021-01-12 15:28:53 +00:00
Aurelien Lourot 27d035f89b Add Groovy to the test gate
Change-Id: I273eeb41f9750ddb32ae1ca5933278ac8af5c4b7
2020-11-05 12:44:12 +01:00
Alex Kavanagh 1adefd359b 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

Required additional fix:

* Also sync section-ceph-bluestore-compression template

Change-Id: I621c3a0e4e3594808b4c6ec298ed79aada44bae0
2020-09-28 18:48:15 +01:00
Frode Nordahl b49468fc10
Add BlueStore Compression support
Sync in updates from charm-helpers and charms.ceph.

Depends-On: I153c22efb952fc38c5e3d36eed5d85c953e695f7
Depends-On: Ibec4e3221387199adbc1a920e130975d7b25343c
Change-Id: I028440002cdd36be13aaee4a0f50c6a0bca7abda
2020-08-26 16:30:24 +02:00
Alex Kavanagh e350ff6144 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: If07335447789d1521e1cd745bffff90e4900c7c1
2020-07-27 20:49:54 +01:00
Corey Bryant 189e0c2b98 Sync charm-helpers for Victoria/Groovy updates
This sync picks up the release and version details for Victoria/Groovy.

Change-Id: I459b37cb22ac00d8d4fd9983d9a995b475a0207d
2020-07-13 18:59:17 +00:00
Alex Kavanagh 8b0b24d6c6 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: I56a59d0c4e72a35b7c4ac5d989e0d005fae20946
2020-06-02 14:28:22 +01:00
Aurelien Lourot c64f4eb36a Sync helpers for 20.05
Change-Id: Ibebef746614a9de92c4e3c9ca109f313562784fc
2020-05-18 14:39:04 +02:00
Aurelien Lourot 62a6258148 Pre-freeze 'make *-sync'
Change-Id: Ia4f7043fc7281cea841baf81daded1273c4158f3
2020-05-06 13:28:29 +02:00
Liam Young 3e795f6a62 Apply OSD settings from mons.
Apply OSD settings requested by the mons via the juju relation.
Add the OSD settings to config too. Before applying the settings
config-flags is checked to ensure there is no overlap.

Change-Id: Id69222217a1c99d0269831913abdf488791cb572
2020-05-04 08:23:00 +00:00
Ryan Beisner 61ffd77184
Sync charm-helpers for py38, distro, and other updates
Change-Id: I9e8848cc6dff2addd4db087740ba5bbc967577cf
2020-03-05 13:30:42 +01:00
Alex Kavanagh 8b2e85e435 Ensure python3-hvac is installed for charms with encypt option
The referenced bug is essentially: make vault:secrets relation to vault
but keep the 'encrypt' option as False. In this case, the Context
handling code in charm-helpers is expecting python3-hvac to be
available, but it is only installed if the encrypt option is set to
True.  Hence the charm crashes.  This resolves that crash.

Note the related charm-helpers fix [1].

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

Change-Id: I9cb60a9340554c91668272b46f7c2dcf9f0ac2d1
Closes-bug: #1862085
2020-02-17 12:13:51 +00:00
Liam Young 620ff1c20a Charmhelper sync for 20.02
Change-Id: I696c0f3303f038a66cf2298d10f081b580e0a9fe
2020-02-04 16:38:23 +00:00
Corey Bryant d4a6142a03 Sync charm-helpers for Ussuri/Focal release and version details
Change-Id: I5ac45332a126143ce0299c2c534523bd890f5f57
2020-01-17 14:21:26 -05:00
Edward Hope-Morley d6dc3c794b Charmhelpers sync to get vaultlocker fixes
Also gate checking vault context completing on whether
dependencies are installed.

Change-Id: I6c89944960f592300921fbd455c6d1d8c4b9b2a2
Closes-Bug: #1849323
2019-12-11 14:30:24 +00:00
Ryan Beisner 4c21a984c6
Sync charm/ceph helpers, tox, and requirements
Change-Id: I7a2ebaa43184420812b6f348039dd37de47d2488
2019-10-02 11:49:01 -05:00
Chris MacNaughton 18db4e233f Sync charm-helpers
Change-Id: I458ce4e8938072bc42f7250eadb1a12b097139ff
2019-07-16 07:06:05 +00:00
Chris MacNaughton 506d5e9bf9 Sync charm-helpers to enable Ubuntu Disco
Change-Id: If57b1d477c1562f1222dc05e419fc762d7c64d39
2019-04-05 17:12:05 +02:00
Chris MacNaughton b83797c707 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: I8a252fd730fa89b2c6aa12765a388d7a35f1dcc7
2019-04-04 10:12:15 +02:00
Chris MacNaughton 874e553e0c Add security-checklist action
Change-Id: I6e2ff9b546a1283748550beefc366ae055b63b7e
Func-Test-PR: https://github.com/openstack-charmers/zaza/pull/193
2019-03-13 10:32:13 +01:00
David Ames 4855a07d50 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: I88706824d0f755b016fc393b273a76e9b09aa4c3
2019-02-12 15:55:44 -08:00
Corey Bryant a3fd4b3127 Sync charm-helpers
Change-Id: Id2f3315520008b6b14c37b6f3ab605bcf9c0bc1c
2019-01-11 14:34:49 +00:00
Zuul ff0bc0c6de Merge "fix typos in the docstring" 2019-01-09 09:10:20 +00:00
Corey Bryant 0afd2e693d Sync charm-helpers
Change-Id: I6e7b334c9b58035780b71fadd56c6d7c03dc87ec
2019-01-08 15:15:34 +00:00
melissaml 17ae4e3f61 fix typos in the docstring
Change-Id: I6f335860f5d86329c1fdbb8ec51e4673f75d1d00
2018-12-22 04:21:49 +08:00
James Page cfc7b05332 Resync charms.ceph and charmhelpers
Resync with latest updates to charms.ceph to avoid explicit
installation of python-ceph which is not required and breaks
under the laters Ceph packaging which no longer ships Python 2
support.

Change-Id: I4ce2b91dd476f90c30d1379dac5b00b8aaa9c73a
2018-12-05 15:24:45 +00:00
Ryan Beisner 8793ac3bae
Sync charm-helpers
Change-Id: Ic731c9213498136434bcbb1cdba8672be25e7243
2018-11-07 15:33:29 -06:00
Ryan Beisner eef2a8be2c Update functional test definitions
Change-Id: Ib8c7ccae838d4d79a5f9cf737fa8fd3478afadc4
2018-08-28 17:23:01 -07:00
Chris MacNaughton 43d868dc21 Sync charm-helpers to ensure Rocky support
Change-Id: Ib1fb899fbbe89158b0b5309b7fa8cb78229c9e40
2018-07-13 15:51:58 +02:00
Corey Bryant ec8bcd5f9d Sync charm-helpers for Rocky series support
Change-Id: Iec56fb9c4a2bfd79c3580dca54c5ba68d64fc4c0
2018-06-21 18:51:42 +00:00
Ryan Beisner 22ce311b0b
No reformat
Do not reformat devices.  A subsequent change will be necessary
to account for conditions where a reformat is still desired,
such as a set of blocking states and user-driven actions.

Partial-bug: #1698154

Depends-On: I90a866aa138d18e4242783c42d4c7c587f696d7d
Change-Id: I3a41ab38e7a1679cf4f5380a7cc56556da3aaf2b
2018-06-04 12:40:47 +02:00
James Page 2069e620b7 Add support for vault key management with vaultlocker
vaultlocker provides support for storage of encryption keys
for LUKS based dm-crypt device in Hashicorp Vault.

Add support for this key management approach for Ceph
Luminous or later.   Applications will block until vault
has been initialized and unsealed at which point OSD devices
will be prepared and booted into the Ceph cluster.

The dm-crypt layer is placed between the block device
parition and the top level LVM PV used to create VG's
and LV's to support OSD operation.

Vaultlocker enables a systemd unit for each encrypted
block device to perform unlocking during reboots of the
unit; ceph-volume will then detect the new VG/LV's and
boot the ceph-osd processes as required.

Note that vault/vaultlocker usage is only supported with
ceph-volume, which was introduced into the Ubuntu packages
as of the 12.2.4 point release for Luminous.  If vault is
configured as the key manager in deployments using older
versions, a hook error will be thrown with a blocked
status message to this effect.

Change-Id: I713492d1fd8d371439e96f9eae824b4fe7260e47
Depends-On: If73e7bd518a7bc60c2db08e2aa3a93dcfe79c0dd
Depends-On: https://github.com/juju/charm-helpers/pull/159
2018-05-15 08:28:15 +01:00
Felipe Reyes 644dea83de Sync charm-helpers
Change-Id: I8e565d86b15c959ba224136b15e9db037892f6f5
Closes-Bug: #1765805
2018-05-02 16:06:36 -03:00
James Page b6dca11a1b luminous: ceph-volume switch
Switch to using ceph-volume + LVM for managing block devices
for Luminous and later; this is the upstream preferred approach
to managing OSD devices, allowing for more flexibility in terms
of use of crypto and logical volumes.

Change-Id: I30c4d29e6f568ac2e30a45b1a7bc0e68685c3707
Depends-On: I1675b67d364ae6042129a8a717d4bdffff5bde92
2018-04-10 09:17:38 +01:00
Ryan Beisner 921b99875c Sync charm-helpers
Change-Id: I6b3a8b4f97e42d820792db6533874405d3625364
2018-02-21 14:07:25 -06:00
Ryan Beisner 3728254e8b Sync charm-helpers
Notable issues resolved:

openstack_upgrade_available() broken for swift
https://bugs.launchpad.net/charm-swift-proxy/+bug/1743847

haproxy context doesn't consider bindings
https://bugs.launchpad.net/charm-helpers/+bug/1735421

regression in haproxy check
https://bugs.launchpad.net/charm-helpers/+bug/1743287

Change-Id: I86b23f0be2e5098696833996ca807d354fe72751
2018-01-19 12:07:41 +00:00