cloudviz / agentless-system-crawler

A tool to crawl systems like crawlers for the web
Apache License 2.0
117 stars 44 forks source link

Stop sending unexpected format frame from live-crawler to sas #357

Open tatsuhirochiba opened 6 years ago

tatsuhirochiba commented 6 years ago

Description

SAS requires concrete format for live container frame (source_type=container and namespace=k8s-ns/pod-name/container-id) and image frame (source_type=image and namespace=repository/k8s-ns/image-name:tag). Since both crawlers (live and reg) run on the same node, live-crawler daemon always detects docker container creation event for reg-crawler target container. source_type env in live-crawler and reg-crawler is fixed as container and image respectively. In this situation, live crawler tries to send an unexpected namespace formatted frame to sas. (i.e. send a frame with image crawling namespace and source_type=container)

How to Reproduce

Log Output

Debugging Commands Output

Output of docker version:

(paste your output here)

Output of docker info:

(paste your output here)

Output of python --version:

(paste your output here)

Output of pip freeze:

(paste your output here)