Collecting logs for debugging
Install dependencies
Please follow the instructions in the quickstart guide to ensure you have the necessary dependencies installed.
The sbomscanner-debug.sh script additionally requires:
-
kubectlconfigured against the target cluster -
helmv3 -
jq -
tar(only if you use--compress-results)
Install or upgrade an existing installation with debug logging activated
helm repo add kubewarden https://charts.kubewarden.io
helm repo update
helm upgrade --install sbomscanner kubewarden/sbomscanner \
--set=controller.logLevel=debug \
--set=storage.logLevel=debug \
--set=worker.logLevel=debug \
--namespace sbomscanner \
--create-namespace \
--wait
Verify installation
The verify subcommand auto-discovers the SUSE Security Vulnerability Scanner Helm release in any namespace and reports the chart, version and pod status. You do not need to specify the namespace or the release name.
./hack/sbomscanner-debug.sh verify
Example output:
== Helm release ==
✅ Found {sboms-name} Helm release
Release name sbomscanner
Namespace sbomscanner
Chart sbomscanner-0.2.0
App version v0.2.0
== Deployments ==
✅ deployment 'sbomscanner-controller' running, all pods ready.
✅ deployment 'sbomscanner-worker' running, all pods ready.
✅ deployment 'sbomscanner-storage' running, all pods ready.
== StatefulSets ==
✅ statefulset 'sbomscanner-nats' running, all pods ready.
────────────────────────────────────────────────────────────────────
✅ Verification passed.
If your release lives in a non-standard namespace and discovery fails, you can still pin it explicitly:
./hack/sbomscanner-debug.sh verify --namespace <ns>
Collect the logs
|
⚠️ The bundle may contain sensitive data. Pod logs include container registry names and URIs, and by default the bundle also includes the rendered Helm values and manifest, which can contain credentials depending on how the chart was configured (for example image pull secrets, registry auth, or any value passed via |
./hack/sbomscanner-debug.sh collect --compress-results
By default the script collects:
-
Logs from the pods of all SUSE Security Vulnerability Scanner components (controller, workers, storage, NATS), including init containers and previous-container logs for crash-looped pods.
-
Logs from the CloudNativePG cluster pods running in the SUSE Security Vulnerability Scanner namespace.
-
Helm release metadata (
values, renderedmanifest, history).
Optional flags
| Flag | Purpose |
|---|---|
|
Force a specific install namespace (otherwise auto-discovered) |
|
Also collect logs from the CNPG operator in that namespace (e.g. |
|
Also dump every SUSE Security Vulnerability Scanner CR (cluster-scoped |
|
Write the bundle to |
|
Tar+gzip the bundle into a single |
Examples
Minimal bundle (pod logs + helm metadata) in the current directory:
./hack/sbomscanner-debug.sh collect --compress-results
Full bundle (everything above plus CRs/events/describe) into /tmp:
./hack/sbomscanner-debug.sh collect \
--cnpg-namespace cnpg-system \
--manifests \
--output-dir /tmp \
--compress-results
The script prints the names of the manifests being collected at runtime and the final path of the bundle (or compressed tarball).
Upload the generated tar.gz file.