Skip to content

ENG-5355: fix virtual provider, IP, and integration spec inconsistencies - #895

Open
aubuchcl wants to merge 2 commits into
mainfrom
chris/eng-5355-api-spec-fix-13-inconsistencies-in-virtual
Open

aubuchcl wants to merge 2 commits into
mainfrom
chris/eng-5355-api-spec-fix-13-inconsistencies-in-virtual

Conversation

@aubuchcl

Copy link
Copy Markdown
Collaborator

Fixes the items from ENG-5355 that can be resolved from the spec itself. Items 1, 3, 5, and 11 (static NIC ip vs static_ip, SDN L2 reconfigure usable vs network, 202 on ISO GETs, IPv6 iPXE prefix) are left for backend confirmation.

VirtualProviderIso.yml

  • Remove identifier from required. The property was removed in remove iso identifier #598 but left in the required list. Flagged by redocly (no-required-schema-properties-undefined).
  • State description "state of the environment" -> "state of the ISO". Wording fix; the schema describes an ISO.

isos/download.yml

  • Summary "Delete ISO" -> "Get ISO Download URL". The operation is a GET (getVirtualProviderIsoDownloadUrl) that returns { data: { url } }; the summary was copied from the DELETE in iso.yml.

isos/isos.yml

  • Request body "new virtual provider job" -> "new virtual provider ISO". Matches the spec's convention: "...new X job" is only used on /tasks endpoints that return a JobDescriptor; create endpoints use "...new X" (clusters, IP pools, VMs, containers). This endpoint returns 201 with the ISO, not a job.

ips/ips.yml

  • Capability infrastructure-ips-manage -> ips-manage. The old name doesn't exist in common/Capability.yml or anywhere else in the repo. All other IP endpoints (pool get/delete, pools list/create, pool tasks) use ips-manage, and /docs/platform/roles-and-capabilities lists only ips-manage for IPs.

ips/pools.yml

  • 'ips-manage' -> ips-manage. Quote style only; every other capability reference uses backticks.

VirtualProviderIsoNic.yml

  • "serer" -> "server". Typo.

VirtualProviderIsoBond.yml

  • Remove double periods on balance-tlb / balance-alb. Typo.

servers/task/ServerUnquarantineAction.yml

  • Add schema description and contents.cluster description. Behavior taken from the required contents.cluster field and the portal docs (/docs/portal/virtual-providers: VP servers enter quarantine on first check-in). Cluster description intentionally doesn't say identifier vs ID; that isn't confirmed. Matches sibling actions (ServerPowerOffAction, ServerAuthResetAction), which have descriptions.

hubs/integrations/integrations.yml, integration.yml

  • Add "Requires the hubs-integrations-manage capability." to createIntegration, updateIntegration, and deleteIntegration. INFERRED, not confirmed against the backend: the spec states no capability for these three. Based on the read endpoints requiring hubs-integrations-view, the integration tasks endpoint requiring hubs-integrations-manage, and those being the only two integration capabilities in Capability.yml and the docs roles page.

Fixes the items from ENG-5355 that can be resolved from the spec
itself. Items 1, 3, 5, and 11 (static NIC `ip` vs `static_ip`, SDN L2
reconfigure `usable` vs `network`, 202 on ISO GETs, IPv6 iPXE prefix)
are left for backend confirmation.

VirtualProviderIso.yml
- Remove `identifier` from `required`. The property was removed in
  #598 but left in the required list. Flagged by redocly
  (no-required-schema-properties-undefined).
- State description "state of the environment" -> "state of the ISO".
  Wording fix; the schema describes an ISO.

isos/download.yml
- Summary "Delete ISO" -> "Get ISO Download URL". The operation is a
  GET (getVirtualProviderIsoDownloadUrl) that returns { data: { url } };
  the summary was copied from the DELETE in iso.yml.

isos/isos.yml
- Request body "new virtual provider job" -> "new virtual provider
  ISO". Matches the spec's convention: "...new X job" is only used on
  /tasks endpoints that return a JobDescriptor; create endpoints use
  "...new X" (clusters, IP pools, VMs, containers). This endpoint
  returns 201 with the ISO, not a job.

ips/ips.yml
- Capability `infrastructure-ips-manage` -> `ips-manage`. The old name
  doesn't exist in common/Capability.yml or anywhere else in the repo.
  All other IP endpoints (pool get/delete, pools list/create, pool
  tasks) use `ips-manage`, and /docs/platform/roles-and-capabilities
  lists only `ips-manage` for IPs.

ips/pools.yml
- 'ips-manage' -> `ips-manage`. Quote style only; every other
  capability reference uses backticks.

VirtualProviderIsoNic.yml
- "serer" -> "server". Typo.

VirtualProviderIsoBond.yml
- Remove double periods on balance-tlb / balance-alb. Typo.

servers/task/ServerUnquarantineAction.yml
- Add schema description and `contents.cluster` description. Behavior
  taken from the required `contents.cluster` field and the portal docs
  (/docs/portal/virtual-providers: VP servers enter quarantine on first
  check-in). Cluster description intentionally doesn't say identifier
  vs ID; that isn't confirmed. Matches sibling actions
  (ServerPowerOffAction, ServerAuthResetAction), which have
  descriptions.

hubs/integrations/integrations.yml, integration.yml
- Add "Requires the `hubs-integrations-manage` capability." to
  createIntegration, updateIntegration, and deleteIntegration. INFERRED,
  not confirmed against the backend: the spec states no capability for
  these three. Based on the read endpoints requiring
  `hubs-integrations-view`, the integration tasks endpoint requiring
  `hubs-integrations-manage`, and those being the only two integration
  capabilities in Capability.yml and the docs roles page.
- VirtualProviderIsoNicStaticFlavor: require `ip` (not `static_ip`); confirmed the API field is `ip`.
- ReconfigureSdnNetworkAction: rename l2.routes[].usable to `network`, matching NetworkL2.yml and the existing `required`.
- isos/iso.yml, isos/download.yml: GET responses 202 -> 200; confirmed both GETs return 200.
- VirtualProviderIsoIpxeConfig: document IPv6 prefix length (e.g. `64`) in `netmask`. Believed correct; still to be double-checked with backend.
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