-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
CNV v4.17.3
-
None
-
Quality / Stability / Reliability
-
0.42
-
False
-
-
False
-
None
-
-
Important
-
None
Description of problem:
Set the quato for requst/limits.cpu/memory for namespace, migrate VM from vsphere to CNV cluster, the VM failed to start, the error message is: "failed to create virtual machine pod: pods "virt-launcher-mtv-function-rhel8-8-6h64l" is forbidden: failed quota: mem-cpu-limit: must specify limits.cpu for: compute; limits.memory for: compute'"
Version-Release number of selected component (if applicable):
CNV 4.17.3
How reproducible:
100%
Steps to Reproduce:
1. Set the ResourceQuota: requests.memory: 20Gi, requests.cpu: "8", limits.memory: 20Gi, limits.cpu: "16" for target namespace: mtv-test
2. Add the settings below to ForkliftController, check the fork controller pod yaml file with the settings.
--------------------------
spec:
hooks_container_limits_cpu: 3000m
hooks_container_limits_memory: 3Gi
hooks_container_requests_cpu: 300m
hooks_container_requests_memory: 300Mi
olm_managed: true
ova_container_limits_cpu: 3000m
ova_container_limits_memory: 3Gi
ova_container_requests_cpu: 300m
ova_container_requests_memory: 300Mi
virt_v2v_container_limits_cpu: 4000m
virt_v2v_container_limits_memory: 4Gi
virt_v2v_container_requests_cpu: 2000m
virt_v2v_container_requests_memory: 2Gi
-----------------------------------
3. Create cold migration plan: mtv-quota-cust to migrate VM: mtv-function-rhel8-8 from vSphere8 to target cluster, target namespace: mtv-test
4. Check the migration plan is succeeded
5. Check the VM is failed to start, with error below, attached VM yaml file: mtv-function-rhel8-8.yaml
"failed to create virtual machine pod: pods "virt-launcher-mtv-function-rhel8-8-6h64l" is forbidden: failed quota: mem-cpu-limit: must specify limits.cpu for: compute; limits.memory for: compute'"
-------VM Yaml file ---------
resources:
requests:
memory: 2Gi
----------------------------
6. Edit the VM yaml file to include the limits part, start the VM successfully
--------------------------
resources:
limits:
cpu: '4'
memory: 4Gi
requests:
cpu: '2'
memory: 2Gi
--------------------------
Actual results:
In Step 5, the VM is failed to start
Expected results:
In Step 5, start VM successfully
Additional info:
Attached VM yaml file: mtv-function-rhel8-8.yaml
- relates to
-
MTV-1493 vddk validator containers need requests and limits
-
- Closed
-