Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from facility to metro lingo #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mweinelt
Copy link

@mweinelt mweinelt commented Mar 18, 2024

The Equinix Metal API has deprecated¹ use of the facility² keyword back in 2023-05 and now after 2024-03-31 it will be removed.

It has been replaced by the metro³ keyword, that serves a same purpose.

The "any" metro can be used to set no restriction on instance creation.

[1] https://feedback.equinixmetal.com/changelog/bye-facilities-hello-again-metros
[2] https://deploy.equinix.com/developers/docs/metal/locations/facilities/
[3] https://deploy.equinix.com/developers/docs/metal/locations/metros/

@mweinelt
Copy link
Author

Apparently facility is still a required field on the create device API.

systemd[1]: Started hydra-scale-equinix-metal.service.
scale[2756758]: Work summary:
scale[2756758]: System("aarch64-linux") BigParallel = 22
scale[2756758]: System("aarch64-linux") Small = 0
scale[2756758]: System("x86_64-linux") BigParallel = 25
scale[2756758]: System("x86_64-linux") Small = 5803
scale[2756758]: WARNING: System("aarch64-linux")/BigParallel has no hardwarecategory in the hardware map
scale[2756758]: WARNING: System("aarch64-linux")/Small has no hardwarecategory in the hardware map
scale[2756758]: Creating: HardwarePlan {
scale[2756758]:     bid: 2.0,
scale[2756758]:     plan: "c3.medium.x86",
scale[2756758]:     netboot_url: "https://netboot.nixos.org/dispatch/hydra/hydra.nixos.org/equinix-metal-builders/main/c3-medium-x86--big-parallel",
scale[2756758]: }
scale[2756758]: Error: failed to parse json, here's the raw content: Object {
scale[2756758]:     "errors": Array [
scale[2756758]:         String("You must specify a valid facility parameter"),
scale[2756758]:     ],
scale[2756758]: }
scale[2756758]: Caused by:
scale[2756758]:     missing field `hostname` at line 1 column 58
scale[2756758]: Location:
scale[2756758]:     src/device.rs:92:10
systemd[1]: hydra-scale-equinix-metal.service: Main process exited, code=exited, status=1/FAILURE

@mweinelt mweinelt force-pushed the metro branch 6 times, most recently from 095babc to 554682c Compare April 3, 2024 08:19
The Equinix Metal API has deprecated¹ use of the facility² keyword back
in 2023-05 and now after 2024-03-31 it will be removed.

It has been replaced by the metro³ keyword, that serves a same purpose.

The `"any"` metro can be used to set no restriction on instance creation.

[1] https://feedback.equinixmetal.com/changelog/bye-facilities-hello-again-metros
[2] https://deploy.equinix.com/developers/docs/metal/locations/facilities/
[3] https://deploy.equinix.com/developers/docs/metal/locations/metros/

Co-Authored-By: K900 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant