Open bpetit opened 7 months ago
The following instance types produce an Internal Server Error (version 1.2.4):
g3.4xlarge
g3.8xlarge
g3.16xlarge
g3s.xlarge
is4gen.medium
is4gen.large
is4gen.xlarge
is4gen.2xlarge
is4gen.4xlarge
is4gen.8xlarge
m1.medium
m1.small
m1.large
m1.xlarge
m7gd.medium
m7gd.large
m7gd.xlarge
m7gd.2xlarge
m7gd.4xlarge
m7gd.8xlarge
m7gd.12xlarge
m7gd.16xlarge
mac2.metal
ra3.4xlarge
ra3.16xlarge
Hi ! it might be a duplicate of https://github.com/Boavizta/boaviztapi/issues/284 :)
The current issue is specifically about a ZeroDivisionError
Ah, my bad. Thought it was related 😁
Commit : https://github.com/Boavizta/boaviztapi/commit/1dbbead88073077953d09c5aff7f725505714f9f fixes this bug.
Bug description
Querying the cloud/instance route with provider AWS and instance = "is4gen.8xlarge" leads to this 500 internal error with this trace:
This seems to be because is4gen.8xlarge server/platform has a value of 0 CPU units : https://github.com/Boavizta/boaviztapi/blob/a97f79bf89ad5d48b279183e0a5de3e80da746e1/boaviztapi/data/archetypes/server.csv#L84
As the is4gen.8xlarge instance has 32 vcpus but the server's "Annapurna Labs Graviton2" CPU has 64 logical cores, it seems that the script generating server.csv record sets 0 (maybe a round(32/64) somewhere ?) as CPU.units, which leads to the error.
To Reproduce
Query cloud/instance with provider = aws and instance_type = "is4gen.8xlarge"
Expected behavior
200 OK with a result