Is there an existing issue for this?
Current Behavior
getCloudRegionsWithFeatureAvailable iterates over all project regions and immediately continues whenever a region's top-level status is not "UP". The per-service status check only runs for regions that pass this region-level filter, so a region with status: "DOWN" is excluded from the result even when it contains services whose individual status is "UP".
For example, given a region like CA-EAST-TOR returned by the API:
{
"name": "CA-EAST-TOR",
"status": "DOWN",
"services": [
{ "name": "storage-s3-high-perf", "status": "UP" },
{ "name": "storage-s3-standard", "status": "UP" }
]
}
and a call such as:
getCloudRegionsWithFeatureAvailable(projectID, "storage-s3-standard")
the function skips the region at:
if region["status"] != "UP" {
continue
}
So, CA-EAST-TOR is never appended to the returned regionIDs, despite both matching services reporting status: "UP".
Expected Behavior
The function should return a region when at least one requested feature has a corresponding service with status: "UP", regardless of the region's own status field.
Steps To Reproduce
Try to list services in a project which has a region that is DOWN but any service that is UP.
Anything else?
No response
Is there an existing issue for this?
Current Behavior
getCloudRegionsWithFeatureAvailableiterates over all project regions and immediately continues whenever a region's top-level status is not "UP". The per-service status check only runs for regions that pass this region-level filter, so a region with status: "DOWN" is excluded from the result even when it contains services whose individual status is "UP".For example, given a region like CA-EAST-TOR returned by the API:
{ "name": "CA-EAST-TOR", "status": "DOWN", "services": [ { "name": "storage-s3-high-perf", "status": "UP" }, { "name": "storage-s3-standard", "status": "UP" } ] }and a call such as:
the function skips the region at:
So, CA-EAST-TOR is never appended to the returned regionIDs, despite both matching services reporting status: "UP".
Expected Behavior
The function should return a region when at least one requested feature has a corresponding service with status: "UP", regardless of the region's own status field.
Steps To Reproduce
Try to list services in a project which has a region that is DOWN but any service that is UP.
Anything else?
No response