Commit Graph

66 Commits

Author SHA1 Message Date
Fulvio Galeazzi a2ffd3a497 Add support for CephFS.
Extend ceph-proxy to implement ceph-mds interface, this allows the
ceph-fs to be related. The testing is made reusing the CephFSTests
testing class.

Usage example:

  juju add-relation ceph-proxy:mds ceph-fs:ceph-mds

Co-Authored-By: Felipe Reyes <felipe.reyes@canonical.com>
Closes-Bug: #1922195
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/558
Change-Id: I437dbac9fe018eb2d0ffb87052d61a08aa014473
2023-06-16 18:44:08 -04:00
Liam Young dee1f3c86c Process requests for radosgw per unit keys
Process requests for radosgw per unit keys. Ideally the charm
would move to using charms.ceph.utils for the get_radosgw_key
method but this does not work atm. I have raised bug #1899643
to cover deduplicating hooks.ceph v charms.ceph.*

Change-Id: I00f5a58f127baa1f7878b0ddb31b4fa009d9651e
Closes-Bug: #1899634
2021-01-12 11:30:01 +00:00
Alex Kavanagh 5e80697a56 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: I512ef8bbb52c08e782c66450b435a40a76b8a532
2020-09-28 13:51:24 +01:00
Alex Kavanagh e3be7e48b9 Add focal-ussuri and bionic-ussuri bundle
This patch adds a focal-ussuri and bionic-ussuri bundles to the tests
for the charm.

Also removes 'admin-token' from the tests, as the keystone charm no
longer accepts the option.

Also, for focal, btrfs-tools has been removed and replaced by
btrfs-progs; thus these are installed on focal instead.  See linked Bug.

Closes-Bug: #1871712
Change-Id: Ifc79beebb981571cebc38be6cb6c2748d22816c9
2020-05-17 16:01:14 +01:00
tpsilva dfb29a4753 Add support for 'add-permissions-to-key' requests
Currently add-permissions-to-key requests are not being handled by this
charm, so if cinder-ceph or glance is deployed with
restrict-ceph-pools=True, it will not be configured properly. This
patch ports the implementation of the add-permissions-to-key
handling from the ceph-mon charm, and updates other methods required
to properly set up cinder-ceph and glance ceph pools.

Change-Id: If5950af155e10ee4d140300fd7ed5730798b65f0
Closes-bug: #1836408
2019-10-02 10:44:07 -03:00
Frode Nordahl 2d70bab004 Enable bionic/stein and disco/stein functional tests
Drop explicit install of python-ceph; ceph-common has an
appropriate dependency on the required python{3}-ceph package
so this is not required, and breaks on Stein where Python 2
packages are no longer provided.

Closes-Bug: 1824154
Change-Id: Ia219258f73f038170bc5a070d562e499459fe246
2019-04-10 16:41:15 +01:00
Alex Kavanagh ddd26acc6d Convert the charm to Python3
* Move charmhelpers to the root of the charm
* sync charmhelpers to latest version

Change-Id: Id0b838f0206635cf912d205f2fb6fda7b31d0dfe
2019-03-10 14:16:41 +00:00
Zuul 9198755128 Merge "support custom admin user and user auth" 2018-09-26 09:55:08 +00:00
Dmitrii Shcherbakov 81383a160b support custom admin user and user auth
In order to support cases where pools and keys are pre-created and
ceph-proxy just proxies this data to client applications this change
introduces support for:

* having custom "admin" users which may not actually have admin
privileges on the target cluster (client.admin is probably occupied by
real admins in this case);
* using cephx keys provided via charm config.

Change-Id: I01014b6986f92bf0ad8147a08afa1d61fdd5c088
Closes-bug: #1793991
2018-09-26 10:09:14 +03:00
Dmitrii Shcherbakov 331e8451c6 modify default_caps to match current ceph-mon caps
The current default caps in ceph-proxy are not up to date with
charm-ceph-mon caps.

Change-Id: Iaeb8d4dea9c36f522aeaddf54b19e4947c81a559
Closes-Bug: #1794071
2018-09-24 14:22:58 +03:00
Alex Kavanagh 72060b6ee7 Fix alphanumeric comparisons for openstack and ubuntu releases
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done

Change-Id: I10e3e689aba490118b84b6b9e58df1ba5632d07d
Related-Bug: #1659575
2017-03-29 15:07:07 +01:00
Chris MacNaughton cbf55d6dfd ceph clients can relate through the proxy 2016-06-15 13:44:40 -04:00
Chris Holcombe 67feefd6f4 Rolling upgrades for Ceph Monitor Cluster
This change adds functionality to allow the ceph monitor cluster to
upgrade in a serial rolled fashion.  This will use the ceph monitor
cluster itself as a locking mechanism and only allows 1 ceph monitor
at a time to upgrade.  If a monitor has been waiting on the previous
server for more than 10 minutes and hasn't seen it finish it will
assume it died during the upgrade and proceed with its own upgrade.

Limitations of this patch: As long as the monitor cluster does not
split brain this should work fine.  Also this assumes that NTP
among the ceph cluster is fairly accurate.

Change-Id: I7254261b6206f0ec34a8aa1e94e7b06ae308d8f8
2016-03-11 08:24:56 -08:00
Liam Young 47e0f8868d Wait for qurom 2016-02-17 09:46:25 +00:00
Chris MacNaughton 43894f1f3b fixing hooks 2016-01-25 13:14:51 -05:00
Chris MacNaughton 7e20b4cb16 fix permissions when creating OSD with directory 2016-01-12 09:17:36 -05:00
Chris MacNaughton 84fa24c2ac update for lint 2016-01-11 10:46:02 -05:00
Chris MacNaughton ce566d64d2 remove commented out addition 2016-01-11 10:24:30 -05:00
Chris MacNaughton 453a6dec0c update to work with infernalis in additionto firefly 2016-01-11 10:18:55 -05:00
Chris MacNaughton 43e73c8250 update to ue ceph-disk prepare instead of ceph-disk-prepare 2016-01-08 14:03:51 -05:00
James Page b34fe948a9 Add basic status assessment for monitor role 2015-10-06 11:06:36 +01:00
James Page b4dfe03959 Deal with upgrades - unikely 2015-03-23 17:59:39 +00:00
James Page d159b4c716 Enable ceph-mon on boot post bootstrap 2015-03-23 17:55:28 +00:00
James Page 11b989dc38 Detect and configure mons correctly for systemd ubuntu 2015-03-23 17:40:42 +00:00
Christopher Glass dac28490aa Fixed typo in log message. 2014-09-12 14:13:36 +02:00
James Page e6c81ad5b1 Add support for ignoring device problems 2014-08-15 10:21:25 +01:00
James Page 16a9dd21d4 Only directly zap the disk for older ceph versions 2014-07-28 15:50:31 +01:00
James Page 0f944474df Rebase 2014-07-25 09:01:29 +01:00
James Page 8addd70182 Use charm-helper for pkg version comparison 2014-07-23 12:28:18 +01:00
James Page ca61077559 Pass zap disk to prepare command if need be 2014-07-15 10:41:35 +01:00
James Page 0d49ad4c85 Add support for splitting public and cluster networks 2014-06-06 13:29:32 +01:00
Christopher Glass 365ec739fa Make ceph use the charm-helpers "is_device_mounted" function instead of defining
its own.
2014-05-19 14:15:38 +02:00
James Page 9548c3d523 Fixup subcap handling 2013-09-23 11:19:06 +01:00
James Page da6bbc6413 Update default mon permissions to have rw for pool creation, upgrade keys on charm upgrade 2013-09-23 11:11:04 +01:00
James Page a11d4e637b Correct osd bootstrap key name 2013-08-27 14:57:46 +01:00
James Page 2747d98614 Deal with osd bootstrap key upgrade challenges 2013-08-27 14:38:34 +01:00
James Page 40841e5372 Tweak handling for OSD startup 2013-08-27 14:05:25 +01:00
James Page 8ed7b39673 Don't try to create osd-bootstrap key - it should always exist 2013-08-27 12:30:53 +01:00
James Page 37d8eb4b82 Ensure disks exist before activating 2013-08-27 12:23:02 +01:00
James Page 14bef22e44 Add support for use of directories instead of devices for OSD's 2013-08-27 11:44:50 +01:00
James Page f66d3d9500 Fixup dodgy disk detection 2013-07-08 09:32:38 +01:00
James Page d6e7d2031a Move to using new storage charmhelpers 2013-06-25 12:03:02 +01:00
James Page b0bf0e6632 Zap disks if reformatting is requested 2013-06-24 14:52:52 +01:00
James Page c04031f98e Switch to using restart for ceph-mon-all 2013-06-24 10:24:12 +01:00
James Page 068b8b05a4 Add flake8 and charm proof target for Make 2013-06-24 10:13:52 +01:00
James Page bc84ae2559 Remove commented out import 2013-06-24 09:44:02 +01:00
James Page 0f3f4343ff Pickup fixes for string handling 2013-06-23 20:24:03 +01:00
James Page 2d0b3fe9b8 Initial move to charm-helpers 2013-06-23 20:10:07 +01:00
James Page 75077816be Add support for BTRFS 2012-12-18 10:25:38 +00:00
James Page d8704bdc92 Zap journal once 2012-12-17 17:37:31 +00:00