Skip to content

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

feat(preflight): Storage container checks for Nutanix

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

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.242s.
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 | 0xc00109dc20>{
            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: "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.242s.
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 | 0xc00109dc20>{
            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: "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 22:31:31.269

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.343s.
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 | 0xc0005eba40>{
            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: "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.343s.
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 | 0xc0005eba40>{
            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: "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 22:31:31.382