kubescape / node-agent

Apache License 2.0
7 stars 6 forks source link

ApplicationProfileManager - failed to get existing application profile #344

Open zhuw726 opened 3 weeks ago

zhuw726 commented 3 weeks ago

Description

Got few error as below:

{"level":"warn","ts":"2024-08-20T23:03:23Z","msg":"failed to filter SBOM","container ID":"5e5060888cac1ba2a38_b2fdba7d20061ab0","k8s workload":"NAMESPACE/APPLICATION002-pj8jj/tools","error":"failed to get SBOM from storage: sbomsyfts.spdx.softwarecomposition.kubescape.io \"docker.AABBCC.com-APPCATION010-hooks-25-7b35a7\" not found"}
{"level":"warn","ts":"2024-08-20T23:06:27Z","msg":"failed to filter SBOM","container ID":"4550bbc4348ccd08619a64021f5db601","k8s workload":"NAMESPACE/APPLICATION003-679f4d8984-m7gsz/init-whisperctl","error":"failed to get SBOM from storage: sbomsyfts.spdx.softwarecomposition.kubescape.io \"docker.AABBCC.com-cDDDD-1.1.3-02e70c\" not found"}
{"level":"warn","ts":"2024-08-20T23:55:46Z","msg":"failed to filter SBOM","container ID":"47c18f8fcd59a9c01c66d55972e04278c","k8s workload":"NAMESPACE/APPLICATION-any-7cc7cff67b-m52r5/istio-validation","error":"failed to get SBOM from storage: sbomsyfts.spdx.softwarecomposition.kubescape.io \"docker-upstream.AABBCC.com-istio-proxyv2-1.22.2-distroless-629576\" not found"}

{"level":"debug","ts":"2024-08-20T23:03:57Z","msg":"ApplicationProfileManager - failed to patch application profile, will get existing one and adjust patch","error":"patch application profile: the server rejected our request due to an error in our request","slug":"replicaset-APPLICATION002-596fdd79fc","container index":1,"container ID":"d49b2bd50ed8e7ed0d62a0e0c192","k8s workload":"NAMESPACE/APPLICATION002-596fdd79fc-6m89w/init-CCCC"}
{"level":"error","ts":"2024-08-21T00:25:45Z","msg":"ApplicationProfileManager - failed to patch application profile","error":"patch application profile: Timeout: request did not complete within requested timeout - context deadline exceeded","slug":"replicaset-APPLICATION004-545d7cb9f6","container index":1,"container ID":"a9f1997e2e755cb0344baced5d9b68559d8163d00ecd1b2e079d8989427ef876","k8s workload":"NAMESPACE/APPLICATION004-545d7cb9f6-ltd4r/app"}
{"level":"debug","ts":"2024-08-20T23:05:26Z","msg":"NetworkManager - failed to patch network neighborhood, will get existing one and adjust patch","error":"patch application neighborhood: the server rejected our request due to an error in our request","slug":"replicaset-APPLICATION005-any-6995c7cd68","container index":4,"container ID":"168da2309d2d59f0e66b","k8s workload":"NAMESPACE/APPLICATION005-any-6995c7cd68-wqm5p/init-BBBBBB"}

{"level":"error","ts":"2024-08-20T23:47:27Z","msg":"ApplicationProfileManager - failed to get existing application profile","error":"the server is currently unable to handle the request (get applicationprofiles.spdx.softwarecomposition.kubescape.io replicaset-APPLICATION006-any-79bd76f4dc)","slug":"replicaset-APPLICATION006-any-79bd76f4dc","container index":3,"container ID":"42f32ea4cc298ec2","k8s workload":"NAMESPACE/APPLICATION006-any-79bd76f4dc-rwcml/init-AAAAAA"}
{"level":"debug","ts":"2024-08-20T23:47:27Z","msg":"ApplicationProfileManager - failed to patch application profile, will get existing one and adjust patch","error":"patch application profile: the server is currently unable to handle the request (patch applicationprofiles.spdx.softwarecomposition.kubescape.io replicaset-APPLICATION006-any-79bd76f4dc)","slug":"replicaset-APPLICATION006-any-79bd76f4dc","container index":6,"container ID":"b2831ea8daac","k8s workload":"NAMESPACE/APPLICATION006-any-79bd76f4dc-rwcml/init-CCCC"}

Environment

OS: AmazonLinux2 Version: 0.2.105

Steps To Reproduce

helm repo add kubescape https://kubescape.github.io/helm-charts/ ;
helm repo update ;
helm upgrade --install kubescape kubescape/kubescape-operator -n kubescape --create-namespace --set clusterName=kubectl config current-context --set capabilities.continuousScan=enable --set kubevuln.verbose=true

Expected behavior

No error appear.

Actual Behavior

{"level":"warn","ts":"2024-08-20T23:03:23Z","msg":"failed to filter SBOM","container ID":"5e5060888cac1ba2a38_b2fdba7d20061ab0","k8s workload":"NAMESPACE/APPLICATION002-pj8jj/tools","error":"failed to get SBOM from storage: sbomsyfts.spdx.softwarecomposition.kubescape.io \"docker.AABBCC.com-APPCATION010-hooks-25-7b35a7\" not found"}
{"level":"warn","ts":"2024-08-20T23:06:27Z","msg":"failed to filter SBOM","container ID":"4550bbc4348ccd08619a64021f5db601","k8s workload":"NAMESPACE/APPLICATION003-679f4d8984-m7gsz/init-whisperctl","error":"failed to get SBOM from storage: sbomsyfts.spdx.softwarecomposition.kubescape.io \"docker.AABBCC.com-cDDDD-1.1.3-02e70c\" not found"}
{"level":"warn","ts":"2024-08-20T23:55:46Z","msg":"failed to filter SBOM","container ID":"47c18f8fcd59a9c01c66d55972e04278c","k8s workload":"NAMESPACE/APPLICATION-any-7cc7cff67b-m52r5/istio-validation","error":"failed to get SBOM from storage: sbomsyfts.spdx.softwarecomposition.kubescape.io \"docker-upstream.AABBCC.com-istio-proxyv2-1.22.2-distroless-629576\" not found"}

{"level":"debug","ts":"2024-08-20T23:03:57Z","msg":"ApplicationProfileManager - failed to patch application profile, will get existing one and adjust patch","error":"patch application profile: the server rejected our request due to an error in our request","slug":"replicaset-APPLICATION002-596fdd79fc","container index":1,"container ID":"d49b2bd50ed8e7ed0d62a0e0c192","k8s workload":"NAMESPACE/APPLICATION002-596fdd79fc-6m89w/init-CCCC"}
{"level":"error","ts":"2024-08-21T00:25:45Z","msg":"ApplicationProfileManager - failed to patch application profile","error":"patch application profile: Timeout: request did not complete within requested timeout - context deadline exceeded","slug":"replicaset-APPLICATION004-545d7cb9f6","container index":1,"container ID":"a9f1997e2e755cb0344baced5d9b68559d8163d00ecd1b2e079d8989427ef876","k8s workload":"NAMESPACE/APPLICATION004-545d7cb9f6-ltd4r/app"}
{"level":"debug","ts":"2024-08-20T23:05:26Z","msg":"NetworkManager - failed to patch network neighborhood, will get existing one and adjust patch","error":"patch application neighborhood: the server rejected our request due to an error in our request","slug":"replicaset-APPLICATION005-any-6995c7cd68","container index":4,"container ID":"168da2309d2d59f0e66b","k8s workload":"NAMESPACE/APPLICATION005-any-6995c7cd68-wqm5p/init-BBBBBB"}

{"level":"error","ts":"2024-08-20T23:47:27Z","msg":"ApplicationProfileManager - failed to get existing application profile","error":"the server is currently unable to handle the request (get applicationprofiles.spdx.softwarecomposition.kubescape.io replicaset-APPLICATION006-any-79bd76f4dc)","slug":"replicaset-APPLICATION006-any-79bd76f4dc","container index":3,"container ID":"42f32ea4cc298ec2","k8s workload":"NAMESPACE/APPLICATION006-any-79bd76f4dc-rwcml/init-AAAAAA"}
{"level":"debug","ts":"2024-08-20T23:47:27Z","msg":"ApplicationProfileManager - failed to patch application profile, will get existing one and adjust patch","error":"patch application profile: the server is currently unable to handle the request (patch applicationprofiles.spdx.softwarecomposition.kubescape.io replicaset-APPLICATION006-any-79bd76f4dc)","slug":"replicaset-APPLICATION006-any-79bd76f4dc","container index":6,"container ID":"b2831ea8daac","k8s workload":"NAMESPACE/APPLICATION006-any-79bd76f4dc-rwcml/init-CCCC"}

Additional context

amitschendel commented 1 week ago

Hey! It looks like the storage component of yours is down can you check it?