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

ResourceQuota scopes include ephemeral storage which are not allowed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.10
    • None
    • Moderate
    • 1

      Description of problem:

      As per our documentation [1] the following resources can be tracked with "Terminating" and "NotTerminating" scopes:
      
      - limits.ephemeral-storage
      - requests.ephemeral-storage
      
      However, in practice if a resourceQuota object such as the following one is created:
      
      apiVersion: v1
      kind: ResourceQuota
      metadata:
        name: compute-resources
        namespace: global-network-reference-data-web-api-aat
      spec:
        hard:
          limits.cpu: 1300m
          limits.ephemeral-storage: 10Gi
          limits.memory: 2600Mi
          requests.cpu: 300m
          requests.ephemeral-storage: 10Gi
          requests.memory: 1000Mi
        scopes:
        - NotTerminating
      
      an error like "The ResourceQuota "compute-resources" is invalid: spec.scopes: Invalid value: []core.ResourceQuotaScope{"NotTerminating"}: unsupported scope applied to resource" will be returned.
      
      In K8s docs about resourcequota, I don't see any of these resources listed [2].
      
      [1]: https://docs.openshift.com/container-platform/4.10/applications/quotas/quotas-setting-per-project.html#quotas-scopes_quotas-setting-per-project
      [2]: https://kubernetes.io/docs/concepts/policy/resource-quotas/#quota-scopes
      
      

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

      OCP v4.10.X

      How reproducible:

      - Always

      Steps to Reproduce:

      1. Create a ResourceQuota object such as the one described before.
      
      2.
      3.
      

      Actual results:

      The ResourceQuota "compute-resources" is invalid: spec.scopes: Invalid value: []core.ResourceQuotaScope{"NotTerminating"}: unsupported scope applied to resource"

      Expected results:

      If ephemeral-storage is not a resource that can be tracked by Terminating and/or NotTerminating scope, then our documentation should be updated accordingly to avoid confusion.

      Additional info:

       

            sdudhgao@redhat.com Servesha Dudhgaonkar
            rhn-support-jrosenta Joel Rosental Ramones
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: