From: Guillaume Abrioux Date: Tue, 11 Jun 2019 09:16:51 +0000 (+0200) Subject: osd: remove legacy task X-Git-Tag: v4.0.0rc10~52 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c245c4e8ebdcb60e350c88d61687e42b7775e91d;p=ceph-ansible.git osd: remove legacy task `parted_results` isn't used anymore in the playbook. By the way, `parted` seems to cause issue because it changes the ownership on devices: ``` root@osd0 ~]# ls -l /dev/sdc* brw-rw----. 1 root disk 8, 32 Jun 11 08:53 /dev/sdc brw-rw----. 1 ceph ceph 8, 33 Jun 11 08:53 /dev/sdc1 brw-rw----. 1 ceph ceph 8, 34 Jun 11 08:53 /dev/sdc2 [root@osd0 ~]# parted -s /dev/sdc print Model: ATA QEMU HARDDISK (scsi) Disk /dev/sdc: 53.7GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 1075MB 1074MB ceph block.db 2 1075MB 2149MB 1074MB ceph block.db [root@osd0 ~]# #We can see ownerships have changed from ceph:ceph to root:disk: [root@osd0 ~]# ls -l /dev/sdc* brw-rw----. 1 root disk 8, 32 Jun 11 08:57 /dev/sdc brw-rw----. 1 root disk 8, 33 Jun 11 08:57 /dev/sdc1 brw-rw----. 1 root disk 8, 34 Jun 11 08:57 /dev/sdc2 [root@osd0 ~]# ``` Signed-off-by: Guillaume Abrioux (cherry picked from commit eece362b38e246a0e6f5f4a487d33409657c2fe8) --- diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index aebea8157..f1caf321e 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -36,13 +36,6 @@ - name: include container_options_facts.yml include_tasks: container_options_facts.yml -- name: read information about the devices - parted: - device: "{{ item }}" - unit: MiB - register: parted_results - with_items: "{{ devices }}" - - name: include_tasks scenarios/lvm.yml include_tasks: scenarios/lvm.yml when: