fix centos9 test (#9999)

This commit is contained in:
Brad Warren
2024-09-05 16:14:10 -07:00
committed by GitHub
parent 181813b9b2
commit ee2c4844b9
2 changed files with 10 additions and 12 deletions
+9 -11
View File
@@ -286,15 +286,15 @@ def create_client_instance(ec2_client, target, security_group_id, subnet_id, sel
# 32 bit systems # 32 bit systems
machine_type = 'c1.medium' machine_type = 'c1.medium'
name = 'le-%s'%target['name'] name = 'le-%s'%target['name']
print(name, end=" ") try:
return make_instance(ec2_client, instance = make_instance(ec2_client, name, target['ami'], KEYNAME,
name, machine_type=machine_type, security_group_id=security_group_id,
target['ami'], subnet_id=subnet_id, self_destruct=self_destruct)
KEYNAME, except Exception:
machine_type=machine_type, print(f'FAIL: Unable to create instance {name}')
security_group_id=security_group_id, raise
subnet_id=subnet_id, print(f'Created instance {name}')
self_destruct=self_destruct) return instance
def test_client_process(fab_config, inqueue, outqueue, log_dir): def test_client_process(fab_config, inqueue, outqueue, log_dir):
@@ -435,7 +435,6 @@ def main():
instances = [] instances = []
try: try:
print("Creating instances: ", end="")
# If we want to preserve instances, do not have them self-destruct. # If we want to preserve instances, do not have them self-destruct.
self_destruct = not cl_args.saveinstances self_destruct = not cl_args.saveinstances
for target in targetlist: for target in targetlist:
@@ -444,7 +443,6 @@ def main():
security_group_id, subnet_id, security_group_id, subnet_id,
self_destruct) self_destruct)
) )
print()
# Install and launch client scripts in parallel # Install and launch client scripts in parallel
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
+1 -1
View File
@@ -33,7 +33,7 @@ targets:
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# CentOS # CentOS
# These AMI were found on https://centos.org/download/aws-images/. # These AMI were found on https://centos.org/download/aws-images/.
- ami: ami-08f2fe20b72b2ffa7 - ami: ami-00d53d23711185071
name: centos9stream name: centos9stream
type: centos type: centos
virt: hvm virt: hvm