Skip to content

test: Add a E2E test creating a Nutanix cluster with failure domains #4420

test: Add a E2E test creating a Nutanix cluster with failure domains

test: Add a E2E test creating a Nutanix cluster with failure domains #4420

GitHub Actions / e2e test report failed Jul 29, 2025 in 0s

42 tests run, 32 passed, 8 skipped, 2 failed.

Annotations

Check failure on line 1 in caren-e2e

See this annotation in the file changed.

@github-actions github-actions / e2e test report

caren-e2e.[It] Quick start Nutanix Cilium ClusterResourceSet topology-failuredomain-cilium-crs Should create a workload cluster [provider:Nutanix, cni:Cilium, addonStrategy:ClusterResourceSet]

Timed out after 60.100s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:1, cap:1>: 
    admission webhook "default.cluster.cluster.x-k8s.io" denied the request: Cluster.cluster.x-k8s.io "quick-start-im4bd6e9stotmz5o0xc4aoork6pybk4vbmolqr8thjx7lauky4t" is invalid: spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]: Invalid value: "{\"machineDetails\":{\"bootType\":\"uefi\",\"imageLookup\":{\"baseOS\":\"rocky-9.6\",\"format\":\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\"},\"memorySize\":\"4Gi\",\"systemDiskSize\":\"40Gi\",\"vcpuSockets\":2,\"vcpusPerSocket\":1},\"nodeRegistration\":{\"ignorePreflightErrors\":[\"SystemVerification\"]}}": failed validation: "machineDetails" field(s) are not specified in the variable schema of variable "workerConfig"
    [
        <*errors.StatusError | 0xc000d49540>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "admission webhook \"default.cluster.cluster.x-k8s.io\" denied the request: Cluster.cluster.x-k8s.io \"quick-start-im4bd6e9stotmz5o0xc4aoork6pybk4vbmolqr8thjx7lauky4t\" is invalid: spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]: Invalid value: \"{\\\"machineDetails\\\":{\\\"bootType\\\":\\\"uefi\\\",\\\"imageLookup\\\":{\\\"baseOS\\\":\\\"rocky-9.6\\\",\\\"format\\\":\\\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\\\"},\\\"memorySize\\\":\\\"4Gi\\\",\\\"systemDiskSize\\\":\\\"40Gi\\\",\\\"vcpuSockets\\\":2,\\\"vcpusPerSocket\\\":1},\\\"nodeRegistration\\\":{\\\"ignorePreflightErrors\\\":[\\\"SystemVerification\\\"]}}\": failed validation: \"machineDetails\" field(s) are not specified in the variable schema of variable \"workerConfig\"",
                Reason: "Invalid",
                Details: {
                    Name: "quick-start-im4bd6e9stotmz5o0xc4aoork6pybk4vbmolqr8thjx7lauky4t",
                    Group: "cluster.x-k8s.io",
                    Kind: "Cluster",
                    UID: "",
                    Causes: [
                        {
                            Type: "FieldValueInvalid",
                            Message: "Invalid value: \"{\\\"machineDetails\\\":{\\\"bootType\\\":\\\"uefi\\\",\\\"imageLookup\\\":{\\\"baseOS\\\":\\\"rocky-9.6\\\",\\\"format\\\":\\\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\\\"},\\\"memorySize\\\":\\\"4Gi\\\",\\\"systemDiskSize\\\":\\\"40Gi\\\",\\\"vcpuSockets\\\":2,\\\"vcpusPerSocket\\\":1},\\\"nodeRegistration\\\":{\\\"ignorePreflightErrors\\\":[\\\"SystemVerification\\\"]}}\": failed validation: \"machineDetails\" field(s) are not specified in the variable schema of variable \"workerConfig\"",
                            Field: "spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 422,
            },
        },
    ]
Raw output
[FAILED] Timed out after 60.100s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:1, cap:1>: 
    admission webhook "default.cluster.cluster.x-k8s.io" denied the request: Cluster.cluster.x-k8s.io "quick-start-im4bd6e9stotmz5o0xc4aoork6pybk4vbmolqr8thjx7lauky4t" is invalid: spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]: Invalid value: "{\"machineDetails\":{\"bootType\":\"uefi\",\"imageLookup\":{\"baseOS\":\"rocky-9.6\",\"format\":\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\"},\"memorySize\":\"4Gi\",\"systemDiskSize\":\"40Gi\",\"vcpuSockets\":2,\"vcpusPerSocket\":1},\"nodeRegistration\":{\"ignorePreflightErrors\":[\"SystemVerification\"]}}": failed validation: "machineDetails" field(s) are not specified in the variable schema of variable "workerConfig"
    [
        <*errors.StatusError | 0xc000d49540>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "admission webhook \"default.cluster.cluster.x-k8s.io\" denied the request: Cluster.cluster.x-k8s.io \"quick-start-im4bd6e9stotmz5o0xc4aoork6pybk4vbmolqr8thjx7lauky4t\" is invalid: spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]: Invalid value: \"{\\\"machineDetails\\\":{\\\"bootType\\\":\\\"uefi\\\",\\\"imageLookup\\\":{\\\"baseOS\\\":\\\"rocky-9.6\\\",\\\"format\\\":\\\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\\\"},\\\"memorySize\\\":\\\"4Gi\\\",\\\"systemDiskSize\\\":\\\"40Gi\\\",\\\"vcpuSockets\\\":2,\\\"vcpusPerSocket\\\":1},\\\"nodeRegistration\\\":{\\\"ignorePreflightErrors\\\":[\\\"SystemVerification\\\"]}}\": failed validation: \"machineDetails\" field(s) are not specified in the variable schema of variable \"workerConfig\"",
                Reason: "Invalid",
                Details: {
                    Name: "quick-start-im4bd6e9stotmz5o0xc4aoork6pybk4vbmolqr8thjx7lauky4t",
                    Group: "cluster.x-k8s.io",
                    Kind: "Cluster",
                    UID: "",
                    Causes: [
                        {
                            Type: "FieldValueInvalid",
                            Message: "Invalid value: \"{\\\"machineDetails\\\":{\\\"bootType\\\":\\\"uefi\\\",\\\"imageLookup\\\":{\\\"baseOS\\\":\\\"rocky-9.6\\\",\\\"format\\\":\\\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\\\"},\\\"memorySize\\\":\\\"4Gi\\\",\\\"systemDiskSize\\\":\\\"40Gi\\\",\\\"vcpuSockets\\\":2,\\\"vcpusPerSocket\\\":1},\\\"nodeRegistration\\\":{\\\"ignorePreflightErrors\\\":[\\\"SystemVerification\\\"]}}\": failed validation: \"machineDetails\" field(s) are not specified in the variable schema of variable \"workerConfig\"",
                            Field: "spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 422,
            },
        },
    ]
In [It] at: /home/runner/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/framework/clusterctl/clusterctl_helpers.go:431 @ 07/29/25 04:42:14.006

Check failure on line 1 in caren-e2e

See this annotation in the file changed.

@github-actions github-actions / e2e test report

caren-e2e.[It] Quick start Nutanix Cilium HelmAddon topology-failuredomain-cilium-helm-addon Should create a workload cluster [provider:Nutanix, cni:Cilium, addonStrategy:HelmAddon]

Timed out after 60.123s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:1, cap:1>: 
    admission webhook "default.cluster.cluster.x-k8s.io" denied the request: Cluster.cluster.x-k8s.io "quick-start-ykwzs7gv44zlaqizvr5spkc0i2c6cotd98djzrs1ezyf6u4pydl" is invalid: spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]: Invalid value: "{\"machineDetails\":{\"bootType\":\"uefi\",\"imageLookup\":{\"baseOS\":\"rocky-9.6\",\"format\":\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\"},\"memorySize\":\"4Gi\",\"systemDiskSize\":\"40Gi\",\"vcpuSockets\":2,\"vcpusPerSocket\":1},\"nodeRegistration\":{\"ignorePreflightErrors\":[\"SystemVerification\"]}}": failed validation: "machineDetails" field(s) are not specified in the variable schema of variable "workerConfig"
    [
        <*errors.StatusError | 0xc0008aa1e0>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "admission webhook \"default.cluster.cluster.x-k8s.io\" denied the request: Cluster.cluster.x-k8s.io \"quick-start-ykwzs7gv44zlaqizvr5spkc0i2c6cotd98djzrs1ezyf6u4pydl\" is invalid: spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]: Invalid value: \"{\\\"machineDetails\\\":{\\\"bootType\\\":\\\"uefi\\\",\\\"imageLookup\\\":{\\\"baseOS\\\":\\\"rocky-9.6\\\",\\\"format\\\":\\\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\\\"},\\\"memorySize\\\":\\\"4Gi\\\",\\\"systemDiskSize\\\":\\\"40Gi\\\",\\\"vcpuSockets\\\":2,\\\"vcpusPerSocket\\\":1},\\\"nodeRegistration\\\":{\\\"ignorePreflightErrors\\\":[\\\"SystemVerification\\\"]}}\": failed validation: \"machineDetails\" field(s) are not specified in the variable schema of variable \"workerConfig\"",
                Reason: "Invalid",
                Details: {
                    Name: "quick-start-ykwzs7gv44zlaqizvr5spkc0i2c6cotd98djzrs1ezyf6u4pydl",
                    Group: "cluster.x-k8s.io",
                    Kind: "Cluster",
                    UID: "",
                    Causes: [
                        {
                            Type: "FieldValueInvalid",
                            Message: "Invalid value: \"{\\\"machineDetails\\\":{\\\"bootType\\\":\\\"uefi\\\",\\\"imageLookup\\\":{\\\"baseOS\\\":\\\"rocky-9.6\\\",\\\"format\\\":\\\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\\\"},\\\"memorySize\\\":\\\"4Gi\\\",\\\"systemDiskSize\\\":\\\"40Gi\\\",\\\"vcpuSockets\\\":2,\\\"vcpusPerSocket\\\":1},\\\"nodeRegistration\\\":{\\\"ignorePreflightErrors\\\":[\\\"SystemVerification\\\"]}}\": failed validation: \"machineDetails\" field(s) are not specified in the variable schema of variable \"workerConfig\"",
                            Field: "spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 422,
            },
        },
    ]
Raw output
[FAILED] Timed out after 60.123s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:1, cap:1>: 
    admission webhook "default.cluster.cluster.x-k8s.io" denied the request: Cluster.cluster.x-k8s.io "quick-start-ykwzs7gv44zlaqizvr5spkc0i2c6cotd98djzrs1ezyf6u4pydl" is invalid: spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]: Invalid value: "{\"machineDetails\":{\"bootType\":\"uefi\",\"imageLookup\":{\"baseOS\":\"rocky-9.6\",\"format\":\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\"},\"memorySize\":\"4Gi\",\"systemDiskSize\":\"40Gi\",\"vcpuSockets\":2,\"vcpusPerSocket\":1},\"nodeRegistration\":{\"ignorePreflightErrors\":[\"SystemVerification\"]}}": failed validation: "machineDetails" field(s) are not specified in the variable schema of variable "workerConfig"
    [
        <*errors.StatusError | 0xc0008aa1e0>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "admission webhook \"default.cluster.cluster.x-k8s.io\" denied the request: Cluster.cluster.x-k8s.io \"quick-start-ykwzs7gv44zlaqizvr5spkc0i2c6cotd98djzrs1ezyf6u4pydl\" is invalid: spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]: Invalid value: \"{\\\"machineDetails\\\":{\\\"bootType\\\":\\\"uefi\\\",\\\"imageLookup\\\":{\\\"baseOS\\\":\\\"rocky-9.6\\\",\\\"format\\\":\\\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\\\"},\\\"memorySize\\\":\\\"4Gi\\\",\\\"systemDiskSize\\\":\\\"40Gi\\\",\\\"vcpuSockets\\\":2,\\\"vcpusPerSocket\\\":1},\\\"nodeRegistration\\\":{\\\"ignorePreflightErrors\\\":[\\\"SystemVerification\\\"]}}\": failed validation: \"machineDetails\" field(s) are not specified in the variable schema of variable \"workerConfig\"",
                Reason: "Invalid",
                Details: {
                    Name: "quick-start-ykwzs7gv44zlaqizvr5spkc0i2c6cotd98djzrs1ezyf6u4pydl",
                    Group: "cluster.x-k8s.io",
                    Kind: "Cluster",
                    UID: "",
                    Causes: [
                        {
                            Type: "FieldValueInvalid",
                            Message: "Invalid value: \"{\\\"machineDetails\\\":{\\\"bootType\\\":\\\"uefi\\\",\\\"imageLookup\\\":{\\\"baseOS\\\":\\\"rocky-9.6\\\",\\\"format\\\":\\\"nkp-{{.BaseOS}}-release-{{.K8sVersion}}-*\\\"},\\\"memorySize\\\":\\\"4Gi\\\",\\\"systemDiskSize\\\":\\\"40Gi\\\",\\\"vcpuSockets\\\":2,\\\"vcpusPerSocket\\\":1},\\\"nodeRegistration\\\":{\\\"ignorePreflightErrors\\\":[\\\"SystemVerification\\\"]}}\": failed validation: \"machineDetails\" field(s) are not specified in the variable schema of variable \"workerConfig\"",
                            Field: "spec.topology.workers.machineDeployments[md-1].variables.overrides[workerConfig]",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 422,
            },
        },
    ]
In [It] at: /home/runner/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/framework/clusterctl/clusterctl_helpers.go:431 @ 07/29/25 04:42:14.002