Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify default instance type for ec2 #16061

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

grisu48
Copy link
Contributor

@grisu48 grisu48 commented Dec 7, 2022

The default instance type evaluation doesn't work for ARM instances and is needlessly complicated. This commit changes the behaviour to always returns a large instance of the corresponding family (t2 for x86_64 and a1 for arm64), which simplifies the workflow considerably while increasing the running costs only by a negligible amount.

The default instance type evaluation doesn't work for ARM instances and
is needlessly complicated. This commit changes the behaviour to always
returns a `large` instance of the corresponding family (t2 for x86_64
and a1 for arm64), which simplifies the workflow considerably while
increasing the running costs only by a negligible amount.
@grisu48 grisu48 changed the title WIP: Simplify default instance type for ec2 Simplify default instance type for ec2 Dec 7, 2022
@mimi1vx mimi1vx merged commit e44777c into os-autoinst:master Dec 7, 2022
@grisu48 grisu48 deleted the ec2_upload branch December 7, 2022 12:49
@@ -126,9 +134,7 @@ sub upload_img {
my $img_arch = get_var('PUBLIC_CLOUD_ARCH', 'x86_64');
my $sec_group = get_var('PUBLIC_CLOUD_EC2_UPLOAD_SECGROUP');
my $vpc_subnet = get_var('PUBLIC_CLOUD_EC2_UPLOAD_VPCSUBNET');
my @instance_main_type = split(/\./, get_var('PUBLIC_CLOUD_INSTANCE_TYPE'));
my $instance_size = get_var('PUBLIC_CLOUD_IMAGE_LOCATION') =~ /-SAP-/ ? 'large' : 'micro';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't you changing SAP related logic ? Have you confirmed this with SAP team ? @ricardobranco777 FYI

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this because SAP upload failed with smaller instance. But now is the instance large by default, so should be OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants