Skip to content

[image-builder] image build sometimes fails due to MountVolume.SetUp failed for volume "gitpod-ca-certificate" #15315

Open
@kylos101

Description

@kylos101

Bug description

The error was:

MountVolume.SetUp failed for volume "gitpod-ca-certificate" : failed to sync secret cache: timed out waiting for the condition

As a user, I saw:
image

Logs

Steps to reproduce

n/a

the error is rare and intermittent

Workspace affected

n/a

Expected behavior

We should be able to mount the gitpod CA cert if the workspace container is in a good state, do the image build, and then start a workspace from it.

If we cannot mount the cert, we won't be able to pull images through registry-facade for the imagebuild workspace, and we should log the state of the pod to better understand why.

Example repository

No response

Anything else?

We might need to wait longer when creating a workspace pod, before trying to use its underlying mounts that are dependent on a secret. Example where we had to wait longer for a secret that is created at runtime. In this case, we're unable to mount a secret that was defined at install time, and then owned by cert-manager.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions