]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
infrastructure playbooks: remove lv-create error msg
authorAli Maredia <amaredia@redhat.com>
Wed, 29 Aug 2018 16:06:52 +0000 (12:06 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 29 Aug 2018 21:10:20 +0000 (21:10 +0000)
remove error message when PV creation fails

Signed-off-by: Ali Maredia <amaredia@redhat.com>
infrastructure-playbooks/lv-create.yml

index d8f9f2d6449d4c7176d199c4649e52c6998d725c..b1c87d5258c7e51979dadad2dabd2ae08c9e69e9 100644 (file)
 
   # Make entire nvme device a VG
   - name: add nvme device as lvm pv
-    lvg:
-      force: yes
-      pvs: "{{ nvme_device }}"
-      pesize: 4
-      state: present
-    ignore_errors: True
-    register: nvme_pv_create
-
-  - fail:
-      msg: "PV creation for {{ nvme_device }} has failed. Please verify the device is ready for use by running `wipefs --all {{ nvme_device }}`"
-    when: nvme_pv_create.rc != 0
-
-  - name: add vg to nvme device pv
     lvg:
       force: yes
       pvs: "{{ nvme_device }}"
       - "{{ nvme_device_lvs }}"
 
     # Make sure all hdd devices have a unique volume group
-  - name: create pvs on all hdd devices
-    lvg:
-      force: yes
-      pvs: "{{ item }}"
-      pesize: 4
-      state: present
-    ignore_errors: True
-    register: hdd_pv_create
-    with_items:
-      - "{{ hdd_devices }}"
-
-  - fail:
-      msg: "PV creation for {{ item.item }} has failed. Please verify the device is ready for use by running `wipefs --all {{ item.item }}`"
-    when: item.rc != 0
-    loop: "{{ hdd_pv_create.results }}"
-
   - name: create vgs for all hdd devices
     lvg:
       force: yes