Skip to content

PDLC-DP: Unexpected Collection Error (But DP Gathering again in 60 seconds). Error: err=KeyError('status'), type(err)=<class 'KeyError'>

I got this error when deploying CODECO, without the example app. When I deploy the example app, the error goes away and the pod goes to the running state.

│ DP nodes:  True                                                                                                                                          │
│ DP pods:  True                                                                                                                                           │
│ CA pods:  True                                                                                                                                           │
│ All csv files ready, starting component                                                                                                                  │
│ Starting while true loop, iteration number:  0                                                                                                           │
│ Searching for new pods to allocate                                                                                                                       │
│ BEFORE {}                                                                                                                                                │
│ New pods to allocate:  222                                                                                                                               │
│ AFTER {}                                                                                                                                                 │
│ Checking state of the system (getting node info)                                                                                                         │
│ DP [['2025-11-05 13:28:57', 'codeco-almende', '0.067204', '5.892219'], ['2025-11-05 13:28:57', 'steroidpi', '0.083333', '2.200123'], ['2025-11-05 13:28: │
│ Searching for new CA entries                                                                                                                             │
│ 3 [[0.067204, 5.892219], [0.083333, 2.200123], [0.033556, 2.211075]]                                                                                     │
│ Done searching for new CA entries                                                                                                                        │
│ [[0.067204, 5.892219, 100.0, 0.0], [0.083333, 2.200123, 0.0, 0.0], [0.033556, 2.211075, 23.825126409683186, 0.0]]                                        │
│ 0 222                                                                                                                                                    │
│ 0 222                                                                                                                                                    │
│ To inference                                                                                                                                             │
│ Coming from normal inference                                                                                                                             │
│ Getting CRD file:  acm-swm-app he-codeco-acm                                                                                                             │
│ Exception when calling CustomObjectsApi->get_namespaced_custom_object: (404)                                                                             │
│ Reason: Not Found                                                                                                                                        │
│ HTTP response headers: HTTPHeaderDict({'Audit-Id': '79284966-192e-429f-9c17-92437141a5e7', 'Cache-Control': 'no-cache, private', 'Content-Type': 'applic │
│ HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"applications.qos-scheduler.siemens.com \"acm-swm-app\ │
│                                                                                                                                                          │
│                                                                                                                                                          │
│                                                                                                                                                          │
│ CRD obtained on Read:                                                                                                                                    │
│ None                                                                                                                                                     │
│ {'codeco-almende': 14.312343834692824, 'steroidpi': 100.0, 'taart5': 0.0}                                                                                │
│ An unexpected error occurred: 'NoneType' object is not subscriptable