Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-55372

Azure Capacity Reservation Group does not work across subscriptions

XMLWordPrintable

    • None
    • CLOUD Sprint 270, CLOUD Sprint 271, CLOUD Sprint 272, CLOUD Sprint 273
    • 4
    • Rejected
    • False
    • Hide

      None

      Show
      None

      When attempting to reference a Capacity Reservation Group across subscriptions MAPI fails with the following error.

      failed to create vm tst-redacted-northeurope1-rhjzl: failure sending request for machine tst-redacted-northeurope1-rhjzl: cannot create vm: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 – Original Error: Code="BadRequest" Message="Cross subscription association with capacity reservations is not supported for api versions below 2022-11-01."

      Unfortunately it looks like fixing this would require an Azure SDK bump as v0.68 does not include references to the API version mentioned above.

      https://github.com/Azure/azure-sdk-for-go/tree/v68.0.0/services/compute/mgmt

      https://github.com/openshift/machine-api-provider-azure/blob/main/pkg/cloud/azure/services/virtualmachines/virtualmachines.go#L29 

       

              rhn-gps-mbooth Matthew Booth
              rhn-support-sdodson Scott Dodson
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: