Add initial meta-stx to support StarlingX build
[pti/rtp.git] / meta-stx / recipes-support / puppet / files / puppet-drbd / 0005-Add-PausedSync-states-to-acceptable-cstate.patch
1 From b575f4c50e8726c5f9b3227b37a4517c0bbde85c Mon Sep 17 00:00:00 2001
2 From: Robert Church <robert.church@windriver.com>
3 Date: Fri, 2 Jun 2017 02:15:19 +0000
4 Subject: [PATCH] Add PausedSync states to acceptable cstate to avoid metdata
5  creation
6
7 ---
8  manifests/resource/up.pp | 2 +-
9  1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/manifests/resource/up.pp b/manifests/resource/up.pp
12 index 160c8c2..3e2fdac 100644
13 --- a/manifests/resource/up.pp
14 +++ b/manifests/resource/up.pp
15 @@ -14,7 +14,7 @@ define drbd::resource::up (
16    exec { "initialize DRBD metadata for ${name}":
17      command => "yes yes | drbdadm create-md ${name}",
18      onlyif  => "test -e ${disk}",
19 -    unless  => "drbdadm dump-md ${name} || (drbdadm cstate ${name} | egrep -q '^(Sync|Connected|WFConnection|StandAlone|Verify)') || (drbdadm show-gi ${name} | grep 'meta-data: need apply-al')",
20 +    unless  => "drbdadm dump-md ${name} || (drbdadm cstate ${name} | egrep -q '^(PausedSync|Sync|Connected|WFConnection|StandAlone|Verify)') || (drbdadm show-gi ${name} | grep 'meta-data: need apply-al')",
21      before  => Service['drbd'],
22      require => [
23        Exec['modprobe drbd'],
24 -- 
25 1.8.3.1
26