[aws] instance selection based on cpu, memory, nested-virt, etc. not working for default values of cpus, and memory

Open
#495 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, go

Research direction

Start by reproducing the mapt AWS create failure and compare its default CPU and memory criteria with the ec2-instance-selector commands shown in the issue. Inspect the AWS create path and its instance-selection defaults; done means valid instances are selected for the defaults and the create operation no longer exits with "no instances matching criteria."

Written by the indexing model from the issue text.

Description

While using mapt the create operation exits with the following error:

DEBU running 'mapt aws rhel create'
DEBU context initialized for mapt7591cd5f
ERRO no instances matching criteria

while trying to use the ec2-instance-selection tool (https://github.com/aws/amazon-ec2-instance-selector) which is the library that mapt uses we get the following error:

% ec2-instance-selector --memory 64 --vcpus 8 --baremetal
NOTE: The criteria was too narrow and returned no valid instance types. Consider broadening your criteria so that more instance types are returned.

when providing the cpus, memory as the minimum value it works:

% ec2-instance-selector --memory-min 64 --vcpus-min 8 --baremetal
c5.metal
c5d.metal
c5n.metal
c6a.metal
c6g.metal
c6gd.metal
c6i.metal
c6in.metal
c7g.metal
c7gd.metal
c7i.metal-24xl
c7i.metal-48xl
c8g.metal-24xl
c8g.metal-48xl
g4dn.metal
i3.metal
i3en.metal
i4i.metal
m5.metal
m5d.metal
NOTE: 30 entries were truncated, increase --max-results to see more

We'll have to update our default values, and also consider using the cpus, memory as the minimum value while filtering

Dominant language
Go
Stars
26
Forks
41
Avg merge
3d 14h
Merged PRs (30d)
27

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from redhat-developer/mapt

All issues in redhat-developer/mapt

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.