Skip to content

chore(ri-exchange): forward the source RI availability zone to the go offering lookups #921

Closed

Description

@cristim

Summary

LeanerCloud/cloud-commitments-go#310 makes the AWS RI exchange offering lookups zone-aware:

Needed here after bumping the go pins

  1. Set RIMetadataInfo.AvailabilityZone from the source convertible RI (ConvertibleRI.AvailabilityZone) wherever RIMetadata is built for RunAutoExchange.
  2. Adapt the LookupOffering closure to LookupOfferingParams and pass AvailabilityZone into FindConvertibleOfferingParams.
  3. Pass the source AZ into ListTargetOfferingsParams on the manual exchange path.
  4. Map the new zone refusals to a 4xx.

Until then, a zonal RI exchange fails loud with "zonal RI offering needs an availability zone". It never silently crosses zones.

Test: a zonal source RI in us-east-1b reaches the provider lookup with AvailabilityZone: "us-east-1b", and a regional one with none.

Activity

  1. IAmJSD commented on Oct 16, 2026

    @IAmJSD
    Collaborator

    Claiming: working on this

  2. self-assigned this
    on Oct 16, 2026
  3. added a commit that references this issue on Oct 17, 2026
    07439f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions