-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.21
-
None
Description of problem:
"Webhooks should be able to create machines from a machineset with a minimal providerSpec" failed on azure confidential VM clusters The automatically populates resourceIDs is not gen2. Confidential VMs are gen2 only.
Version-Release number of selected component (if applicable):
4.20
How reproducible:
Always
Steps to Reproduce:
1. Create machines from a machineset with a minimal providerSpec
2. Check machine status
image:
offer: ""
publisher: ""
resourceID: /resourceGroups/ci-op-3ps3cd94-2de5a-vjgqg-rg/providers/Microsoft.Compute/galleries/gallery_ci_op_3ps3cd94_2de5a_vjgqg/images/ci-op-3ps3cd94-2de5a-vjgqg/versions/latest
sku: ""
version: ""
message: |
failed to create vm ci-op-3ps3cd94-2de5a-vjgqg-worker-westeurope21-m2q6r: failed to create VM: cannot create vm: PUT https://management.azure.com/subscriptions/53b8f551-f0fc-4bea-8cba-6d1fefd54c8a/resourceGroups/ci-op-3ps3cd94-2de5a-vjgqg-rg/providers/Microsoft.Compute/virtualMachines/ci-op-3ps3cd94-2de5a-vjgqg-worker-westeurope21-m2q6r
--------------------------------------------------------------------------------
RESPONSE 400: 400 Bad Request
ERROR CODE: BadRequest
--------------------------------------------------------------------------------
{
"error": {
"code": "BadRequest",
"message": "Use of ConfidentialVM setting is not supported for the provided image."
}
}
--------------------------------------------------------------------------------
reason: MachineCreationFailed
$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.20.0-0.nightly-2025-12-04-021057 True False 71m Cluster version is 4.20.0-0.nightly-2025-12-04-021057
Actual results:
Machine create failed with a minimal providerSpec
Expected results:
Machine create succeed with a minimal providerSpec
Additional info:
Related discussion: https://redhat-internal.slack.com/archives/CBZHF4DHC/p1764934224340639?thread_ts=1764555476.621779&cid=CBZHF4DHC
bug for azure public cloud: https://issues.redhat.com/browse/OCPBUGS-66244