nds-org / workbench-webui

Web UI for the Workbench platform
0 stars 1 forks source link

Error adding certain applications from the catalog (e.g. CHORDS) #22

Closed bodom0015 closed 1 year ago

bodom0015 commented 1 year ago

For example, when adding CHORDS we get back the following response:

{
  "error": "Failed to create userapp: <class 'KeyError'> 'value'"
}

Request payload:

{
  "id": "",
  "name": "CHORDS",
  "key": "chords",
  "status": "stopped",
  "services": [
    {
      "id": "",
      "stack": "chords",
      "service": "chords",
      "status": "",
      "volumeMounts": {},
      "config": {},
      "resourceLimits": {
        "cpuMax": "500",
        "cpuDefault": "100",
        "memMax": "1000",
        "memDefault": "50"
      }
    },
    {
      "id": "",
      "stack": "chords",
      "service": "mysql",
      "status": "",
      "volumeMounts": {},
      "config": {},
      "resourceLimits": {
        "cpuMax": "500",
        "cpuDefault": "100",
        "memMax": "1000",
        "memDefault": "50"
      }
    },
    {
      "id": "",
      "stack": "chords",
      "service": "influx",
      "status": "",
      "volumeMounts": {},
      "config": {},
      "resourceLimits": {
        "cpuMax": "500",
        "cpuDefault": "100",
        "memMax": "1000",
        "memDefault": "50"
      }
    }
  ]
}
bodom0015 commented 1 year ago

Fixed in release 2.1.0: https://github.com/nds-org/workbench-apiserver-python/commit/381254c0b51c8c97d559e45be15b0850b614ec82