Skip to content

feat: Add preflight checks framework #3941

feat: Add preflight checks framework

feat: Add preflight checks framework #3941

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

40 tests run, 31 passed, 8 skipped, 1 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 300.000s.
HelmReleaseProxy quick-start-woczkz/nutanix-csi-storage-quick-start-iuox8ych19xgyodak1zfqxd5xg6z8wh failed to become ready and have up to date revision: ready condition = &{Type:Ready Status:False Severity:Info LastTransitionTime:2025-05-22 23:58:23 +0000 UTC Reason:HelmReleasePending Message:Helm release is in a pending state: pending-install}, revision = 1, full object is:
&{TypeMeta:{Kind:HelmReleaseProxy APIVersion:addons.cluster.x-k8s.io/v1alpha1} ObjectMeta:{Name:nutanix-csi-storage-quick-start-iuox8ych19xgyodak1zfqxd5xg6z8wh GenerateName:nutanix-csi-storage-quick-start-iuox8ych19xgyodak1zfqxd5xgyxx0gw760kufur1232yzj2eqq- Namespace:quick-start-woczkz SelfLink: UID:1439c37a-caa2-4317-b639-484d4eea8f97 ResourceVersion:6297 Generation:1 CreationTimestamp:2025-05-22 23:53:06 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[cluster.x-k8s.io/cluster-name:quick-start-iuox8ych19xgyodak1zfqxd5xgyxx0gw760kufur1232yzj2eqq helmreleaseproxy.addons.cluster.x-k8s.io/helmchartproxy-name:nutanix-csi-0196fa63-a3e8-7655-8049-a816bf97b4cc] Annotations:map[] OwnerReferences:[{APIVersion:addons.cluster.x-k8s.io/v1alpha1 Kind:HelmChartProxy Name:nutanix-csi-0196fa63-a3e8-7655-8049-a816bf97b4cc UID:b368e23c-6864-497a-a3ed-823b6603a3b4 Controller:0xc0015f5157 BlockOwnerDeletion:0xc0015f5156}] Finalizers:[helmreleaseproxy.addons.cluster.x-k8s.io] ManagedFields:[{Manager:manager Operation:Update APIVersion:addons.cluster.x-k8s.io/v1alpha1 Time:2025-05-22 23:53:07 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:metadata":{"f:finalizers":{".":{},"v:\"helmreleaseproxy.addons.cluster.x-k8s.io\"":{}},"f:generateName":{},"f:labels":{".":{},"f:cluster.x-k8s.io/cluster-name":{},"f:helmreleaseproxy.addons.cluster.x-k8s.io/helmchartproxy-name":{}},"f:ownerReferences":{".":{},"k:{\"uid\":\"b368e23c-6864-497a-a3ed-823b6603a3b4\"}":{}}},"f:spec":{".":{},"f:chartName":{},"f:clusterRef":{},"f:namespace":{},"f:options":{".":{},"f:enableClientCache":{},"f:install":{".":{},"f:createNamespace":{}},"f:timeout":{},"f:upgrade":{".":{},"f:maxHistory":{}}},"f:releaseName":{},"f:repoURL":{},"f:tlsConfig":{".":{},"f:caSecret":{}},"f:values":{},"f:version":{}}} Subresource:} {Manager:manager Operation:Update APIVersion:addons.cluster.x-k8s.io/v1alpha1 Time:2025-05-22 23:58:23 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:status":{".":{},"f:conditions":{},"f:observedGeneration":{},"f:revision":{},"f:status":{}}} Subresource:status}]} Spec:{ClusterRef:{Kind:Cluster Namespace:quick-start-woczkz Name:quick-start-iuox8ych19xgyodak1zfqxd5xgyxx0gw760kufur1232yzj2eqq UID: APIVersion:cluster.x-k8s.io/v1beta1 ResourceVersion: FieldPath:} ChartName:nutanix-csi-storage RepoURL:oci://helm-repository.caren-system.svc/charts ReleaseName:nutanix-csi ReleaseNamespace:ntnx-system Version:3.3.0 Values:# Disable creating the Prism Central credentials Secret, the Secret will be created by the handler.
createPrismCentralSecret: false
# Disable creating the Prism Element credentials Secret, it won't be used the CSI driver as configured here.
createSecret: false
pcSecretName: nutanix-csi-credentials

tolerations:
  - key: CriticalAddonsOnly
    operator: Exists
  - effect: NoExecute
    operator: Exists
    tolerationSeconds: 300
  - effect: NoSchedule
    operator: Exists ReconcileStrategy: Options:{DisableHooks:false Wait:false WaitForJobs:false DependencyUpdate:false Timeout:&Duration{Duration:10m0s,} SkipCRDs:false SubNotes:false DisableOpenAPIValidation:false Atomic:false Install:{CreateNamespace:true IncludeCRDs:false} Upgrade:{Force:false ResetValues:false ReuseValues:false ResetThenReuseValues:false Recreate:false MaxHistory:10 CleanupOnFail:false} Uninstall:<nil> EnableClientCache:false} Credentials:<nil> TLSConfig:0xc0017ddaf0} Status:{Conditions:[{Type:Ready Status:False Severity:Info LastTransitionTime:2025-05-22 23:58:23 +0000 UTC Reason:HelmReleasePending Message:Helm release is in a pending state: pending-install} {Type:ClusterAvailable Status:True Severity: LastTransitionTime:2025-05-22 23:53:07 +0000 UTC Reason: Message:} {Type:HelmReleaseReady Status:False Severity:Info LastTransitionTime:2025-05-22 23:58:23 +0000 UTC Reason:HelmReleasePending Message:Helm release is in a pending state: pending-install}] Status:pending-install Revision:1 ObservedGeneration:1}}
`
Expected
    <bool>: false
to be true
Raw output
[FAILED] Timed out after 300.000s.
HelmReleaseProxy quick-start-woczkz/nutanix-csi-storage-quick-start-iuox8ych19xgyodak1zfqxd5xg6z8wh failed to become ready and have up to date revision: ready condition = &{Type:Ready Status:False Severity:Info LastTransitionTime:2025-05-22 23:58:23 +0000 UTC Reason:HelmReleasePending Message:Helm release is in a pending state: pending-install}, revision = 1, full object is:
&{TypeMeta:{Kind:HelmReleaseProxy APIVersion:addons.cluster.x-k8s.io/v1alpha1} ObjectMeta:{Name:nutanix-csi-storage-quick-start-iuox8ych19xgyodak1zfqxd5xg6z8wh GenerateName:nutanix-csi-storage-quick-start-iuox8ych19xgyodak1zfqxd5xgyxx0gw760kufur1232yzj2eqq- Namespace:quick-start-woczkz SelfLink: UID:1439c37a-caa2-4317-b639-484d4eea8f97 ResourceVersion:6297 Generation:1 CreationTimestamp:2025-05-22 23:53:06 +0000 UTC DeletionTimestamp:<nil> DeletionGracePeriodSeconds:<nil> Labels:map[cluster.x-k8s.io/cluster-name:quick-start-iuox8ych19xgyodak1zfqxd5xgyxx0gw760kufur1232yzj2eqq helmreleaseproxy.addons.cluster.x-k8s.io/helmchartproxy-name:nutanix-csi-0196fa63-a3e8-7655-8049-a816bf97b4cc] Annotations:map[] OwnerReferences:[{APIVersion:addons.cluster.x-k8s.io/v1alpha1 Kind:HelmChartProxy Name:nutanix-csi-0196fa63-a3e8-7655-8049-a816bf97b4cc UID:b368e23c-6864-497a-a3ed-823b6603a3b4 Controller:0xc0015f5157 BlockOwnerDeletion:0xc0015f5156}] Finalizers:[helmreleaseproxy.addons.cluster.x-k8s.io] ManagedFields:[{Manager:manager Operation:Update APIVersion:addons.cluster.x-k8s.io/v1alpha1 Time:2025-05-22 23:53:07 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:metadata":{"f:finalizers":{".":{},"v:\"helmreleaseproxy.addons.cluster.x-k8s.io\"":{}},"f:generateName":{},"f:labels":{".":{},"f:cluster.x-k8s.io/cluster-name":{},"f:helmreleaseproxy.addons.cluster.x-k8s.io/helmchartproxy-name":{}},"f:ownerReferences":{".":{},"k:{\"uid\":\"b368e23c-6864-497a-a3ed-823b6603a3b4\"}":{}}},"f:spec":{".":{},"f:chartName":{},"f:clusterRef":{},"f:namespace":{},"f:options":{".":{},"f:enableClientCache":{},"f:install":{".":{},"f:createNamespace":{}},"f:timeout":{},"f:upgrade":{".":{},"f:maxHistory":{}}},"f:releaseName":{},"f:repoURL":{},"f:tlsConfig":{".":{},"f:caSecret":{}},"f:values":{},"f:version":{}}} Subresource:} {Manager:manager Operation:Update APIVersion:addons.cluster.x-k8s.io/v1alpha1 Time:2025-05-22 23:58:23 +0000 UTC FieldsType:FieldsV1 FieldsV1:{"f:status":{".":{},"f:conditions":{},"f:observedGeneration":{},"f:revision":{},"f:status":{}}} Subresource:status}]} Spec:{ClusterRef:{Kind:Cluster Namespace:quick-start-woczkz Name:quick-start-iuox8ych19xgyodak1zfqxd5xgyxx0gw760kufur1232yzj2eqq UID: APIVersion:cluster.x-k8s.io/v1beta1 ResourceVersion: FieldPath:} ChartName:nutanix-csi-storage RepoURL:oci://helm-repository.caren-system.svc/charts ReleaseName:nutanix-csi ReleaseNamespace:ntnx-system Version:3.3.0 Values:# Disable creating the Prism Central credentials Secret, the Secret will be created by the handler.
createPrismCentralSecret: false
# Disable creating the Prism Element credentials Secret, it won't be used the CSI driver as configured here.
createSecret: false
pcSecretName: nutanix-csi-credentials

tolerations:
  - key: CriticalAddonsOnly
    operator: Exists
  - effect: NoExecute
    operator: Exists
    tolerationSeconds: 300
  - effect: NoSchedule
    operator: Exists ReconcileStrategy: Options:{DisableHooks:false Wait:false WaitForJobs:false DependencyUpdate:false Timeout:&Duration{Duration:10m0s,} SkipCRDs:false SubNotes:false DisableOpenAPIValidation:false Atomic:false Install:{CreateNamespace:true IncludeCRDs:false} Upgrade:{Force:false ResetValues:false ReuseValues:false ResetThenReuseValues:false Recreate:false MaxHistory:10 CleanupOnFail:false} Uninstall:<nil> EnableClientCache:false} Credentials:<nil> TLSConfig:0xc0017ddaf0} Status:{Conditions:[{Type:Ready Status:False Severity:Info LastTransitionTime:2025-05-22 23:58:23 +0000 UTC Reason:HelmReleasePending Message:Helm release is in a pending state: pending-install} {Type:ClusterAvailable Status:True Severity: LastTransitionTime:2025-05-22 23:53:07 +0000 UTC Reason: Message:} {Type:HelmReleaseReady Status:False Severity:Info LastTransitionTime:2025-05-22 23:58:23 +0000 UTC Reason:HelmReleasePending Message:Helm release is in a pending state: pending-install}] Status:pending-install Revision:1 ObservedGeneration:1}}
`
Expected
    <bool>: false
to be true
In [It] at: /home/runner/_work/cluster-api-runtime-extensions-nutanix/cluster-api-runtime-extensions-nutanix/test/e2e/helmreleaseproxy_helpers.go:60 @ 05/23/25 00:03:29.473