Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31915

Validate ES version parameter in test compat job

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.0, 2021.39
    • Component/s: CI/CD

      Description

      When the running the ES test compat job with ELASTICSEARCH_IMAGE_TAG=8.7 for instance, the deployment step fails with the error below:

      10:51:08  + helmfile --helm-binary /usr/bin/helm3 --file ci/helm/helmfile.yaml deps
      10:51:08  Adding repo bitnami https://raw.githubusercontent.com/bitnami/charts/d2a3b454f8bb808a493d417199d3e2e09b5c650c/bitnami
      10:51:09  "bitnami" has been added to your repositories
      10:51:09  
      10:51:09  Adding repo elastic https://helm.elastic.co/
      10:51:09  "elastic" has been added to your repositories
      10:51:09  
      10:51:09  Adding repo opensearch https://opensearch-project.github.io/helm-charts/
      10:51:10  "opensearch" has been added to your repositories
      10:51:10  
      10:51:10  Adding repo nuxeo https://chartmuseum.platform.dev.nuxeo.com/
      10:51:10  "nuxeo" has been added to your repositories
      10:51:10  
      10:51:10  in ci/helm/helmfile.yaml: [exit status 1
      10:51:10  
      10:51:10  COMMAND:
      10:51:10    /usr/bin/helm3 template --debug=false --output-dir=/tmp/chartify2803570117/platform-nuxeo-unit-tests-30-mongodb-es/elasticsearch8/elasticsearch/helmx.1.rendered --include-crds elasticsearch8 /tmp/chartify2803570117/platform-nuxeo-unit-tests-30-mongodb-es/elasticsearch8/elasticsearch -f /tmp/chartify2803570117/platform-nuxeo-unit-tests-30-mongodb-es/elasticsearch8/elasticsearch/values.yaml -f /tmp/helmfile686477367/platform-nuxeo-unit-tests-30-mongodb-es-elasticsearch8-values-75b9c799b5 -f /tmp/helmfile3495801745/platform-nuxeo-unit-tests-30-mongodb-es-elasticsearch8-values-659b554c46 -f /tmp/helmfile1134434766/platform-nuxeo-unit-tests-30-mongodb-es-elasticsearch8-values-fc55c9585 --namespace platform-nuxeo-unit-tests-30-mongodb-es
      10:51:10  
      10:51:10  OUTPUT:
      10:51:10    Error: template: elasticsearch/templates/statefulset.yaml:15:24: executing "elasticsearch/templates/statefulset.yaml" at <include "elasticsearch.esMajorVersion" .>: error calling include: template: elasticsearch/templates/_helpers.tpl:83:57: executing "elasticsearch.esMajorVersion" at <".">: wrong type for value; expected string; got float64
      10:51:10    Use --debug flag to render out invalid YAML]
      

      The human error to supply this parameter here is because the job description logs the major.minor version. While keeping the description, validating the input parameters may be interesting.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: