Skip to content

Worker does not recover if btrfs volume is still mounted #7430

Closed

Description

@taylorsilva

Summary

If a worker is initially deployed using the btrfs driver and then switches to overlay as the driver, there's nothing to remove the btrfs mount (to workdir/volumes), which seems to cause issues with the overlay driver.

Steps to reproduce

  1. Deploy concourse with CONCOURSE_BAGGAGECLAIM_DRIVER: btrfs
  2. Set a pipeline with a resource and run a check
  3. Re-deploy concourse with CONCOURSE_BAGGAGECLAIM_DRIVER: overlay
  4. Run mount

NOTE: You can't use docker-compose for these deployments as the container would be recreated at this point, getting rid of all of the mounts

Expected results

The btrfs mount to /work-dir/volumes is gone

Actual results

It remains after deploying with overlay, causing issues

Additional context

We observed this in our bin-smoke job. The worker process reported the following errors:

"worker.garden.garden-server.run.failed","data":{"error":"proc start: OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: read init-p: connection reset by peer: unknown"
error":"run check: check: exec failed: container_linux.go:380: starting container process caused: exec: \"/opt/resource/check\": stat /opt/resource/check: no such file or directory

When we took a look at the rootfs volume, we noticed that the lower dir (in this case, the volume for the mock base resource type) was empty, hence the missing /opt/resource/check binary.

Also, worth noting that the concourse chart manually clears out any existing btrfs volumes on startup: https://github.com/concourse/concourse-chart/blob/master/templates/worker-statefulset.yaml#L73-L76

Triaging info

  • Concourse version: 7.4.0
  • Did this used to work? No

Activity

  1. added this to the v7.5.0 milestone on Aug 17, 2021
  2. added
    release/undocumented
    on Sep 7, 2021
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

    bugrelease/undocumented

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions