@@ -208,8 +208,8 @@ def validate(self):
208208 checks = [("master/vpn" , self .check_master_vpn_worker ), ("servergroup" , self .check_server_group ),
209209 ("instances" , self .check_instances ), ("volumes" , self .check_volumes ), ("network" , self .check_network ),
210210 ("quotas" , self .check_quotas ), ("sshPublicKeyFiles" , self .check_ssh_public_key_files ),
211- ("cloudYamls" , self .check_clouds_yamls ), ("nfs" , self .check_nfs ), ( "global security groups" ,
212- self .check_configurations_security_groups )]
211+ ("cloudYamls" , self .check_clouds_yamls ), ("nfs" , self .check_nfs ),
212+ ( "global security groups" , self .check_configurations_security_groups )]
213213 if success :
214214 for check_name , check_function in checks :
215215 success = evaluate (check_name , check_function (), self .log ) and success
@@ -223,7 +223,7 @@ def _check_security_groups(self, provider, security_groups):
223223 security_group = provider .get_security_group (security_group_name )
224224 if not security_group :
225225 self .log .warning (f"Couldn't find security group { security_group } on "
226- f"cloud { provider .cloud_specification ['identifier' ]} " )
226+ f"cloud { provider .cloud_specification ['identifier' ]} " )
227227 success = False
228228 else :
229229 self .log .debug (f"Found { security_group_name } on cloud { provider .cloud_specification ['identifier' ]} " )
@@ -349,6 +349,10 @@ def check_instance_type_image_combination(self, instance_type, instance_image, p
349349 (type_max_ram , image_min_ram , "ram" )]:
350350 success = has_enough (maximum , needed , f"Type { instance_type } " , thing , self .log ) and success
351351 # prepare check quotas
352+ if type_max_ram < 4096 :
353+ self .log .warning (
354+ f"Flavor { instance_type } on { provider .cloud_specification ['identifier' ]} has { type_max_ram } but should "
355+ f"at least have 4096 MiB of RAM to efficiently run slurm and jobs!" )
352356 self .required_resources_dict [provider .cloud_specification ['identifier' ]]["total_ram" ] += type_max_ram
353357 self .required_resources_dict [provider .cloud_specification ['identifier' ]]["total_cores" ] += flavor ["vcpus" ]
354358 return success
0 commit comments