Skip to content

Builds hang because secrets are unavailable #2179

Closed

Description

@azuretek

Bug Report

  • Concourse version: 3.10.0
  • Deployment type (BOSH/Docker/binary): Docker
  • Infrastructure/IaaS: Kubernetes

Sometimes when my kubernetes cluster is flaky my builds fail because it can't pull the secrets from the k8s API. The kubernetes API may become unreachable for lots of reasons but usually it is only temporary so ideally when faced with that situation concourse should fail fast and retry.

Finding variable 'username': Get https://100.64.0.1:443/api/v1/namespaces/concourse-devs/secrets/some-pipeline.username: read tcp 100.96.55.56:45248->100.64.0.1:443: read: connection timed out

I think the place to add the retry would be somewhere around here:
https://github.com/concourse/atc/blob/5e111aab5cfd6041719a43f4a720a5f4d239d01c/creds/kubernetes/kubernetes.go#L71

Activity

  1. shashwathi commented on May 4, 2018

    @shashwathi
    Contributor

    @azuretek :

    Kubernetes config provides a timeout option for server requests. We could enable flag option to avoid request hanging for long time.

    @topherbullock does this sound reasonable?

  2. cirocosta commented on Dec 12, 2018

    @cirocosta
    Contributor

    Hey @azuretek ,

    I'm not entirely sure, but it looks like the feature got implemented here (#2717) in a way that k8s secrets probably got covered as well.

    Could you please confirm if that solves the case you mentioned?

    Thanks!

  3. azuretek commented on May 2, 2019

    @azuretek
    Author

    We ended up switching to the vault backend as it made more sense for us, but that PR does seem like it should fix the issue. I'll close this issue for now since it seems likely to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions