Commit Graph

46 Commits

Author SHA1 Message Date
Nobuto Murata c9389a8cd0 Revert "Create NRPE check to verify ceph daemons versions"
This reverts commit dfbda68e1a.

Reason for revert:

The Ceph version check seems to be missing a consideration of users to
execute the nrpe check. It actually fails to get keyrings to execute the
command as it's run by a non-root user.

$ juju run-action --wait nrpe/0 run-nrpe-check name=check-ceph-daemons-versions
unit-nrpe-0:
  UnitId: nrpe/0
  id: "20"
  results:
    Stderr: |
      2023-02-01T03:03:09.556+0000 7f4677361700 -1 auth: unable to find
      a keyring on
      /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin:
      (2) No such file or directory
      2023-02-01T03:03:09.556+0000 7f4677361700 -1
      AuthRegistry(0x7f467005f540) no keyring found at
      /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,
      disabling cephx
      2023-02-01T03:03:09.556+0000 7f4677361700 -1 auth: unable to find
      a keyring on
      /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin:
      (2) No such file or directory
      2023-02-01T03:03:09.556+0000 7f4677361700 -1
      AuthRegistry(0x7f4670064d88) no keyring found at
      /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,
      disabling cephx
      2023-02-01T03:03:09.560+0000 7f4677361700 -1 auth: unable to find
      a keyring on
      /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin:
      (2) No such file or directory
      2023-02-01T03:03:09.560+0000 7f4677361700 -1
      AuthRegistry(0x7f4677360000) no keyring found at
      /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,
      disabling cephx
      [errno 2] RADOS object not found (error connecting to the cluster)
    check-output: 'UNKNOWN: could not determine OSDs versions, error: Command ''[''ceph'',
      ''versions'']'' returned non-zero exit status 1.'
  status: completed
  timing:
    completed: 2023-02-01 03:03:10 +0000 UTC
    enqueued: 2023-02-01 03:03:09 +0000 UTC
    started: 2023-02-01 03:03:09 +0000 UTC

Related-Bug: #1943628
Change-Id: I84b306e84661e6664e8a69fa93dfdb02fa4f1e7e
2023-02-01 12:31:16 +09:00
Peter Sabaini 9debe75064 Rewrite the get-erasure-profile action with the ops framework
Change-Id: I07cb5838c446ba08469e1d0f22d75d74c40ef29c
2022-10-26 11:28:42 +02:00
Zuul 4ac36718f3 Merge "Rewrite get_health action with the Operator framework" 2022-10-11 15:08:37 +00:00
Zuul 9c96720d8b Merge "rewrite create-erasure-profile with ops famework" 2022-10-11 15:08:35 +00:00
Zuul 4d9d7a5b90 Merge "Rewrite the create-crush-rule action with the ops framework" 2022-10-11 14:39:32 +00:00
Chris MacNaughton 255888fef3 Rewrite get_health action with the Operator framework
Change-Id: I68645a3d00c0622c7701c8177bcd510c3092afe4
2022-10-06 11:40:32 +00:00
Chris MacNaughton 0905362f04 rewrite create-erasure-profile with ops famework
Change-Id: I27b0e926865ecb39ad4f5ad25de8266e9db75695
2022-10-06 11:40:27 +00:00
Chris MacNaughton 5ae30304dd Rewrite the create-crush-rule action with the ops framework
Change-Id: Ifaccd20ba4a0f148a38d14edf0c26bd4a4d5d655
2022-10-06 11:40:22 +00:00
Edin Sarajlic b8af44aefa Add nagios check for expected number of OSDs
This check does not require manually setting the number of expected
OSDs.

Initially, the charm sets the count (per-host) to that of what's
present in the OSD tree. The count will be updated (on a per-host
basis) when the number of OSDs grows, but not when it shrinks. There
is a charm action to reset the expected count using information from
the OSD tree.

Closes-Bug: #1952985
Change-Id: Ia6a060bf151908c1d4159e6bdffa7bfe1f0a7988
2022-10-05 13:02:54 +00:00
Chris MacNaughton e60a23ae16 Rewrite actions/copy_pool into the oeprator framework
In addition to trivial changes (passing `event` into
the `copy_pool` function), this change introduces an
update to the actions/__init__.py that allows succinct
import and use from the main charm.py.

An apparently unrelated change is the removal of
charm-proof from the lint job, as it fails with the
removal of actions/copy-pool.

Change-Id: I66a5590ddf0f0bb5ca073a91b451f8c78598609a
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/866
2022-09-08 16:41:33 +00:00
Luciano Lo Giudice 5656db92df Rewrite the 'change-osd-weight' to use the op framework
This patchset changes a single action, 'change-osd-weight' so that
it's implemented with the operator framework.

Change-Id: Ia11885a2096b6e4b1ecda5caea38939e17098e1d
2022-09-08 12:28:17 -03:00
Luciano Lo Giudice 1ee3d04fda First rewrite of ceph-mon with operator framework
This patchset implements the first rewrite of the charm using the
operator framework by simply calling into the hooks.

This change also includes functional validation about charm upgrades
from the previous stable to the locally built charm.

Fix tempest breakage for python < 3.8

Co-authored-by: Chris MacNaughton <chris.macnaughton@canonical.com>

Change-Id: I61308bb2900134ea163d9e92444066a3cb0de43d
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/849
2022-08-19 19:00:56 -03:00
Hicham El Gharbi dfbda68e1a Create NRPE check to verify ceph daemons versions
This NRPE check confirms if the versions of cluster daemons are divergent.

WARN - any minor version diverged
WARN – any versions are 1 release behind the mon
CRIT – any versions are 2 releases behind the mon
CRIT – any versions releases are head the mon

A juju action is also provided 'get-versions-report'
which provide to users, a quick way to see
daemons versions running on cluster hosts.

Closes-Bug: #1943628
Change-Id: I41b5c8576dc9cf885fa813a93e6d51e8804eb9d8
2022-07-19 12:18:06 +02:00
Connor Chamberlain a1cffc6693 Added safe-pg-repair action
This action automatically repairs inconsistent placement groups
which are caused by read errors.

PGs are repaired using `ceph pg repair <pgid>`.

Action is only taken if on of a PG's shards has a "read_error",
and no action will be taken if any additional errors are found.
No action will be taken if multiple "read_errors" are found.

This action is intended to be safe to run in all contexts.

Closes-Bug: #1923218
Change-Id: I903dfe02aa3b7c67414e3d0d9b57f4042d301830
2022-06-23 18:18:35 +08:00
Juan Pablo Norena d3b2494ee8 Add get-or-create-user and delete-user actions for ceph auth
The get-or-create-user action allows to create and get user,
with its mon and osd capabilities, and retrieve the related
keyring.
The delete-user action allows to delete users.

Closes-Bug: 1899215
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/765
Change-Id: I2bd148e442990b6ff978624023bd85a741c6259a
2022-06-09 07:11:08 -05:00
Robert Gildein 37105f11cd Add list-crush-rules action
This action provides a list of crush rules defined in CEPH clusters.

Closes-bug: #1957458
Change-Id: I2a5fdae776e00d869a624e1107ab42cf69bb2f50
2022-03-29 17:02:12 +02:00
Aqsa Malik da798bdd95 Add profile-name parameter in create-pool action
This change adds a profile name parameter in the create-pool action that
allows a replicated pool to be created with a CRUSH profile other than
the default replicated_rule.

Closes-Bug: #1905573

Change-Id: Ib21ded8f4a977b4a2d57c6b6b4bb82721b12c4ea
2022-02-11 16:35:30 +01:00
Xav Paice 282e23416f Add get-quorum-status action
Adds a new get-quorum-status action to return some distilled info from
'ceph quorum_status', primarily for verification of which mon units are
online.

Partial-Bug: #1917690

Change-Id: I608832d849ee3e4f5d150082c328b63c6ab43de7
2021-09-23 12:56:58 +02:00
Zuul ab0ccb2450 Merge "Add format option to "list-pools" action" 2021-09-10 08:29:30 +00:00
Robert Gildein 185f1719d5 Add format option to "list-pools" action
These changes provide more detailed outputs for the "list-pools" action.
The default action output has not changed ("<pool_id> <pool_name>,
<pool_id> <pool_name>, ..."), but when you pass the "format=json"
parameter, it will provide a list of pools with details about each pool.

The list of pools (with or without details) are parsed from
`ceph osd dump`.

Closes-Bug: #1920135
Change-Id: I6e2b834628312ed458527420ca83052d29bd2b9a
2021-09-09 13:50:00 +02:00
Luciano Lo Giudice 0270272177 Implement the 'list-inconsistent-objs' action
Previously, if we wanted to list the inconsistent objects per PG,
we needed to call 'ceph health detail' to get the list of inconsistent
PGs and then 'rados list-inconsistent-obj $PG' for each PG. This patch
aims to implement a single action that does all that and formats it
as a pretty JSON.

Closes-Bug: #1931751
Change-Id: I05bf90ff274e4f1b7ee9e278d62894b68ba2e787
2021-08-06 18:12:49 -03:00
Xav Paice a5ef8d687d Add actions to reweight and remove OSDs.
Adds action change-osd-weight, to allow changing the weight of an OSD.

Adds action purge-osd, to remove an OSD entirely from the crush map.

Change-Id: Ic1f468c96931a136ba897d4a02b8cd43dfdf056b
Closes-bug: #1761048
2020-10-22 09:42:11 +13:00
Frode Nordahl c0113217bf Unpin flake8, fix lint
Change-Id: Iab73f1127bfbdf11626727f3044366d2e5745439
2020-08-24 10:54:54 +02:00
James Page 4fd788d3a2 Updates for improved EC support
Sync charmhelpers and charms.openstack to pickup changes for
improved Erasure Coded pool support.

Update action code for EC profile creation for extended
option support and other charmhelpers changes.

Depends-On: I2547933964849f7af1c623b2fbc014fb332839ef
Change-Id: Iec4de19f7b39f0b08158d96c5cc1561b40aefa10
2020-08-07 15:24:59 +01:00
Alex Kavanagh b34d85ee81 Enable passing of integer value for pool-set action
Enable passing of an integer to the pool-set function.  Due to how juju
appears to parse things on the command line, setting type to string
causes it to fail to accept '3', "3" or 3 as a string.  Only "'3'"
works.  However, if we remove the type from actions.yaml and do the
validation in the charm, any value can be passed.

Depends-On: I6081c23af61fd5e872982ff477b0a5cb27141d11

Change-Id: Idf3468d9ae28dafc09c86f08b7f8c6470a665b7a
Closes-Bug: #1838650
2020-07-02 14:56:41 +01:00
Corey Bryant 415b795127 Rename lib/ceph to lib/charms_ceph
The new python3-ceph-common deb package (introduced in ceph octopus)
adds a new ceph directory (a parent package in python terms) in
/usr/lib/python3/dist-packages/ceph/. This results in a conflict with
charm-ceph-osd/lib/ceph/. For example, with the current import of
ceph.utils in hooks/ceph_hooks.py, Python finds no utils.py in
/usr/lib/python3/dist-packages/ceph/ and then stops searching.
Therefore, rename lib/ceph to lib/charms_ceph to avoid the conflict.

Depends-On: https://review.opendev.org/#/c/709226
Change-Id: Id5bdff991c1e6c196c09ba5a2241ebd5ebe6da91
2020-02-24 15:07:44 +00:00
Chris MacNaughton 8ffce641b3 Add security-checklist to ceph-mon
Change-Id: I1b0f24fed7a5c49ba0f2477ee767b7fe5190adbf
2019-03-13 10:32:00 +01:00
James Page 203947623f action: Misc tidyup and improvements
General tidy of actions codebase including sorting out
some minor bugs.

Added new copy-pool action.

Added support for CRUSH device classes when creating
erasure coding profiles.

Removed need for use of rados python module by switching
to using the ceph command line tool for all operations.

Add new action for creation of new CRUSH rules using
device classes.

Resync charms.ceph to support switching the crush_rule
key on a pool.

Resync charmhelpers for support for device classing.

Rename all action py files to by standards compliant.

Change-Id: I1f7d95b1637f2064bd11a5d5336764b2946428ac
Depends-On: I2c405f9a4956ff1ccf1edb7372a9bb11e1e591a4
2019-02-19 14:54:41 +00:00
Zuul 21528b7c71 Merge "Resync charms.ceph and charmhelpers" 2019-01-09 08:39:33 +00:00
Chris MacNaughton d78297c6b3 Set action output for get_health
Change-Id: I23287bd153f1e61a94593734b1de43ef6abad36a
Closes-Bug: 1808189
2018-12-13 14:27:24 +01:00
Chris MacNaughton 4b5193442d Add app-name as an option during pool creation
Change-Id: I5e43f896d433b5a51ed7ecf6ddd936458c90cc24
Closes-Bug: #1807775
2018-12-11 15:40:17 +01:00
James Page aaecef4596 Resync charms.ceph and charmhelpers
Resync the latest charms.ceph to avoid direct installation
of Python 2 modules which are not available in the latest
Ceph packaging which no longer provides Python 2 support.

This commit also updates two action which still used Python
to use Python 3 (inline with the rest of the charm).

Change-Id: I8fc2a1aa17e48ef5dac9b9974c33b9620fcb7c70
2018-12-11 13:27:13 +00:00
Peter Sabaini d45ab82589 Add formatting param for disk usage
Pass formatting option to ceph for easier postprocessing.
Constrain to values accepted by ceph, default to plain format.

Change-Id: I0bb8cfcd8d8962988e786d2d083b1489161b2ff6
Closes-Bug: #1724880
2018-04-13 18:27:39 +02:00
James Hebden 001ac4786f Add get-health action to the Ceph mon charm
* get-health - outputs `ceph health` output

Including unit and functional tests for the above actions.

Change-Id: Id4c0a89f2068a6f30025d4a165f84ad112b62cf7
Closes-Bug: #1720099
2018-03-22 18:41:02 +11:00
Xav Paice 91d6885e50 Add set/unset noout actions
Adds two new actions, to drive ceph osd set noout and it's opposite.

Change-Id: I5b80c18d21a6e9118bb13ad9af6bc80d353e3436
Depends-On: I3d5fc96b9b69fd98b7d84b5aed6079f3b02c19ab
2018-03-20 10:06:39 +13:00
Alex Kavanagh a2b3283c5a Fix up exception logging for py3
It used "e.message", which py3 doesn't have. Thus, this uses
str(e) which works on both py2 and py3.

Change-Id: I34a5de9430ce8fabdf715e83867f0d69336676f1
2017-12-04 15:52:10 +00:00
Alex Kavanagh 7586815401 Migrate charm to work with Python3 only
Various changes to migrate the charm to work with Python 3.  The tox.ini
has been modified to inlcude py35 and py36 targets for testing against
Python 3.5 (xenial, zesty), and Python 3.6 (artful+).

Change-Id: I009de528428aaca555b49f3fc17704dcf5f2a28c
2017-11-17 10:22:30 +00:00
Edward Hope-Morley 712766c094 Fix actions broken import
Change-Id: I1f5f24fb31cdb04cf00a1ecbbd942f84cd7b19f5
Partial-Bug: 1726275
2017-10-25 13:32:15 +01:00
Graham Burgess 0f05ced6a0 Add show-disk-free action to ceph-mon charm
Added action show-disk-free that shows the output from ceph osd df
tree. This makes it easier to determine how balanced the data is
spread over the OSDs.

Closes-Bug: #1709950
Change-Id: Idecb0fb5ee48b2a24a8991c64a9feeff1950f67b
2017-08-24 15:35:10 -07:00
Chris Holcombe 4829591648 Crushmap Update Action
This action takes a json definition of a crushmap and
applies it.

Change-Id: Icaabc89016be22aa16d2f813a746842fd30fd989
2017-07-18 08:29:09 +00:00
James Page 02fd38bb60 Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

In order to make this change, this commit also drops the
inclusion of upstart configurations for very early versions
of Ceph (argonaut), as they are no longer required.

Change-Id: I3d943dfd78f406ba29f86c51e22a13eab448452e
2016-07-01 13:55:54 +01:00
Chris Holcombe 1d27ca64b9 Symlink Actions
This change symlinks the python actions files so that tox
can properly test the code.

Change-Id: Ib6d070555535dc202735124afdafa8dd401350df
2016-06-29 16:01:40 -07:00
Chris MacNaughton b497f4de1e Merge ceph charm into ceph-mon
Squashed commit of the following:

commit 9b832d9391f9fea2d1491d01da6101585930fc75
Merge: e2432c4 7b36210
Author: Chris MacNaughton <chmacnaughton@gmail.com>
Date:   Mon Mar 21 16:40:54 2016 -0400

    Merge branch 'master' of github.com:openstack/charm-ceph into charm-ceph-mon

    Change-Id: I42cfe6f1e5887627981f8ce4beff164803cc3957

commit 7b36210bac5bef3bacae2614995e123ef926453f
Author: Chris Holcombe <xfactor973@gmail.com>
Date:   Fri Mar 18 15:37:06 2016 -0700

    Add ceph-osd to ceph

    This change adds ceph-osd back into ceph for amulet testing.

    Change-Id: Ice4aaf7739e8c839189313d3f6175a834cf64219

commit e87e0b7bd22fe5ccae2aafcf6bd30f145405e01b
Author: Ryan Beisner <ryan.beisner@canonical.com>
Date:   Wed Mar 16 17:33:48 2016 +0000

    Update amulet test to include a non-existent osd-devices value

    The osd-devices charm config option is a whitelist, and the
    charm needs to gracefully handle items in that whitelist which
    may not exist.

    Change-Id: I5f9c6c1e4519fd671d6d36b415c9c8f763495dad

commit ffce15d52333de4063d04b808cfbca5d890fb996
Merge: fe8bf6e 9614896
Author: Jenkins <jenkins@review.openstack.org>
Date:   Wed Mar 16 17:45:25 2016 +0000

    Merge "Revert "Make 'blocked' status when node have no storage device""

commit 961489609d85851bd63c6825339a296bdf74e320
Author: Chris Holcombe <xfactor973@gmail.com>
Date:   Wed Mar 16 16:55:02 2016 +0000

    Revert "Make 'blocked' status when node have no storage device"

    This reverts commit fc04dd0fff33639b812627d04645134dd7d4d3de.

    Change-Id: I9efbf623fc9aa6096725a15e53df426739ac16ff

commit fe8bf6e4a5cb466a5efc6403c215e7aece2c6b9c
Author: Billy Olsen <billy.olsen@gmail.com>
Date:   Tue Mar 15 20:08:20 2016 -0700

    Use tox in Makefile targets

    Modify the Makefile to point at the appropriate tox targets
    so that tox and Make output can be equivalent. This involves
    mapping the lint target to the pep8 target and the test target
    to the py27 target.

    Change-Id: I99761d2fdf120bacff58d0aa5c2e584382c2e72b

commit fc04dd0fff33639b812627d04645134dd7d4d3de
Author: Seyeong Kim <seyeong.kim@canonical.com>
Date:   Fri Mar 11 06:07:52 2016 +0000

    Make 'blocked' status when node have no storage device

    Currently there is an msg for no storage status on
    ceph node. But it doesn't make this charm state
    'blocked'.

    is_storage_fine function has been created to check
    storage devices on ceph_hooks.py and using it on
    assess_status.

    Change-Id: I790fde0280060fa220ee83de2ad2319ac2c77230
    Closes-Bug: lp1424510

commit a7c5e85c408ab8446a18cc6761b1d0b292641ea7
Author: Ryan Beisner <ryan.beisner@canonical.com>
Date:   Fri Mar 4 14:36:38 2016 +0000

    Enable Xenial-Mitaka amulet test target.

    Change-Id: I0c386fc0c052cc1ac52c0a30f7a39fa914a61100

commit e80c5097c26ac4eb200a289daa272d5c7ac82539
Author: uoscibot <uosci-testing-bot@ubuntu.com>
Date:   Mon Feb 29 10:45:49 2016 +0000

    Adapt imports and metadata for github move

commit 391ed288fc763b69f0cd92459f236e7581a5f244
Merge: 78250bd 6228ea2
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Thu Feb 25 13:34:27 2016 -0500

    [hopem,r=]

    Support multiple l3 segments.
    Closes-Bug: 1523871

commit 6228ea2a8fa578c3c6b24b59f621e6e1026a7668
Merge: 6159390 78250bd
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Thu Feb 25 09:29:46 2016 -0500

    sync /next

commit 78250bd65c861adcb321f1c634def29fcfdaa8a9
Author: James Page <james.page@ubuntu.com>
Date:   Wed Feb 24 21:53:28 2016 +0000

    Add gitreview prior to migration to openstack

commit 61593905939359ba72768ccb8f1a450a571c1d24
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Wed Feb 24 15:56:20 2016 -0500

    only use fallback for get_public_addr() if networks not provided in config

commit 34841b0aea85b3d5693a5336dbf956a406414474
Merge: 08d1cbc 092368d
Author: James Page <james.page@ubuntu.com>
Date:   Wed Feb 24 14:22:20 2016 +0000

    Add actions to support configuration of erasure coded pools.

commit 092368d646d4e02b2d2ac08026b6cbf2c94a4042
Merge: de98010 08d1cbc
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Tue Feb 23 08:19:56 2016 -0800

    Merge upstream

commit 08d1cbcdc943493a556e0187d2b3e6fbe83b69e3
Merge: 2d4ff89 414e519
Author: James Page <james.page@ubuntu.com>
Date:   Tue Feb 23 09:49:50 2016 +0000

    Fix amulet tests for nova-compute changes.

commit 414e5195c939a99adcaf79e27eb057c07c7f4761
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Mon Feb 22 15:21:00 2016 -0500

    fix amulet

commit e99e991be21c6d98fc670bcafa30684c0ba4d5e0
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Mon Feb 22 12:56:00 2016 -0500

    fixup

commit de98010f6f8d81e63d47ac03d33aa40bd870c7ea
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Mon Feb 22 08:05:32 2016 -0800

    charmhelpers sync

commit 2d4ff89e4bba2e93e08a6dd00bc2367e90b708fe
Merge: f16e3fa f98627c
Author: Liam Young <liam.young@canonical.com>
Date:   Mon Feb 22 09:26:38 2016 +0000

    [james-page, r=gnuoy] Add configuration option for toggling use of direct io for OSD journals

commit f3803cb60d55154e35ac2294170b27fb348141b3
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Fri Feb 19 08:11:18 2016 -0800

    Change /usr/bin/python2.7 to /usr/bin/python

commit 612ba454c4263d9bfc672fe168a55c2f01599d70
Merge: c3d20a0 f16e3fa
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Thu Feb 18 17:16:55 2016 -0800

    Merge upstream and resolve conflicts with actions and actions.yaml

commit c3d20a0eb67918d11585851a7b5df55ce0290392
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Thu Feb 18 17:10:56 2016 -0800

    Fix up the niggles and provide feedback to the action user as to why something failed

commit ea5cc48ccbb5d6515703bd5c93c13b2147972cd1
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Thu Feb 18 17:42:05 2016 +0000

    more

commit f58dd864eac130a6bc20b46c1495d7fa34a54894
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Thu Feb 18 17:09:52 2016 +0000

    restore sanity

commit 32631ccde309040b92ba76ecc12b16bad953f486
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Thu Feb 18 11:40:09 2016 +0000

    post-review fixes

commit 7ada8f0de65d397648d041fae20ed21b3f38bd15
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Thu Feb 18 11:36:46 2016 +0000

    post-review fixes

commit f16e3fac5240133c1c7dfd406caacd21b364532a
Merge: a0ffb8b 7709b7d
Author: James Page <james.page@ubuntu.com>
Date:   Thu Feb 18 11:02:17 2016 +0000

    Add pause/resume cluster health actions

    Add actions to pause and resume cluster health monitoring within ceph for all osd devices.

    This will ensure that no rebalancing is done whilst maintenance actions are happening within the cluster.

commit a0ffb8bf97c9cf3c19d17090c96f2ea60c89da65
Merge: 65439ba 531b40d
Author: James Page <james.page@ubuntu.com>
Date:   Thu Feb 18 10:38:53 2016 +0000

    Wait for quorom and query the right unit remote_unit when not in radosgw context

commit 65439ba7dc3acf494c9a8d11e2cdd274d144b485
Merge: 5e77170 afd390b
Author: James Page <james.page@ubuntu.com>
Date:   Wed Feb 17 11:28:44 2016 +0000

    Update test target definitions;  Wait for unit status.

commit 531b40d9b2d216b467cca59d7649ab5bb4577b3d
Author: Liam Young <liam.young@canonical.com>
Date:   Wed Feb 17 10:15:37 2016 +0000

    Wait for quorom and query the right unit remote_unit when not in radosgw context

commit 5e77170f378be92a3e2e8de3c06dad158b4a14ca
Author: James Page <james.page@ubuntu.com>
Date:   Tue Feb 16 06:59:17 2016 +0000

    Tidy tox targets

commit 732d8e11cd5058e680a5982bce77648952c8532f
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Fri Feb 12 14:17:34 2016 -0800

    Used a list as an integer.  I meant to use the size of the list

commit afd390b3ed4212883a02ca971e5613246c3ae6a8
Author: Ryan Beisner <ryan.beisner@canonical.com>
Date:   Fri Feb 12 21:24:20 2016 +0000

    No need to not wait for nonexistent nrpe

commit 9721ce8006720d24b8e4133fbbb8a01d989a71c8
Author: Ryan Beisner <ryan.beisner@canonical.com>
Date:   Fri Feb 12 21:02:36 2016 +0000

    Disable Xenial test re: pending lp1537155

commit d12e2658f5b5e6c38b98ae986134f83df2e0a380
Author: Ryan Beisner <ryan.beisner@canonical.com>
Date:   Fri Feb 12 20:57:08 2016 +0000

    Update test target definitions;  Wait for unit status.

commit 7709b7d5385757fc6d8fe48fa7646efcdb77564a
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Feb 12 08:26:13 2016 -0500

    rename actions

commit 2c945523486227dd1c58a1c1a76a779d9c131a71
Merge: 5b5e6dc 27d5d4b
Author: James Page <james.page@ubuntu.com>
Date:   Fri Feb 12 12:34:20 2016 +0000

    Resolve symlinks in get_devices().

commit 7edce1dd489a4718a150f7f38ffd366855e49828
Author: Edward Hope-Morley <edward.hope-morley@canonical.com>
Date:   Wed Feb 10 15:20:52 2016 +0000

    [hopem,r=]

    Support multiple l3 segments.
    Closes-Bug: 1523871

commit 27d5d4b8bb0fd61a3910dad1bdf46adc2b476649
Author: Bjorn Tillenius <bjorn@canonical.com>
Date:   Tue Feb 2 19:01:53 2016 +0200

    Lint.

commit 6980d3a3418ba512e65a79a62b140b238d54a17b
Author: Bjorn Tillenius <bjorn@canonical.com>
Date:   Tue Feb 2 17:34:19 2016 +0200

    Resolve symlinks in get_devices().

commit f98627c1c163d702ae1142a6153801073d57280c
Merge: 4f0dc6d 5b5e6dc
Author: James Page <james.page@ubuntu.com>
Date:   Sat Jan 30 15:45:01 2016 +0100

    rebase

commit eaa365a180e8eda88e6ef9f1a6c975a0b780dee5
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Fri Jan 22 15:21:45 2016 -0800

    Clean up another lint error

commit 477cdc96fbe124509995a02c358c24c64451c9e4
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Fri Jan 22 15:04:27 2016 -0800

    Patching up the other unit tests to passing status

commit faa7b3ad95ebed02718ff58b3e3203b7d59be709
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 16:42:58 2016 -0500

    remove regex

commit 1e3b2f5dd409a02399735aa2aeb5e78d18ea2240
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 16:10:15 2016 -0500

    lint fix

commit 620209aeb47900430f039eb2e65bfe00db672e32
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 16:05:15 2016 -0500

    use search instead of match

commit 2f47939fa84c43c485042325a925d72797df6480
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 15:16:22 2016 -0500

    fix line length

commit f203a5bdfc12a2a99e3695840f16182e037f1df1
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 15:02:10 2016 -0500

    modify regex to not care about order

commit 706b272fc91d432921750b3af09689361f4b8bb9
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 14:16:46 2016 -0500

    try with sleeping

commit 66d6952a65ceb5c8858f262daf127f96ed03ea81
Merge: e446a77 5b5e6dc
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Fri Jan 22 10:46:50 2016 -0800

    Merge upstream and resolve conflicts

commit fc714c96f40bac9fb89108cd56962343472f63cf
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 11:10:34 2016 -0500

    fix variable name

commit 8cb53237c6588a00d86dcc0a564d18eb7cd751ae
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 10:47:26 2016 -0500

    update to use correct(?) commands

commit b762e9842ca335845fe3a442dfdde838e5246b3b
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 22 08:01:03 2016 -0500

    update tests.yaml

commit e446a7731cbe377f30c88bb99083745ba95caa4e
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Thu Jan 21 14:19:53 2016 -0800

    Clean up lint warnings.  Also added a few more mock unit tests

commit 32ff93e8d0166b2346c422cbb9cd53bc4f805256
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Thu Jan 21 09:38:47 2016 -0800

    Adding a unit test file for ceph_ops

commit 4f0dc6d8b76b8545453293b2c69e2d6a164db10e
Author: James Page <james.page@ubuntu.com>
Date:   Mon Jan 18 16:39:49 2016 +0000

    Add configuration option for toggling use of direct io for OSD journals

commit 1977cdbde1d0fa7ad57baa07d97f477143d54787
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Mon Jan 18 08:07:35 2016 -0800

    Add actions to lint.  Change actions.yaml to use enum and also change underscores to dashes.  Log action_fail in addition to exiting -1.  Merge v2 requests with v1 requests since this does not break backwards compatibility.  Add unit tests.  Modify tox.ini to include actions.  .

commit 3f0e16bcc483952e340fa89505011b7a115ff421
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 15 16:45:00 2016 -0500

    fix version

commit c665092be6f9d07f45a0b9baf2e0f128e4ecdc37
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Fri Jan 15 16:20:27 2016 -0500

    updating tests

commit 80de4d7256efbbc6c2ab7cdfcb1ab292668be607
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Thu Jan 14 13:19:10 2016 -0500

    update readme

commit 44365d58785e9ba63179d092b875c2029024aa8b
Author: Chris MacNaughton <chris.macnaughton@canonical.com>
Date:   Thu Jan 14 13:17:19 2016 -0500

    add pause/resume actions

    pause calls:
    `ceph osd set noout
    ceoh osd set nodown`

    resume calls:
    `ceph osd unset noout
    ceph osd unset nodown`

commit bdd4e69e801e2178532e31216efe7e815b06f864
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Tue Dec 15 04:54:21 2015 -0800

    Missed a few typos

commit 0158586bde1a1f878c0a046a97510b8b90a95ce9
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Tue Dec 15 04:41:22 2015 -0800

    lint errors

commit 92ad78733279112bbba8e12d3fb19809ab9d0ff7
Author: Chris Holcombe <chris.holcombe@canonical.com>
Date:   Mon Dec 14 17:44:22 2015 -0800

    Actions are working and lightly tested.  Need to create a more robust, automated test setup

Change-Id: Ia18b19961dab66bb6c19ef7e9c421b2fec60fcc7
2016-03-24 14:31:49 -04:00
Chris Holcombe 38c868b048 Add support for cache tier management
This change will add two new actions to the ceph-mon charm. These
actions will allow the user to create and remove cache tiers from
existing pools.  Both writeback and read only mode are supported.

Limitations of this patch include not having fine grain control
over the cache tier properties.  Things like hit_set_count,
bloom filter control or cache sizing are not supported yet.

Change-Id: I5a37e79d0d23d35295a8ae97177c940af66b0485
2016-03-10 08:29:12 -08:00
Chris MacNaughton fab2e8ffdc rename actions 2016-02-12 08:22:48 -05:00
Chris MacNaughton a0482d8841 add actions from ceph charm 2016-01-31 10:41:45 +01:00