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

"kustomize - Generate deployment manifest" task fails in orders containing SAS Model Risk Management #126

Closed jkmin96 closed 3 years ago

jkmin96 commented 3 years ago

When I tried to deploy an order which including SAS Model Risk Management, I got below error:

"msg": "non-zero return code",
    "rc": 1,
    "start": "2021-08-09 12:13:23.185705",
    "stderr": "Error: failed to apply json patch '- op: add\n  path: /spec/volumeClaimTemplates/0/spec/storageClassName\n  value: sas': add operation does not apply: doc is missing path: \"/spec/volumeClaimTemplates/0/spec/storageClassName\": missing value",
    "stderr_lines": [
        "Error: failed to apply json patch '- op: add",
        "  path: /spec/volumeClaimTemplates/0/spec/storageClassName",
        "  value: sas': add operation does not apply: doc is missing path: \"/spec/volumeClaimTemplates/0/spec/storageClassName\": missing value"
    ],

When I checked opensource K8S deployment including SAS Model Risk Management, I see this new statefulset was created:

bash-4.4$ k -n trs get statefulsets | grep risk
sas-risk-cirrus-search      1/1     33h

And these PVCs were added:

sas-risk-cirrus-builder                               Bound    pvc-174a58a0-f186-486c-b581-ae704fd3ae3e   2Gi        RWX            nfs-client     33h
sas-risk-cirrus-search-data                           Bound    pvc-978d768f-aac0-44f7-9d18-d342e62df812   2Gi        RWX            nfs-client     33h