From: Sébastien Han Date: Wed, 26 Jul 2017 14:46:57 +0000 (+0200) Subject: osd: do not enable osd@id unit file X-Git-Tag: v3.0.0rc1~16^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8ac7d2e4c92105547f7a375a35b7f817e5f9e108;p=ceph-ansible.git osd: do not enable osd@id unit file ceph-disk is responsable for enabling the unit file if needed. Actually since https://github.com/ceph/ceph/pull/12241 it seems that it's not even needed. On an event of a restart, udev rules will be trigger and they will ceph-disk activate the device too so the 'enabled' is not needed. Closes: https://github.com/ceph/ceph-ansible/issues/1142 Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-osd/tasks/activate_osds.yml b/roles/ceph-osd/tasks/activate_osds.yml index f35bea199..4c1a1bd61 100644 --- a/roles/ceph-osd/tasks/activate_osds.yml +++ b/roles/ceph-osd/tasks/activate_osds.yml @@ -95,6 +95,5 @@ service: name: ceph-osd@{{ item }} state: started - enabled: yes with_items: "{{ (osd_id|default({})).stdout_lines|default([]) }}" changed_when: false diff --git a/tests/functional/tests/osd/test_osds.py b/tests/functional/tests/osd/test_osds.py index e0465c401..11fc226a3 100644 --- a/tests/functional/tests/osd/test_osds.py +++ b/tests/functional/tests/osd/test_osds.py @@ -22,11 +22,6 @@ class TestOSDs(object): for osd in node["osds"]: assert Service("ceph-osd@%s" % osd).is_running - def test_osd_services_are_enabled(self, node, Service): - # TODO: figure out way to paramaterize node['osds'] for this test - for osd in node["osds"]: - assert Service("ceph-osd@%s" % osd).is_enabled - @pytest.mark.no_docker def test_osd_are_mounted(self, node, MountPoint): # TODO: figure out way to paramaterize node['osd_ids'] for this test