You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Querying the cloud/instance route with provider AWS and instance = "is4gen.8xlarge" leads to this 500 internal error with this trace:
Traceback (most recent call last):
File "/app/boaviztapi/main.py", line 45, in catch_exceptions_middleware
return await call_next(request)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 84, in call_next
raise app_exc
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
File "/app/boaviztapi/routers/cloud_router.py", line 50, in instance_cloud_impact
return await cloud_instance_impact(
File "/app/boaviztapi/routers/cloud_router.py", line 107, in cloud_instance_impact
impacts = compute_impacts(model=cloud_instance, selected_criteria=criteria, duration=duration)
File "/app/boaviztapi/service/impacts_computation.py", line 50, in compute_impacts
compute_single_impact(model, phase, criteria.name, duration)
File "/app/boaviztapi/service/impacts_computation.py", line 25, in compute_single_impact
impact, min_impact, max_impact, warnings = impact_function(criteria, duration, model)
File "/app/boaviztapi/service/impacts_computation.py", line 453, in cloud_impact_embedded
default_allocation = cloud_instance.vcpu.value / cloud_instance.platform.get_total_vcpu()
ZeroDivisionError: float division by zero
This seems to be because is4gen.8xlarge server/platform has a value of 0 CPU units :
is4gen.8xlarge,AWS,rack,0,,,Annapurna Labs Graviton2,,6,32,4,7500,0,0,0,,0,2;2;2,2.99;1;5,50;0;100,1,35040,0.33;0.2;0.6,RAM configuration was not verified
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
The text was updated successfully, but these errors were encountered:
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 :
boaviztapi/boaviztapi/data/archetypes/server.csv
Line 84 in a97f79b
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
The text was updated successfully, but these errors were encountered: