From 2d035c8e3c51b4ccfcc914f82891efc64f4fc421 Mon Sep 17 00:00:00 2001 From: "siraj.yasin" Date: Thu, 13 May 2021 15:26:34 +0000 Subject: [PATCH] Fix for Zuul gate with test-site deployment * cephcluster fails to bring up 3 mons with 2 nodes * reducing the mon count to 1 for test-site Error: "start 3 mons on 2 node(s) when allowMultiplePerNode is false" Change-Id: I140252692c10307eb40f68d5fd18cafeb696cfa2 --- .../site/test-site/target/catalogues/storage.yaml | 2 ++ .../target/workload/replacements/ceph-nodes.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/manifests/site/test-site/target/catalogues/storage.yaml b/manifests/site/test-site/target/catalogues/storage.yaml index f0fe0c288..45d5f3469 100644 --- a/manifests/site/test-site/target/catalogues/storage.yaml +++ b/manifests/site/test-site/target/catalogues/storage.yaml @@ -32,4 +32,6 @@ spec: devicePathFilter: "^/dev/disk/by-path/pci-0000:18:00.0-scsi-0:2:[3-8]:0" # Or you can use device filter # deviceFilter: "^/dev/sd[d-k]" + mon: + count: 1 --- diff --git a/manifests/site/test-site/target/workload/replacements/ceph-nodes.yaml b/manifests/site/test-site/target/workload/replacements/ceph-nodes.yaml index ca545fd5b..4dc41abd0 100644 --- a/manifests/site/test-site/target/workload/replacements/ceph-nodes.yaml +++ b/manifests/site/test-site/target/workload/replacements/ceph-nodes.yaml @@ -19,3 +19,13 @@ replacements: kind: CephCluster name: ceph fieldrefs: ["{.spec.storage}"] +- source: + objref: + kind: StorageCatalogue + name: storage + fieldref: "{.spec.mon.count}" + target: + objref: + kind: CephCluster + name: ceph + fieldrefs: ["{.spec.mon.count}"]