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

Azure Capacity Reservation Group does not work across subscriptions

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • Rejected
    • CLOUD Sprint 270, CLOUD Sprint 271, CLOUD Sprint 272, CLOUD Sprint 273
    • 4
    • Done
    • Bug Fix
    • Hide
      * Before this update, the Machine API Provider Azure used an old version of the Azure SDK, which used an old API version that did not support referencing a Capacity Reservation group.
      As a consequence, creating a Machine API machine that referenced a Capacity Reservation group in another subscription resulted in an Azure API error.
      With this release, the Machine API Provider Azure is updated to use a version of the Azure SDK that supports this configuration.
      As a result, creating a Machine API machine that references a Capacity Reservation group in another subscription works as expected.
      (link:https://issues.redhat.com/browse/OCPBUGS-55372[OCPBUGS-55372])
      Show
      * Before this update, the Machine API Provider Azure used an old version of the Azure SDK, which used an old API version that did not support referencing a Capacity Reservation group. As a consequence, creating a Machine API machine that referenced a Capacity Reservation group in another subscription resulted in an Azure API error. With this release, the Machine API Provider Azure is updated to use a version of the Azure SDK that supports this configuration. As a result, creating a Machine API machine that references a Capacity Reservation group in another subscription works as expected. (link: https://issues.redhat.com/browse/OCPBUGS-55372 [ OCPBUGS-55372 ])
    • None
    • None
    • None
    • 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
              None
              None
              Zhaohua Sun Zhaohua Sun
              None
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: