From 6825a451ab8024e20c8feaf79d9516d9241a8c95 Mon Sep 17 00:00:00 2001 From: Anand Kumar Date: Thu, 24 Nov 2022 21:30:16 -0800 Subject: [PATCH] Change instance type to t2.medium On rhel t2.micro vm, antrea-agent installation and setting up apache web server was exceeding the timeout. So as a workaround, upgrading the instance size Signed-off-by: Anand Kumar --- hack/terraform/aws/variables.tf | 2 +- test/utils/cloud_provider_aws.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/terraform/aws/variables.tf b/hack/terraform/aws/variables.tf index 21dca7a3..de5c490a 100644 --- a/hack/terraform/aws/variables.tf +++ b/hack/terraform/aws/variables.tf @@ -6,7 +6,7 @@ variable owner { } variable aws_vm_type { - default = "t2.micro" + default = "t2.medium" } variable peer_vpc_id { diff --git a/test/utils/cloud_provider_aws.go b/test/utils/cloud_provider_aws.go index c30cb80b..f5f546e0 100644 --- a/test/utils/cloud_provider_aws.go +++ b/test/utils/cloud_provider_aws.go @@ -179,6 +179,7 @@ func (p *awsVPC) Reapply(timeout time.Duration) error { // Wait for servers on VMs come to live. err = wait.Poll(time.Second*10, time.Second*600, func() (bool, error) { for _, ip := range p.GetVMIPs() { + logf.Log.Info("Debug: Running curl", "ip", ip) cmd := exec.Command("timeout", []string{"5", "curl", "http://" + ip}...) if _, err = cmd.CombinedOutput(); err != nil { return false, nil