Skip to content

CI: When cilium-cli container fails, get logs #1426

@squeed

Description

@squeed

For example, look at https://github.com/cilium/cilium-cli/actions/runs/4302151503/jobs/7500262699 -- the only log entry provided is Error from server: Get "https://10.122.240.4:10250/containerLogs/kube-system/cilium-cli-fqz8k/test?timestamps=true": No agent available. In reality, thanks to GCP's log aggregation, the real failure was

"looks like "https://helm.cilium.io" is not a valid chart repository or cannot be reached: Get "https://helm.cilium.io/index.yaml": tls: failed to verify certificate: x509: certificate signed by unknown authority"

So, we should add a workflow step that dumps the logs of all cilium-cli containers. Optionally on failure, but probably all the time --there isn't that much logging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/CIContinuous Integration testing issue or flakeci/flakeIssues tracking failing (integration or unit) tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions