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

Missing permissions for Azure Reserved Capacity Group

XMLWordPrintable

    • None
    • CFE Sprint 257
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, you could not configure capacity reservation on a {azure-first} Workload Identity cluster because of missing permissions. With this release, the `Microsoft.Compute/capacityReservationGroups/deploy/action` permission is added as a default credential request in the `<infra-name>-openshift-machine-api-azure-cloud-credentials` custom role, so that you can now configure capacity reservation as expected. (link:https://issues.redhat.com/browse/OCPBUGS-37154[*OCPBUGS-37154*])
      Show
      * Previously, you could not configure capacity reservation on a {azure-first} Workload Identity cluster because of missing permissions. With this release, the `Microsoft.Compute/capacityReservationGroups/deploy/action` permission is added as a default credential request in the `<infra-name>-openshift-machine-api-azure-cloud-credentials` custom role, so that you can now configure capacity reservation as expected. (link: https://issues.redhat.com/browse/OCPBUGS-37154 [* OCPBUGS-37154 *])
    • Bug Fix
    • Done

      Description of problem:

      While testing the backport of Azure Reserved Capacity Group support a customer observed that they lack permissions required when operating with Workload Identity (token and role based auth). However this is a curious one where it's likely that the target group may not necessarily be part of the group in which the cluster runs so it would require input from the admin in some use cases.

      Version-Release number of selected component (if applicable):

      4.17.0    

      How reproducible:

      100%    

      Steps to Reproduce:

          1. Install 4.17 in Azure with Workload Identity configured
          2. Create an Azure Reserved Capacity Group, for simplicity in the same resource group as the cluster
          3. Update a machineset to use that reserved group
          

      Actual results:

          Permissions errors, missing Microsoft.Compute/capacityReservationGroups/deploy/action

      Expected results:

          Machines created successfully

      Additional info:

      As mentioned in the description it's likely that the reserved capacity group may be in another resource group and thus in order to create the role it requires admin input, ie: cannot be computed 100% of the time. Therefore that specific use case may be a documentation concern unless we can come up with a novel solution.
      
      Further, it also brings up the question of whether or not we should include this permission in the default cred request or not. Customers may not use that default for reasons mentioned above, or they may not even use the feature entirely. But, I think for now it may be worth adding it to the 4.17 CredRequest and treating use of this feature in backported versions as a documentation concern, since we wouldn't want to expand permissions on all 4.16 or older clusters.    

       

              rh-ee-aagnihot Anirudh Agnihotri
              rhn-support-sdodson Scott Dodson
              Zhaohua Sun Zhaohua Sun
              Darragh Fitzmaurice Darragh Fitzmaurice
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: