Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-1493

vddk validator containers need requests and limits

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • 2.7.7
    • 2.6.0
    • Controller
    • False
    • None
    • True
    • Customer Escalated

      I added ClusterResourceQuota to my user:

      apiVersion: quota.openshift.io/v1
      kind: ClusterResourceQuota
      metadata:
        name: user-compute-resources
      spec:
        quota:
          hard:
            pods: "8"
            requests.cpu: "7"
            requests.memory: 22Gi
            limits.cpu: "7"
            limits.memory: 22Gi
        selector:
          annotations: 
            openshift.io/requester: user1
          labels: null
      

      Created a migration plan and it failed:

       

      JobJ[vddk-validator-copy-of-copy-of-asdfasdfbtd2c|https://console-openshift-console.apps.hcp-2hzxv.dynamic.redhatworkshops.io/k8s/ns/vmexamples-user1/jobs/vddk-validator-copy-of-copy-of-asdfasdfbtd2c]NamespaceNS[vmexamples-user1|https://console-openshift-console.apps.hcp-2hzxv.dynamic.redhatworkshops.io/k8s/cluster/namespaces/vmexamples-user1]}}
      Sep 23, 2024, 2:06 PM\{{Generated from job-controller}}
      2 times in the last 2 minutes\{{(combined from similar events): Error creating: pods "vddk-validator-copy-of-copy-of-asdfasdfbtd2c-jlm6x" is forbidden: failed quota: user-compute-resources: *must specify limits.cpu for: validator,vddk-side-car; limits.memory for: validator,vddk-side-car; requests.cpu for: validator,vddk-side-car; requests.memory for: validator,vddk-side-car*}}
       
      

      Tried adding configs to the forklift-controller CR:
       

      
      validation_container_limits_cpu: "1000m"
      validation_container_limits_memory: "300Mi"
      validation_container_requests_cpu: "400m"
      validation_container_requests_memory: "50Mi"
       

      Still failed.
       
      Tried enabling ApplicationAwareResourceQuotas:

       

      per: https://access.redhat.com/solutions/7063206

      Created in namespace:

       

      apiVersion: aaq.kubevirt.io/v1alpha1
      kind: ApplicationAwareResourceQuota
      metadata: 
        creationTimestamp: '2024-09-23T17:54:18Z'
        generation: 1
        name: default-quota
        namespace: vmexamples-user1
        resourceVersion: '483385'
        uid: 57ea40a7-8559-4ad2-a82c-61ffc39fa03d
      spec: 
        hard: 
          limits.cpu: '10'
          limits.memory: 20Gi
          requests.cpu: '5'
          requests.memory: 10Gi
      status: 
        hard: 
          limits.cpu: '10'
          limits.memory: 20Gi
          requests.cpu: '5'
          requests.memory: 10Gi
        used: 
          limits.cpu: '0'
          limits.memory: '0'
          requests.cpu: '0'
          requests.memory: '0'
      
      

       

       

              mnecas@redhat.com Martin Necas
              jmaltin Judd Maltin
              Chenli Hu Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: