Closed rajeshkio closed 6 months ago
I'm checking with Equinix support on why it's choosing a facility within the metro that does not have servers available.
Most of the metro have removed 0.11 spot pricing, and several of them shows no servers available when you try to create a server.
equinix_metal_spot_market_request.seed_spot_request[0]: Creating... ╷ │ Error: POST https://api.equinix.com/metal/v1/projects/96810823-2102-43b1-a122-46f6dff73a01/spot-market-requests?include=devices%2Cproject%2Cplan: 422 No available servers with plan m3.small.x86 in facility sy5 │ │ with equinix_metal_spot_market_request.seed_spot_request[0], │ on main.tf line 33, in resource "equinix_metal_spot_market_request" "seed_spot_request": │ 33: resource "equinix_metal_spot_market_request" "seed_spot_request" { │ ╵ ╷ │ Error: POST https://api.equinix.com/metal/v1/projects/96810823-2102-43b1-a122-46f6dff73a01/spot-market-requests?include=devices%2Cproject%2Cplan: 422 No available servers with plan m3.small.x86 in facility sy5 │ │ with equinix_metal_spot_market_request.join_spot_request[0], │ on main.tf line 71, in resource "equinix_metal_spot_market_request" "join_spot_request": │ 71: resource "equinix_metal_spot_market_request" "join_spot_request" { │
@rajeshkio terraform plan
is failing in drone. Can you have a look, see https://drone-pr.rancher.io/rancherlabs/harvester-equinix-terraform/19/1/4 ?
@rajeshkio
terraform plan
is failing in drone. Can you have a look, see https://drone-pr.rancher.io/rancherlabs/harvester-equinix-terraform/19/1/4 ?
okay, it seems I need to update ..droney.yaml with the new environment variable
scraping this PR in favor of https://github.com/rancherlabs/harvester-equinix-terraform/pull/63
I am opening this PR for review and some ideas regarding my issue. With the current implementation, I can find and choose one of the cheapest metros, but I am getting this error:
Error: POST https://api.equinix.com/metal/v1/projects/96810823-2102-43b1-a122-46f6dff73a01/spot-market-requests?include=devices%2Cproject%2Cplan: 422 No available servers with plan m3.small.x86 in facility am2 │ │ with equinix_metal_spot_market_request.seed_spot_request[0], │ on main.tf line 70, in resource "equinix_metal_spot_market_request" "seed_spot_request": │ 70: resource "equinix_metal_spot_market_request" "seed_spot_request" { │
Another solution would be to keep trying all cheap metros till this is successfully deployed.