Ansible playbooks to deploy Ceph, the distributed filesystem.
 
 
 
 
Go to file
Dimitri Savineau ee43555148 switch2container: disable ceph-osd enabled-runtime
When deploying the ceph OSD via the packages then the ceph-osd@.service
unit is configured as enabled-runtime.
This means that each ceph-osd service will inherit from that state.
The enabled-runtime systemd state doesn't survive after a reboot.
For non containerized deployment the OSD are still starting after a
reboot because there's the ceph-volume@.service and/or ceph-osd.target
units that are doing the job.

$ systemctl list-unit-files|egrep '^ceph-(volume|osd)'|column -t
ceph-osd@.service     enabled-runtime
ceph-volume@.service  enabled
ceph-osd.target       enabled

When switching to containerized deployment we are stopping/disabling
ceph-osd@XX.servive, ceph-volume and ceph.target and then removing the
systemd unit files.
But the new systemd units for containerized ceph-osd service will still
inherit from ceph-osd@.service unit file.

As a consequence, if an OSD host is rebooting after the playbook execution
then the ceph-osd service won't come back because they aren't enabled at
boot.

This patch also adds a reboot and testinfra run after running the switch
to container playbook.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1881288

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit fa2bb3af86)
2020-11-12 17:04:30 -05:00
.github flake8: run the workflow conditionally 2020-10-19 13:33:30 -04:00
contrib remove ceph restapi references 2019-06-18 09:13:19 +02:00
docs common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
group_vars dashboard: change dashboard_grafana_api_no_ssl_verify default value 2020-11-04 11:02:05 -05:00
infrastructure-playbooks switch2container: disable ceph-osd enabled-runtime 2020-11-12 17:04:30 -05:00
library ceph-volume: refresh lvm metadata cache 2020-10-19 17:56:39 -04:00
plugins ipaddrs_in_ranges: fix python indent 2019-10-28 09:23:17 +01:00
profiles Common: Add profiles 2017-07-19 11:50:03 +02:00
roles dashboard: change dashboard_grafana_api_no_ssl_verify default value 2020-11-04 11:02:05 -05:00
tests tests: change cephfs pool size 2020-10-06 17:13:58 +02:00
.gitignore remove ceph-agent role and references 2019-06-03 13:35:50 +02:00
.mergify.yml mergify: disable automerge on backport 2019-10-09 17:17:46 +02:00
.travis.yml travis: enforce ansible-lint 4.2.0 2020-08-18 16:37:51 +02:00
CONTRIBUTING.md doc: update backport section 2019-08-14 16:42:25 +02:00
LICENSE Add Ceph Playbook 2014-03-03 19:08:51 +01:00
Makefile Fixes for Makefile 2019-11-08 09:09:30 -05:00
README-MULTISITE.md README-MULTISITE: Fix syntax issues from markdownlint 2020-09-25 14:38:58 -04:00
README.rst docs: update URLs to point to the RTD links 2020-09-25 10:47:31 -04:00
RELEASE-NOTE.md update the release note. 2020-06-18 17:56:15 +02:00
Vagrantfile remove *docker*.yml symlinks 2020-03-31 11:59:20 -04:00
ansible.cfg ansible.cfg: set force_valid_group_names param 2020-09-25 11:12:39 -04:00
ceph-ansible.spec.in tests: update testing 2020-03-31 10:02:47 -04:00
dashboard.yml node-exporter: exclude client nodes 2020-09-14 16:13:11 -04:00
dummy-ansible-hosts Fix Travis 2015-01-21 16:33:26 +01:00
generate_group_vars_sample.sh Add role definitions of ceph-rgw-loadbalancer 2019-06-06 17:12:04 +02:00
raw_install_python.yml install python-xml on SUSE/openSUSE only if python2 is installed 2019-09-27 14:19:32 +02:00
requirements.txt requirements: exclude ansible 2.9.10 2020-06-22 13:05:33 -04:00
rhcs_edits.txt rhcs: update release to 5 for octopus 2020-03-26 19:02:58 -04:00
site-container.yml.sample main: followup on pr 6012 2020-11-12 15:32:49 -05:00
site.yml.sample main: followup on pr 6012 2020-11-12 15:32:49 -05:00
test.yml Remove spurious ceph. prefix for roles path in test.yml 2019-01-11 11:10:52 +01:00
tox-cephadm.ini tests: migrate to quay.ceph.io registry 2020-09-10 17:30:37 +02:00
tox-docker2podman.ini common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
tox-external_clients.ini common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
tox-filestore_to_bluestore.ini common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
tox-podman.ini common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
tox-shrink_osd.ini common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
tox-update.ini common: drop `fetch_directory` feature 2020-10-21 18:28:25 -04:00
tox.ini switch2container: disable ceph-osd enabled-runtime 2020-11-12 17:04:30 -05:00
vagrant_variables.yml.sample Fix units and add ability to have a dedicated instance 2019-06-10 18:18:46 +02:00

README.rst

ceph-ansible
============
Ansible playbooks for Ceph, the distributed filesystem.

Please refer to our hosted documentation here: https://docs.ceph.com/projects/ceph-ansible/en/latest/

You can view documentation for our ``stable-*`` branches by substituting ``master`` in the link
above for the name of the branch. For example: https://docs.ceph.com/projects/ceph-ansible/en/stable-5.0/