sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71 stars 64 forks source link

Cadence name=lts / cadence version=2020.1 is not valid for order XXXXXX #273

Closed simoncuceplexe closed 2 years ago

simoncuceplexe commented 2 years ago

We part of the Get Licence step, we got a fatal message

fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/tmp/ansible.97_43q7x/viya4-orders-cli", "license", "--file-path", "/deployments/sas-viya-aks/default/site-config", "--file-name", "license", "9CQSQK", "lts", "2020.1"], "delta": "0:00:01.068394", "end": "2022-08-05 07:25:56.784645", "msg": "non-zero return code", "rc": 1, "start": "2022-08-05 07:25:55.716251", "stderr": "2022/08/05 07:25:55 INFO: no config file found\n2022/08/05 07:25:56 ERROR: asset request failed: {\"version\":2,\"httpStatusCode\":400,\"message\":\"Bad Request\",\"details\":[\"98531c7d-fc13-4586-aa41-77127648d2ec\"],\"errors\":[{\"message\":\"Cadence name=lts / cadence version=2020.1 is not valid for order __\"}]}", "stderrlines": ["2022/08/05 07:25:55 INFO: no config file found", "2022/08/05 07:25:56 ERROR: asset request failed: {\"version\":2,\"httpStatusCode\":400,\"message\":\"Bad Request\",\"details\":[\"98531c7d-fc13-4586-aa41-77127648d2ec\"],\"errors\":[{\"message\":\"Cadence name=lts / cadence version=2020.1 is not valid for order ____.\"}]}"], "stdout": "", "stdout_lines": []}

I have hidden the Order number

terencet3 commented 2 years ago

You need to select the appropriate cadence version according to your software order as seen below:

image

You can specify this inside your ansible-vars.yaml file

Ex: V4_CFG_ORDER_NUMBER: 'xxxxxxxx' #SAS order number V4_CFG_CADENCE_NAME: 'lts' # lts or stable V4_CFG_CADENCE_VERSION: '2022.1' #cadence version

thpang commented 2 years ago

The cadence version in the log shows: cadence version=2020.1 which is not 2022.1 I believe you have a typo. Please verify

simoncuceplexe commented 2 years ago

That was the issue...thanks for the help