[v2] vulnerability scan on container inside a kubernetes cluster failing #1133
Labels
bug
Something isn't working
needs-triage
Indicates that issue is not yet triaged and assigned
v2
ThreatMapper revamp based on neo4j integration
Describe the bug
Running a vulnerability scan on container inside a kubernetes cluster is failing
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Scan should pass
Agent package-scanner logs
INFO[2023-05-24T11:05:38Z] grpc.go:122 SBOMRequest: source:"ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" scan_type:"all" scan_id:"ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288-1684926283" node_type:"container" host_name:"do-mahanth-k8s-pool-fwu5o" container_id:"ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" INFO[2023-05-24T11:05:41Z] syft.go:39 ContainerScan: &{containerId:ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288 tempDir:/tmp/syft-141585100 namespace:default} INFO[2023-05-24T11:05:41Z] autodetect.go:181 connected successfully to endpoint: unix:///run/containerd/containerd.sock INFO[2023-05-24T11:05:41Z] autodetect.go:181 connected successfully to endpoint: unix:///run/containerd/containerd.sock INFO[2023-05-24T11:05:49Z] autodetect.go:218 container runtime detected: containerd ERRO[2023-05-24T11:05:49Z] syft.go:65 errored: container "ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" in namespace "default": not found ERRO[2023-05-24T11:05:49Z] syft.go:167 container "ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" in namespace "default": not found ERRO[2023-05-24T11:05:49Z] grpc.go:194 error in generating sbom: container "ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" in namespace "default": not found INFO[2023-05-24T11:12:09Z] grpc.go:122 SBOMRequest: source:"ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" scan_type:"all" scan_id:"ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288-1684926700" node_type:"container" host_name:"do-mahanth-k8s-pool-fwu5o" container_id:"ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" INFO[2023-05-24T11:12:12Z] syft.go:39 ContainerScan: &{containerId:ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288 tempDir:/tmp/syft-2734634405 namespace:default} INFO[2023-05-24T11:12:12Z] autodetect.go:181 connected successfully to endpoint: unix:///run/containerd/containerd.sock INFO[2023-05-24T11:12:12Z] autodetect.go:181 connected successfully to endpoint: unix:///run/containerd/containerd.sock INFO[2023-05-24T11:12:20Z] autodetect.go:218 container runtime detected: containerd ERRO[2023-05-24T11:12:20Z] syft.go:65 errored: container "ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" in namespace "default": not found ERRO[2023-05-24T11:12:20Z] syft.go:167 container "ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" in namespace "default": not found ERRO[2023-05-24T11:12:20Z] grpc.go:194 error in generating sbom: container "ec854c42a45ca23ecd4a2ba75d35677b5ec2ab264dfbdbe0837ab4116c023288" in namespace "default": not found
Components/Services affected
Additional context
Kubernetes cluster on digital ocean
version: v1.26.3
runtime: containerd://1.6.14
The text was updated successfully, but these errors were encountered: