From 644e86ddb6456a4e83c9fcf0e6f736bafe74dab4 Mon Sep 17 00:00:00 2001 From: Fred Park Date: Wed, 17 May 2017 15:03:30 -0700 Subject: [PATCH] Prevent glusterfs on compute and max tasks > 1 --- convoy/fleet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/convoy/fleet.py b/convoy/fleet.py index fa2e366..eca3a4c 100644 --- a/convoy/fleet.py +++ b/convoy/fleet.py @@ -1447,6 +1447,10 @@ def _adjust_settings_for_pool_creation(config): raise ValueError( 'vm_count dedicated should exceed 1 for glusterfs ' 'on compute') + if pool.max_tasks_per_node > 1: + raise ValueError( + 'max_tasks_per_node cannot exceed 1 for glusterfs ' + 'on compute') num_gluster += 1 try: if settings.gluster_volume_type(sdv, sdvkey) != 'replica':