Skip to content

feat: Nutanix VM image preflight check #3973

feat: Nutanix VM image preflight check

feat: Nutanix VM image preflight check #3973

GitHub Actions / e2e test report failed May 30, 2025 in 0s

16 tests run, 6 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 Docker Cilium ClusterResourceSet topology-cilium-crs Should create a workload cluster [provider:Docker, Serial, cni:Cilium, addonStrategy:ClusterResourceSet]

Timed out after 60.080s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:3, cap:4>: 
    [Operation cannot be fulfilled on dockerclustertemplates.infrastructure.cluster.x-k8s.io "docker-quick-start-cluster": the object has been modified; please apply your changes to the latest version and try again, Operation cannot be fulfilled on kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io "docker-quick-start-control-plane": the object has been modified; please apply your changes to the latest version and try again, Internal error occurred: failed calling webhook "cluster-defaulter.caren.nutanix.com": failed to call webhook: Post "https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s": dial tcp 10.96.192.72:443: connect: connection refused]
    [
        <*errors.StatusError | 0xc000661cc0>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Operation cannot be fulfilled on dockerclustertemplates.infrastructure.cluster.x-k8s.io \"docker-quick-start-cluster\": the object has been modified; please apply your changes to the latest version and try again",
                Reason: "Conflict",
                Details: {
                    Name: "docker-quick-start-cluster",
                    Group: "infrastructure.cluster.x-k8s.io",
                    Kind: "dockerclustertemplates",
                    UID: "",
                    Causes: nil,
                    RetryAfterSeconds: 0,
                },
                Code: 409,
            },
        },
        <*errors.StatusError | 0xc000f26f00>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Operation cannot be fulfilled on kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io \"docker-quick-start-control-plane\": the object has been modified; please apply your changes to the latest version and try again",
                Reason: "Conflict",
                Details: {
                    Name: "docker-quick-start-control-plane",
                    Group: "controlplane.cluster.x-k8s.io",
                    Kind: "kubeadmcontrolplanetemplates",
                    UID: "",
                    Causes: nil,
                    RetryAfterSeconds: 0,
                },
                Code: 409,
            },
        },
        <*errors.StatusError | 0xc0010b1c20>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Internal error occurred: failed calling webhook \"cluster-defaulter.caren.nutanix.com\": failed to call webhook: Post \"https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s\": dial tcp 10.96.192.72:443: connect: connection refused",
                Reason: "InternalError",
                Details: {
                    Name: "",
                    Group: "",
                    Kind: "",
                    UID: "",
                    Causes: [
                        {
                            Type: "",
                            Message: "failed calling webhook \"cluster-defaulter.caren.nutanix.com\": failed to call webhook: Post \"https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s\": dial tcp 10.96.192.72:443: connect: connection refused",
                            Field: "",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 500,
            },
        },
    ]
Raw output
[FAILED] Timed out after 60.080s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:3, cap:4>: 
    [Operation cannot be fulfilled on dockerclustertemplates.infrastructure.cluster.x-k8s.io "docker-quick-start-cluster": the object has been modified; please apply your changes to the latest version and try again, Operation cannot be fulfilled on kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io "docker-quick-start-control-plane": the object has been modified; please apply your changes to the latest version and try again, Internal error occurred: failed calling webhook "cluster-defaulter.caren.nutanix.com": failed to call webhook: Post "https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s": dial tcp 10.96.192.72:443: connect: connection refused]
    [
        <*errors.StatusError | 0xc000661cc0>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Operation cannot be fulfilled on dockerclustertemplates.infrastructure.cluster.x-k8s.io \"docker-quick-start-cluster\": the object has been modified; please apply your changes to the latest version and try again",
                Reason: "Conflict",
                Details: {
                    Name: "docker-quick-start-cluster",
                    Group: "infrastructure.cluster.x-k8s.io",
                    Kind: "dockerclustertemplates",
                    UID: "",
                    Causes: nil,
                    RetryAfterSeconds: 0,
                },
                Code: 409,
            },
        },
        <*errors.StatusError | 0xc000f26f00>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Operation cannot be fulfilled on kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io \"docker-quick-start-control-plane\": the object has been modified; please apply your changes to the latest version and try again",
                Reason: "Conflict",
                Details: {
                    Name: "docker-quick-start-control-plane",
                    Group: "controlplane.cluster.x-k8s.io",
                    Kind: "kubeadmcontrolplanetemplates",
                    UID: "",
                    Causes: nil,
                    RetryAfterSeconds: 0,
                },
                Code: 409,
            },
        },
        <*errors.StatusError | 0xc0010b1c20>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Internal error occurred: failed calling webhook \"cluster-defaulter.caren.nutanix.com\": failed to call webhook: Post \"https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s\": dial tcp 10.96.192.72:443: connect: connection refused",
                Reason: "InternalError",
                Details: {
                    Name: "",
                    Group: "",
                    Kind: "",
                    UID: "",
                    Causes: [
                        {
                            Type: "",
                            Message: "failed calling webhook \"cluster-defaulter.caren.nutanix.com\": failed to call webhook: Post \"https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s\": dial tcp 10.96.192.72:443: connect: connection refused",
                            Field: "",
                        },
                    ],
                    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 @ 05/30/25 16:35:07.096

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

Timed out after 60.058s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:1, cap:1>: 
    Internal error occurred: failed calling webhook "cluster-defaulter.caren.nutanix.com": failed to call webhook: Post "https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s": dial tcp 10.96.192.72:443: connect: connection refused
    [
        <*errors.StatusError | 0xc001843cc0>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Internal error occurred: failed calling webhook \"cluster-defaulter.caren.nutanix.com\": failed to call webhook: Post \"https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s\": dial tcp 10.96.192.72:443: connect: connection refused",
                Reason: "InternalError",
                Details: {
                    Name: "",
                    Group: "",
                    Kind: "",
                    UID: "",
                    Causes: [
                        {
                            Type: "",
                            Message: "failed calling webhook \"cluster-defaulter.caren.nutanix.com\": failed to call webhook: Post \"https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s\": dial tcp 10.96.192.72:443: connect: connection refused",
                            Field: "",
                        },
                    ],
                    RetryAfterSeconds: 0,
                },
                Code: 500,
            },
        },
    ]
Raw output
[FAILED] Timed out after 60.058s.
Failed to apply the cluster template
Expected success, but got an error:
    <errors.aggregate | len:1, cap:1>: 
    Internal error occurred: failed calling webhook "cluster-defaulter.caren.nutanix.com": failed to call webhook: Post "https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s": dial tcp 10.96.192.72:443: connect: connection refused
    [
        <*errors.StatusError | 0xc001843cc0>{
            ErrStatus: {
                TypeMeta: {Kind: "Status", APIVersion: "v1"},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "Internal error occurred: failed calling webhook \"cluster-defaulter.caren.nutanix.com\": failed to call webhook: Post \"https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s\": dial tcp 10.96.192.72:443: connect: connection refused",
                Reason: "InternalError",
                Details: {
                    Name: "",
                    Group: "",
                    Kind: "",
                    UID: "",
                    Causes: [
                        {
                            Type: "",
                            Message: "failed calling webhook \"cluster-defaulter.caren.nutanix.com\": failed to call webhook: Post \"https://cluster-api-runtime-extensions-nutanix-admission.caren-system.svc:443/mutate-v1beta1-cluster?timeout=10s\": dial tcp 10.96.192.72:443: connect: connection refused",
                            Field: "",
                        },
                    ],
                    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 @ 05/30/25 16:36:10.873