-
Bug
-
Resolution: Done-Errata
-
Normal
-
CNV v4.18.0
-
None
-
Quality / Stability / Reliability
-
2
-
False
-
-
False
-
CNV v4.99.0.rhel9-2279
-
-
3
-
CNV Infra 265, CNV Infra 269, CNV Infra 270
-
None
Description of problem:
When creating a VirtualMachine that references an InstanceType, the webhook currently rejects its creation if the InstanceType resource does not exist. The following error is shown: "admission webhook "virtualmachine-validator.kubevirt.io" denied the request: Failure to find instancetype: controllerrevisions.apps "vm-cirros-datavolume-example-instancetype-v1beta1-786ad661-0a0b-4537-861b-be41feda3147-1" not found" We should consider preventing VM start-up (VMI creation) when the associated InstanceType is missing. However, blocking the VM creation is overkill and goes against the declarative design we are aiming for.
Version-Release number of selected component (if applicable):
4.18.0
How reproducible:
Always
Steps to Reproduce:
1.Create a VM that references a instance type in its spec. 2.Don't create instance type. 3.Create fails.
Actual results:
VM creation is rejected by webhook.
Expected results:
VM creation should succeed. If the instance type is created in the future, the VM should be recoverable.
Additional info:
- links to
-
RHEA-2025:150257
OpenShift Virtualization 4.20.0 Images