charm-ceph-osd:stable/18.05

Last commit made on 2019-04-19
Get this branch:
git clone -b stable/18.05 https://git.launchpad.net/charm-ceph-osd

Branch merges

Branch information

Name:
stable/18.05
Repository:
lp:charm-ceph-osd

Recent commits

ae894f6... by OpenDev Sysadmins <email address hidden>

OpenDev Migration Patch

This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.

0356c22... by Alvaro Uria

Support systemd nrpe check for ceph-osd@N units

ceph-osd<->nrpe relation adds a single check that parses the service
status of all the ceph-osd processes. The check supported sysv and
upstart environments, but not systemd, which has been added.

add_init_service_checks does support systemd but it would create a
nrpe check per OSD (vs a single check for all OSDs)

Change-Id: I19689740b4d95107c46435f56d808139c071b826
Closes-Bug: 1616525
Signed-off-by: Alvaro Uria <email address hidden>

02c14e9... by James Page

Use provided device paths

Ensure that device paths provided by end users are used for OSD's,
rather than the link target device as this may change between
reboots. The specific use case is bcache, where:

   /dev/bcacheX:
        changes between reboots
   /dev/disk/by-dname/bcacheX:
        udev managed and consistent

This change also ensures that any unit data is updated to switch
back to using the provided block device path, rather than the
actual target which may have been used in prior charm revisions.

Change-Id: If5e88d93b9323052ea762d3a4b66f2442d4a19be
Depends-On: If0e1fbc62bfe7d0f9e21db9bfdeee761060de846
Closes-Bug: 1782439
(cherry picked from commit 488f7dffefa2fdf9bf439d676103c0168f21d2ea)

0cdc1ab... by James Page

Skip udev rule install in containers

Ensure that udev rules are not installed and reloaded
when running in a container; this is not permitted and
the udev rules are used for block devices, which are
not supported within container based deployments.

Change-Id: I9a580172fcbbf8cec63af7adccb0808915184658
Closes-Bug: 1776713
(cherry picked from commit dd426903471f28eff8e357bac2ca0889ffcff4b9)

42448ad... by James Page

Fixup ceph.conf templating

Ensure that code snips don't slurp to much whitespace,
resulting in a broken set of keys within the generated
configuration file.

Closes-Bug: 1783195
Change-Id: I7cfe026c60c04ac19741a3a2b364cec3fb8746ba
(cherry picked from commit 2f148f26b6228bcac7aa14ad69ab565de61b2b2b)

98eec96... by Dmitrii Shcherbakov

ignore devices that have already been processed

Similar to how osdize in charms.ceph checks for already processed
devices we need to avoid checking if they are pristine or not.

Additionally, mapped LUKS devices need to be filtered from being zapped
as they may hold valuable data. They are only used as underlying devices
for device mapper and dmcrypt to provide a decrypted block device
abstration so if they really need to be zapped a mapping needs to be
removed first.

This change also pulls charms.ceph modifications.

Change-Id: I96b3d40b3f9e56681be142377e454b15f9e22be3
Co-Authored-By: Dmitrii Shcherbakov <email address hidden>
Co-Authored-By: Chris Procter <email address hidden>
Closes-Bug: 1781453
(cherry picked from commit 8dad311db43e3c57c3569cc8e062dd8846470647)

1c32fc8... by James Page

add-disk: Ensure key-manager config is passed to osdize

Recent changes to support vault for key management require that
the 'osd-encrypt-keymanager' is passed to all osdize calls so
that the correct key management approach is taken.

Ensure that the add-disk action does the same, otherwise keys
will always be stored in the ceph mon KV store, rather than
in Vault.

Closes-Bug: 1780920

Change-Id: I8c722d38d68f13dc00c7444a50d67ce37fbd6a29
(cherry picked from commit 6c27240761862ebceac05b979b36b2b713ca1b90)

877fff6... by David Ames

Updates for stable branch creation

Set default branch for git review/gerrit.

Switch amulet tests to stable.

Switch to using stable charm-helpers branch.

Change-Id: I5dfa2acb3a5e3bcc2bd281bf075b6227a09e4a0d

1f68a58... by Frode Nordahl

Update tests to not set `fsid` and `monitor-secret`

Get `fsid` from leader settings on ceph-mon unit where needed
for validation.

Change-Id: I751ecff76873a599c0d03ec1308e30e615e38aa8
Related-Bug: #1698154

94b4a52... by Frode Nordahl

Fix logic error introduced in assess_status()

Commit 352d6993870be2547f37463e4e3cffc7605f749c introduced a change
in assess_status to not update status as long as the previous status
was 'blocked'. This was done because the check for pristine block
devices is done elsewhere in the charm.

However there are other situations that might set the charm in
'blocked' state.

This commit addresses this error.

Change-Id: Icdc272dadd7f9ceb670d37238628d31f33d11770