From eeae38ef23c3c9a04510277f0b6f4c854cf73c4a Mon Sep 17 00:00:00 2001 From: Arthy Loganathan Date: Fri, 18 Dec 2020 19:25:45 +0530 Subject: [LibFix] Check to ignore peer validation in case of single node server Change-Id: I5ad55be92b3acaa605e66de246ce7d40bcec6d5b Signed-off-by: Arthy Loganathan --- glustolibs-gluster/glustolibs/gluster/gluster_base_class.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'glustolibs-gluster/glustolibs/gluster') diff --git a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py index 3ce38a304..b2fdc439d 100755 --- a/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py +++ b/glustolibs-gluster/glustolibs/gluster/gluster_base_class.py @@ -196,6 +196,11 @@ class GlusterBaseClass(TestCase): Returns (bool): True if all peers are in connected with other peers. False otherwise. """ + + # If the setup has single node server, by pass this validation. + if len(cls.servers) == 1: + return True + # Validate if peer is connected from all the servers g.log.info("Validating if servers %s are connected from other servers " "in the cluster", cls.servers) -- cgit