Commit Graph

21 Commits

Author SHA1 Message Date
James Page 536c22a6a2 Retire project
Leave README around for those that follow.

Change-Id: I34f8092296c70cd1b51de7c48d7ee589f410d55d
2018-09-14 11:53:08 -06:00
Edward Hope-Morley b210d18d00 Fix actions broken import
Change-Id: I04645d8ede55c3e5b3f97fcc5a9c0accc98f8f81
Partial-Bug: 1726275
2017-10-25 13:33:12 +01:00
Edward Hope-Morley f0042a9a7f Sync charms.ceph to get code cleanup changes
Also had to fix some imports due to changes
implemented as part of the cleanup.

Change-Id: I64de0ad077eaaf8ca6ac0c575c4ae7f19bccf8ee
2017-08-14 14:54:35 +01:00
James Page e2fc2e3bd9 Add bluestore support for OSD's
Add highly experimental support for bluestore storage format for
OSD devices; this is disabled by default and should only be enabled
in deployments where loss of data does not present a problem!

Change-Id: I67323e26a4698de4e08c8c755db232399f7fed02
Depends-On: I36f7aa9d7b96ec5c9eaa7a3a970593f9ca14cb34
2017-07-07 09:59:42 +01:00
Billy Olsen a631169edd Skip osd-devices not absolute paths
This change skips over any devices which does not start with a leading
folder separator ('/'). Allowing such entries causes an OSD to be
created out of the charm directory. This can be caused by something as
innocuous as 2 spaces between devices. The result is that the root
device is also running an OSD, which is undesirable.

Change-Id: I5b52096da0b6f100ae9835c339905585425b27ae
Closes-Bug: 1652175
2017-04-05 17:40:01 -07:00
Chris MacNaughton 6b1a224e67 Add support for ceph-osd broker requests
This is to support ceph-osd requesting movement
of OSD devices into various buckets.

This also implements the osd side with
an action to move a disk

Change-Id: I609ceb8662b20ca06b71d66696d101bda799e25c
2016-12-12 13:54:49 -05:00
Chris MacNaughton 39ffd26452 Add action to list unmounted disks
This action is fairly simple in that it returns
a list of unmounted disks

This also includes a git-sync to pull in charms.ceph
changes.
Change-Id: Idb6eabd565b0a9951bb0b212b81a57497ada56f1
Closes-Bug: 1645481
2016-12-12 12:16:04 -05:00
Chris MacNaughton 811bc04e7c Clean up dependency chain
This includes a resync of charms_ceph to raise the directory one level
The charms_ceph change that we're syncing in changes the
name of the ceph.py file into the __init__.py file to remove the
second level of namespacing

Change-Id: I8773a26266a2a13f92083e89db957a6454df9bb3
2016-08-11 11:00:53 -04:00
Chris MacNaughton 1f140c73ed Migrate to shared lib
This change moves our ceph.py and ceph_broker.py into
a seperate repository that we can share between various
ceph related Juju projects, along with a Makefile
change to use a new git_sync file to partially sync
a git repository into a specified path

Change-Id: I8942d2f3411acec197fd6b854c1d9e50457502a5
2016-08-01 17:00:23 -04:00
Chris Holcombe becf5ef80f Use osd-upgrade user for pause/resume
The pause and resume actions shell out to the ceph command to run
OSD operations (in/out).

Because the default cephx key given out by the monitor cluster does
not contain the correct permissions, these commands fail.

Use the osd-upgrade user which has the correct permissions.

Closes-Bug: 1602826

Depends-On: I6af43b61149c6eeeeb5c77950701194beda2da71
Change-Id: I95bedcdea622fbf2fd799e63932cedd0d577568a
2016-07-19 10:46:33 +01:00
James Page 473439ab65 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: I5e5db16b6f04ee8282275e9fa63a8d864c5b51ec
2016-06-28 11:48:06 +01:00
Alex Kavanagh d82e89ea20 Pause/resume for ceph charm
This changeset provides pause and resume actions to the ceph charm.
The pause action issues a 'ceph osd out <local_id>' for each of the
ceph osd ids that are on the unit.  The action does not stop the
ceph osd processes.

Note that if the pause-health action is NOT used on the ceph charm then the
cluster will start trying to rebalance the PGs accross the remaining OSDs.  If
the cluster might reach its 'full ratio' then this will be a breaking action.
The charm does NOT check for this eventuality.

The resume action issues a 'ceph osd in <local_id>' for each of the
local ceph osd process on the unit.

The charm 'remembers' that a pause action was issued, and if
successful, it shows a 'maintenance' workload status as a reminder.

Change-Id: Ic5b5b33e59e72e13843d874a08e3d142a1befde3
2016-04-08 14:48:56 +00:00
Chris Holcombe f3803cb60d Change /usr/bin/python2.7 to /usr/bin/python 2016-02-19 08:11:18 -08:00
Chris Holcombe 612ba454c4 Merge upstream and resolve conflicts with actions and actions.yaml 2016-02-18 17:16:55 -08:00
Chris Holcombe c3d20a0eb6 Fix up the niggles and provide feedback to the action user as to why something failed 2016-02-18 17:10:56 -08:00
Chris MacNaughton 7709b7d538 rename actions 2016-02-12 08:26:13 -05:00
Chris Holcombe 32ff93e8d0 Adding a unit test file for ceph_ops 2016-01-21 09:38:47 -08:00
Chris Holcombe 1977cdbde1 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. . 2016-01-18 08:07:35 -08:00
Chris MacNaughton c665092be6 updating tests 2016-01-15 16:20:27 -05:00
Chris MacNaughton 44365d5878 add pause/resume actions
pause calls:
`ceph osd set noout
ceoh osd set nodown`

resume calls:
`ceph osd unset noout
ceph osd unset nodown`
2016-01-14 13:17:19 -05:00
Chris Holcombe 92ad787332 Actions are working and lightly tested. Need to create a more robust, automated test setup 2015-12-14 17:44:22 -08:00