X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-stx%2Frecipes-support%2Fpuppet%2Ffiles%2Fpuppet-ceph%2F0010-wipe-unprepared-disks.patch;fp=meta-stx%2Frecipes-support%2Fpuppet%2Ffiles%2Fpuppet-ceph%2F0010-wipe-unprepared-disks.patch;h=fcebed887e34b8a8cde4e379e9142de2fa1cb422;hb=57fdea704bd62af847872c40508f00aa1d7cac60;hp=0000000000000000000000000000000000000000;hpb=f23f21bccfb750b9e30141fd9676515215ffbc4e;p=pti%2Frtp.git diff --git a/meta-stx/recipes-support/puppet/files/puppet-ceph/0010-wipe-unprepared-disks.patch b/meta-stx/recipes-support/puppet/files/puppet-ceph/0010-wipe-unprepared-disks.patch new file mode 100644 index 0000000..fcebed8 --- /dev/null +++ b/meta-stx/recipes-support/puppet/files/puppet-ceph/0010-wipe-unprepared-disks.patch @@ -0,0 +1,25 @@ +From 828af5dec53192207637d15397887e058d6ea0fb Mon Sep 17 00:00:00 2001 +From: Daniel Badea +Date: Fri, 26 Apr 2019 00:22:12 +0000 +Subject: [PATCH] wipe unprepared disks + +--- + manifests/osd.pp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/manifests/osd.pp b/manifests/osd.pp +index 5bd30c5..ab65924 100644 +--- a/manifests/osd.pp ++++ b/manifests/osd.pp +@@ -158,7 +158,7 @@ umount /var/lib/ceph/osd/ceph-${osdid} + # 2. The uuid for the OSD we are configuring matches the uuid for the + # OSD on the disk. We don't want to attempt to re-use an OSD that + # had previously been deleted. +- unless => "/usr/sbin/ceph-disk list | grep -v 'unknown cluster' | grep \" *$(readlink -f ${data}).*ceph data\" | grep 'osd uuid ${uuid}'", ++ unless => "/usr/sbin/ceph-disk list | grep -v 'unknown cluster' | grep \" *$(readlink -f ${data}).*ceph data\" | grep -v unprepared | grep 'osd uuid ${uuid}'", + + logoutput => true, + timeout => $exec_timeout, +-- +1.8.3.1 +