Skip to content

feat(preflight): Storage container checks for Nutanix #4014

feat(preflight): Storage container checks for Nutanix

feat(preflight): Storage container checks for Nutanix #4014

GitHub Actions / e2e test report failed Jun 4, 2025 in 0s

40 tests run, 30 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-cilium-crs Should create a workload cluster [provider:Nutanix, cni:Cilium, addonStrategy:ClusterResourceSet]

Timed out after 60.190s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:1, cap:1>: 
    admission webhook "preflight.cluster.caren.nutanix.com" denied the request: preflight checks failed due to an internal error
    [
        <*errors.StatusError | 0xc002f37900>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "admission webhook \"preflight.cluster.caren.nutanix.com\" denied the request: preflight checks failed due to an internal error",
                Reason: "InternalError",
                Details: {
                    Name: "",
                    Group: "",
                    Kind: "",
                    UID: "",
                    Causes: [
                        {
                            Type: "FailedPreflightNutanixVMImage",
                            Message: "ImageLookup is not yet supported",
                            Field: "cluster.spec.topology[.name=clusterConfig].value.controlPlane.nutanix.machineDetails",
                        },
                        {
                            Type: "FailedPreflight",
                            Message: "failed to check if storage container named \"k8s\" exists: failed to list storage containers: {\"data\":{\"error\":[{\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.error.AppMessage\",\"message\":\"Failed to get the list of Storage Container due to - Error encountered while getting Storage Container Entities.\",\"severity\":\"ERROR\",\"code\":\"CLU-30301\",\"locale\":\"en_US\"}],\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.error.ErrorResponse\"},\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.config.ListStorageContainersApiResponse\",\"metadata\":{\"flags\":[{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"hasError\",\"value\":true},{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"isPaginated\",\"value\":false},{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"isTruncated\",\"value\":false}],\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.response.ApiResponseMetadata\"}}",
                            Field: "cluster.spec.topology[.name=clusterConfig].value.controlPlane.nutanix",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 500,
            },
        },
    ]
Raw output
[FAILED] Timed out after 60.190s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:1, cap:1>: 
    admission webhook "preflight.cluster.caren.nutanix.com" denied the request: preflight checks failed due to an internal error
    [
        <*errors.StatusError | 0xc002f37900>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "admission webhook \"preflight.cluster.caren.nutanix.com\" denied the request: preflight checks failed due to an internal error",
                Reason: "InternalError",
                Details: {
                    Name: "",
                    Group: "",
                    Kind: "",
                    UID: "",
                    Causes: [
                        {
                            Type: "FailedPreflightNutanixVMImage",
                            Message: "ImageLookup is not yet supported",
                            Field: "cluster.spec.topology[.name=clusterConfig].value.controlPlane.nutanix.machineDetails",
                        },
                        {
                            Type: "FailedPreflight",
                            Message: "failed to check if storage container named \"k8s\" exists: failed to list storage containers: {\"data\":{\"error\":[{\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.error.AppMessage\",\"message\":\"Failed to get the list of Storage Container due to - Error encountered while getting Storage Container Entities.\",\"severity\":\"ERROR\",\"code\":\"CLU-30301\",\"locale\":\"en_US\"}],\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.error.ErrorResponse\"},\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.config.ListStorageContainersApiResponse\",\"metadata\":{\"flags\":[{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"hasError\",\"value\":true},{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"isPaginated\",\"value\":false},{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"isTruncated\",\"value\":false}],\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.response.ApiResponseMetadata\"}}",
                            Field: "cluster.spec.topology[.name=clusterConfig].value.controlPlane.nutanix",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 500,
            },
        },
    ]
In [It] at: /home/runner/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/framework/clusterctl/clusterctl_helpers.go:431 @ 06/04/25 17:11:41.614

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-cilium-helm-addon Should create a workload cluster [provider:Nutanix, cni:Cilium, addonStrategy:HelmAddon]

Timed out after 60.180s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:2, cap:2>: 
    [Operation cannot be fulfilled on nutanixmachinetemplates.infrastructure.cluster.x-k8s.io "nutanix-quick-start-cp-nmt": the object has been modified; please apply your changes to the latest version and try again, admission webhook "preflight.cluster.caren.nutanix.com" denied the request: preflight checks failed due to an internal error]
    [
        <*errors.StatusError | 0xc000ee4460>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Operation cannot be fulfilled on nutanixmachinetemplates.infrastructure.cluster.x-k8s.io \"nutanix-quick-start-cp-nmt\": the object has been modified; please apply your changes to the latest version and try again",
                Reason: "Conflict",
                Details: {
                    Name: "nutanix-quick-start-cp-nmt",
                    Group: "infrastructure.cluster.x-k8s.io",
                    Kind: "nutanixmachinetemplates",
                    UID: "",
                    Causes: nil,
                    RetryAfterSeconds: 0,
                },
                Code: 409,
            },
        },
        <*errors.StatusError | 0xc000df8c80>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "admission webhook \"preflight.cluster.caren.nutanix.com\" denied the request: preflight checks failed due to an internal error",
                Reason: "InternalError",
                Details: {
                    Name: "",
                    Group: "",
                    Kind: "",
                    UID: "",
                    Causes: [
                        {
                            Type: "FailedPreflightNutanixVMImage",
                            Message: "ImageLookup is not yet supported",
                            Field: "cluster.spec.topology[.name=clusterConfig].value.controlPlane.nutanix.machineDetails",
                        },
                        {
                            Type: "FailedPreflight",
                            Message: "failed to check if storage container named \"k8s\" exists: failed to list storage containers: {\"data\":{\"error\":[{\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.error.AppMessage\",\"message\":\"Failed to get the list of Storage Container due to - Error encountered while getting Storage Container Entities.\",\"severity\":\"ERROR\",\"code\":\"CLU-30301\",\"locale\":\"en_US\"}],\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.error.ErrorResponse\"},\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.config.ListStorageContainersApiResponse\",\"metadata\":{\"flags\":[{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"hasError\",\"value\":true},{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"isPaginated\",\"value\":false},{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"isTruncated\",\"value\":false}],\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.response.ApiResponseMetadata\"}}",
                            Field: "cluster.spec.topology[.name=clusterConfig].value.controlPlane.nutanix",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 500,
            },
        },
    ]
Raw output
[FAILED] Timed out after 60.180s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:2, cap:2>: 
    [Operation cannot be fulfilled on nutanixmachinetemplates.infrastructure.cluster.x-k8s.io "nutanix-quick-start-cp-nmt": the object has been modified; please apply your changes to the latest version and try again, admission webhook "preflight.cluster.caren.nutanix.com" denied the request: preflight checks failed due to an internal error]
    [
        <*errors.StatusError | 0xc000ee4460>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Operation cannot be fulfilled on nutanixmachinetemplates.infrastructure.cluster.x-k8s.io \"nutanix-quick-start-cp-nmt\": the object has been modified; please apply your changes to the latest version and try again",
                Reason: "Conflict",
                Details: {
                    Name: "nutanix-quick-start-cp-nmt",
                    Group: "infrastructure.cluster.x-k8s.io",
                    Kind: "nutanixmachinetemplates",
                    UID: "",
                    Causes: nil,
                    RetryAfterSeconds: 0,
                },
                Code: 409,
            },
        },
        <*errors.StatusError | 0xc000df8c80>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "admission webhook \"preflight.cluster.caren.nutanix.com\" denied the request: preflight checks failed due to an internal error",
                Reason: "InternalError",
                Details: {
                    Name: "",
                    Group: "",
                    Kind: "",
                    UID: "",
                    Causes: [
                        {
                            Type: "FailedPreflightNutanixVMImage",
                            Message: "ImageLookup is not yet supported",
                            Field: "cluster.spec.topology[.name=clusterConfig].value.controlPlane.nutanix.machineDetails",
                        },
                        {
                            Type: "FailedPreflight",
                            Message: "failed to check if storage container named \"k8s\" exists: failed to list storage containers: {\"data\":{\"error\":[{\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.error.AppMessage\",\"message\":\"Failed to get the list of Storage Container due to - Error encountered while getting Storage Container Entities.\",\"severity\":\"ERROR\",\"code\":\"CLU-30301\",\"locale\":\"en_US\"}],\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.error.ErrorResponse\"},\"$reserved\":{\"$fv\":\"v4.r0\"},\"$objectType\":\"clustermgmt.v4.config.ListStorageContainersApiResponse\",\"metadata\":{\"flags\":[{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"hasError\",\"value\":true},{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"isPaginated\",\"value\":false},{\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.config.Flag\",\"name\":\"isTruncated\",\"value\":false}],\"$reserved\":{\"$fv\":\"v1.r0\"},\"$objectType\":\"common.v1.response.ApiResponseMetadata\"}}",
                            Field: "cluster.spec.topology[.name=clusterConfig].value.controlPlane.nutanix",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 500,
            },
        },
    ]
In [It] at: /home/runner/go/pkg/mod/sigs.k8s.io/cluster-api/[email protected]/framework/clusterctl/clusterctl_helpers.go:431 @ 06/04/25 17:11:41.598