-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Continuous Integration
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #94, nxplatform #95
-
Story Points:1
We notice some deployments error since the Kubernetes cluster used for the Platform CI has been upgraded to 1.25.
The error we can get are during the deployment step and report a deprecated PodDisruptionBudget version usage:
[2023-08-12T01:07:02.024Z] FAILED RELEASES: [2023-08-12T01:07:02.024Z] NAME [2023-08-12T01:07:02.024Z] elasticsearch [2023-08-12T01:07:02.024Z] in ci/helm/helmfile.yaml: failed processing release elasticsearch: command "/usr/bin/helm3" exited with non-zero status: [2023-08-12T01:07:02.024Z] [2023-08-12T01:07:02.024Z] PATH: [2023-08-12T01:07:02.024Z] /usr/bin/helm3 [2023-08-12T01:07:02.024Z] [2023-08-12T01:07:02.024Z] ARGS: [2023-08-12T01:07:02.024Z] 0: /usr/bin/helm3 (14 bytes) [2023-08-12T01:07:02.024Z] 1: upgrade (7 bytes) [2023-08-12T01:07:02.024Z] 2: --install (9 bytes) [2023-08-12T01:07:02.024Z] 3: --reset-values (14 bytes) [2023-08-12T01:07:02.024Z] 4: elasticsearch (13 bytes) [2023-08-12T01:07:02.024Z] 5: elastic/elasticsearch (21 bytes) [2023-08-12T01:07:02.024Z] 6: --version (9 bytes) [2023-08-12T01:07:02.024Z] 7: 7.9.2 (5 bytes) [2023-08-12T01:07:02.024Z] 8: --wait (6 bytes) [2023-08-12T01:07:02.024Z] 9: --timeout (9 bytes) [2023-08-12T01:07:02.024Z] 10: 600s (4 bytes) [2023-08-12T01:07:02.024Z] 11: --create-namespace (18 bytes) [2023-08-12T01:07:02.024Z] 12: --namespace (11 bytes) [2023-08-12T01:07:02.024Z] 13: nuxeo-rest-api-tests-master-2316 (32 bytes) [2023-08-12T01:07:02.024Z] 14: --values (8 bytes) [2023-08-12T01:07:02.024Z] 15: /tmp/helmfile943480204/nuxeo-rest-api-tests-master-2316-elasticsearch-values-5f6c84d97f (87 bytes) [2023-08-12T01:07:02.024Z] 16: --values (8 bytes) [2023-08-12T01:07:02.024Z] 17: /tmp/helmfile3477497444/nuxeo-rest-api-tests-master-2316-elasticsearch-values-c8c6b45ff (87 bytes) [2023-08-12T01:07:02.024Z] 18: --history-max (13 bytes) [2023-08-12T01:07:02.024Z] 19: 10 (2 bytes) [2023-08-12T01:07:02.024Z] [2023-08-12T01:07:02.024Z] ERROR: [2023-08-12T01:07:02.024Z] exit status 1 [2023-08-12T01:07:02.024Z] [2023-08-12T01:07:02.024Z] EXIT STATUS [2023-08-12T01:07:02.024Z] 1 [2023-08-12T01:07:02.024Z] [2023-08-12T01:07:02.024Z] STDERR: [2023-08-12T01:07:02.024Z] Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1" [2023-08-12T01:07:02.024Z] [2023-08-12T01:07:02.024Z] COMBINED OUTPUT: [2023-08-12T01:07:02.024Z] Release "elasticsearch" does not exist. Installing it now. [2023-08-12T01:07:02.024Z] Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
There's the same kind of error for CronJob:
[2023-08-22T12:52:21.244Z] FAILED RELEASES: [2023-08-22T12:52:21.244Z] NAME [2023-08-22T12:52:21.244Z] aws-credentials [2023-08-22T12:52:21.244Z] in ./helmfile.yaml: failed processing release aws-credentials: command "/usr/bin/helm3" exited with non-zero status: [2023-08-22T12:52:21.245Z] [2023-08-22T12:52:21.245Z] PATH: [2023-08-22T12:52:21.245Z] /usr/bin/helm3 [2023-08-22T12:52:21.245Z] [2023-08-22T12:52:21.245Z] ARGS: [2023-08-22T12:52:21.245Z] 0: /usr/bin/helm3 (14 bytes) [2023-08-22T12:52:21.245Z] 1: upgrade (7 bytes) [2023-08-22T12:52:21.245Z] 2: --install (9 bytes) [2023-08-22T12:52:21.245Z] 3: --reset-values (14 bytes) [2023-08-22T12:52:21.245Z] 4: aws-credentials (15 bytes) [2023-08-22T12:52:21.245Z] 5: charts/aws-credentials (22 bytes) [2023-08-22T12:52:21.245Z] 6: --wait (6 bytes) [2023-08-22T12:52:21.245Z] 7: --timeout (9 bytes) [2023-08-22T12:52:21.245Z] 8: 480s (4 bytes) [2023-08-22T12:52:21.245Z] 9: --atomic (8 bytes) [2023-08-22T12:52:21.245Z] 10: --create-namespace (18 bytes) [2023-08-22T12:52:21.245Z] 11: --namespace (11 bytes) [2023-08-22T12:52:21.245Z] 12: platform-staging (16 bytes) [2023-08-22T12:52:21.245Z] 13: --values (8 bytes) [2023-08-22T12:52:21.245Z] 14: /tmp/helmfile3324739933/platform-staging-aws-credentials-values-77f68b8d88 (74 bytes) [2023-08-22T12:52:21.245Z] 15: --history-max (13 bytes) [2023-08-22T12:52:21.245Z] 16: 10 (2 bytes) [2023-08-22T12:52:21.245Z] [2023-08-22T12:52:21.245Z] ERROR: [2023-08-22T12:52:21.245Z] exit status 1 [2023-08-22T12:52:21.245Z] [2023-08-22T12:52:21.245Z] EXIT STATUS [2023-08-22T12:52:21.245Z] 1 [2023-08-22T12:52:21.245Z] [2023-08-22T12:52:21.245Z] STDERR: [2023-08-22T12:52:21.245Z] Error: UPGRADE FAILED: unable to recognize "": no matches for kind "CronJob" in version "batch/v1beta1" [2023-08-22T12:52:21.245Z] [2023-08-22T12:52:21.245Z] COMBINED OUTPUT: [2023-08-22T12:52:21.245Z] Error: UPGRADE FAILED: unable to recognize "": no matches for kind "CronJob" in version "batch/v1beta1"
- is related to
-
NXBT-3753 Adjust resources in Platform CI builds
- Resolved